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

Go to the source code of this file.

Macros

#define SAVE_CONFIG_SET   0x0040U
 
#define EVENT_TRIGGER_COLLISION_SET   0x0020U
 
#define BUS_ACTIVITY_SET   0x0010U
 
#define GO_TO_SLEEP_SET   0x0008U
 
#define OVERRUN   0x0004U
 
#define SUCCESSFULL_TRANSFER   0x0002U
 
#define ERROR_IN_RESPONSE   0x0001U
 

Functions

l_bool l_sys_init (void)
 This function performs the initialization of the LIN core; is the first call a user must use in the LIN core before using any other API functions. The implementation of this function can be replaced by user if needed. More...
 
l_u8 l_sch_tick (l_ifc_handle iii)
 This function follows a schedule. When a frame becomes due, its transmission is initiated. When the end of the current schedule is reached, this function starts again at the beginning of the schedule. More...
 
void l_sch_set (l_ifc_handle iii, l_schedule_handle schedule_iii, l_u8 entry)
 Set up the next schedule to be followed by the l_sch_tick function for a certain interface. The new schedule will be activated as soon as the current schedule reaches its next schedule entry point. More...
 
l_bool l_ifc_init (l_ifc_handle iii)
 Initialize the controller specified by name, i.e. sets up internal functions such as the baud rate. The default schedule set by the l_ifc_init call will be the L_NULL_SCHEDULE where no frames will be sent and received. This is the first call a user must perform, before using any other interface related LIN API functions. The function returns zero if the initialization was successful and non-zero if failed. More...
 
void l_ifc_goto_sleep (l_ifc_handle iii)
 Request slave nodes on the cluster connected to the interface to enter bus sleep mode by issuing one go to sleep command. This API is available only for Master nodes. More...
 
void l_ifc_wake_up (l_ifc_handle iii)
 Transmit the wake up signal. More...
 
l_u16 l_ifc_read_status (l_ifc_handle iii)
 This function will return the status of the previous communication. More...
 
l_u16 l_sys_irq_disable (l_ifc_handle iii)
 Disable LIN related IRQ. More...
 
void l_sys_irq_restore (l_ifc_handle iii)
 Enable LIN related IRQ. More...