st_lin_message Struct Reference

#include <lin.h>


Detailed Description

This structure allows to handle a LIN message and, at the end of the received/transmitted message, allows to call a function associated to this message, the update or the capture of "signals".

Definition at line 96 of file lin.h.


Data Fields

enum_lin_cmd l_cmd
 Select an action for a specific message.
U8 l_dlc
 Length of the LIN message, it is the number of data bytes of the LIN response.
U8 l_id
 LIN message ID (in case of LIN 1.3 - without lenght).
U8 * l_pt_data
 Pointer on the data buffer, the data buffer where the bytes of the LIN response are stored.
void(* l_pt_function )(U8 *)
 Pointer on the function which handles the data.
U8 l_status
 Status of the last communication:
  • == 0x00: RXOK or TXOK
  • != 0x00: LINERR, content of LIN Error Register 'LINERR'.


Field Documentation

Select an action for a specific message.

Definition at line 105 of file lin.h.

Referenced by main().

Length of the LIN message, it is the number of data bytes of the LIN response.

Definition at line 102 of file lin.h.

Referenced by main().

LIN message ID (in case of LIN 1.3 - without lenght).

Definition at line 98 of file lin.h.

Referenced by lin_tx_header_and_response(), and main().

Pointer on the data buffer, the data buffer where the bytes of the LIN response are stored.

Definition at line 114 of file lin.h.

Referenced by main().

Pointer on the function which handles the data.

This has as parameter 'l_pt_data'. This function could update the received 'signals' and could capture and store signals for the next transmission.

Referenced by lin_pdca_int_rx_handler_node0(), lin_pdca_int_tx_handler_node0(), and main().

Status of the last communication:

  • == 0x00: RXOK or TXOK
  • != 0x00: LINERR, content of LIN Error Register 'LINERR'.

Definition at line 110 of file lin.h.

Referenced by lin_int_handler_node0(), and main().


Generated on Fri Feb 19 02:30:32 2010 for AVR32 - Service for LIN Management - Example by  doxygen 1.5.5