34 #ifndef LIN_COMMONTL_API_H
35 #define LIN_COMMONTL_API_H
44 #if (SUPPORT_TRANSPORT_LAYER == 1U)
50 #define LD_READ_OK 0x33U
51 #define LD_LENGTH_TOO_SHORT 0x34U
53 #define LD_DATA_ERROR 0x43U
54 #define LD_LENGTH_NOT_CORRECT 0x44U
55 #define LD_SET_OK 0x45U
58 #define SERVICE_TARGET_RESET 0xB5U
59 #define RES_POSITIVE 0x40U
62 #define LIN_PRODUCT_ID 0x00U
63 #define LIN_SERIAL_NUMBER 0x01U
66 #define LD_BROADCAST 0x7FU
67 #define LD_FUNCTIONAL_NAD 0x7EU
68 #define LD_ANY_SUPPLIER 0x7FFFU
69 #define LD_ANY_FUNCTION 0xFFFFU
70 #define LD_ANY_MESSAGE 0xFFFFU
73 #define RES_NEGATIVE 0x7FU
74 #define GENERAL_REJECT 0x10U
75 #define SERVICE_NOT_SUPPORTED 0x11U
76 #define SUBFUNCTION_NOT_SUPPORTED 0x12U
82 #define TRANSMITTING 0U
85 #if (SUPPORT_SLAVE_MODE == 1U)
89 #define DIAG_SERVICE_CALLBACK_HANDLER(iii, sid) lin_diag_service_callback((iii), (sid))
107 void ld_init(l_ifc_handle iii);
128 const l_u8 *
const data);
213 const l_u8 *
const data);
232 l_u16 *
const length,
l_u8 ld_raw_rx_status(l_ifc_handle iii)
Get the status of the raw frame receive function.
void ld_init(l_ifc_handle iii)
Initialize or reinitialize the raw and cooked layers.
l_u8 ld_rx_status(l_ifc_handle iii)
Get the status of the last made call to ld_send_message.
void ld_receive_message(l_ifc_handle iii, l_u16 *const length, l_u8 *const NAD, l_u8 *const data)
Prepare the LIN diagnostic module to receive one message and store it in the buffer pointed to by dat...
void lin_diag_service_callback(l_ifc_handle iii, l_u8 sid)
void ld_send_message(l_ifc_handle iii, l_u16 length, l_u8 NAD, const l_u8 *const data)
Pack the information specified by data and length into one or multiple diagnostic frames...
void ld_get_raw(l_ifc_handle iii, l_u8 *const data)
Copy the oldest received diagnostic frame data to the memory specified by data.
l_u8 ld_tx_status(l_ifc_handle iii)
Get the status of the last made call to ld_send_message.
unsigned char l_u8
Unsigned 8 bit integer Implements : l_u8_Class.
l_u8 ld_raw_tx_status(l_ifc_handle iii)
Get the status of the raw frame transmission function.
void ld_put_raw(l_ifc_handle iii, const l_u8 *const data)
Queue the transmission of 8 bytes of data in one frame.
unsigned short int l_u16
Unsigned 16 bit integer Implements : l_u16_Class.