S32 SDK
lin_commontl_api.h File Reference
#include "lin.h"
#include "lin_common_api.h"

Go to the source code of this file.

Macros

#define LD_READ_OK   0x33U
 
#define LD_LENGTH_TOO_SHORT   0x34U
 
#define LD_DATA_ERROR   0x43U
 
#define LD_LENGTH_NOT_CORRECT   0x44U
 
#define LD_SET_OK   0x45U
 
#define SERVICE_TARGET_RESET   0xB5U
 
#define RES_POSITIVE   0x40U
 
#define LIN_PRODUCT_ID   0x00U
 
#define LIN_SERIAL_NUMBER   0x01U
 
#define LD_BROADCAST   0x7FU
 
#define LD_FUNCTIONAL_NAD   0x7EU
 
#define LD_ANY_SUPPLIER   0x7FFFU
 
#define LD_ANY_FUNCTION   0xFFFFU
 
#define LD_ANY_MESSAGE   0xFFFFU
 
#define RES_NEGATIVE   0x7FU
 
#define GENERAL_REJECT   0x10U
 
#define SERVICE_NOT_SUPPORTED   0x11U
 
#define SUBFUNCTION_NOT_SUPPORTED   0x12U
 
#define NEGATIVE   0U
 
#define POSITIVE   1U
 
#define TRANSMITTING   0U
 
#define RECEIVING   1U
 
#define DIAG_SERVICE_CALLBACK_HANDLER(iii, sid)   lin_diag_service_callback((iii), (sid))
 

Functions

void lin_diag_service_callback (l_ifc_handle iii, l_u8 sid)
 
void ld_init (l_ifc_handle iii)
 Initialize or reinitialize the raw and cooked layers. More...
 
void ld_put_raw (l_ifc_handle iii, const l_u8 *const data)
 Queue the transmission of 8 bytes of data in one frame. More...
 
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. More...
 
l_u8 ld_raw_tx_status (l_ifc_handle iii)
 Get the status of the raw frame transmission function. More...
 
l_u8 ld_raw_rx_status (l_ifc_handle iii)
 Get the status of the raw frame receive function. More...
 
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. More...
 
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 data. More...
 
l_u8 ld_tx_status (l_ifc_handle iii)
 Get the status of the last made call to ld_send_message. More...
 
l_u8 ld_rx_status (l_ifc_handle iii)
 Get the status of the last made call to ld_send_message. More...