lin_common_api.c File Reference
#include "lin_common_api.h"
#include "lin_common_proto.h"
#include "lin_lin21_proto.h"
#include "lin_j2602_proto.h"

Go to the source code of this file.

Functions

static void lin_master_update_signal (l_ifc_handle iii)
 
static void lin_master_update_frame_before_transmit (l_ifc_handle iii, l_u8 cur_id, l_u8 frame_index)
 
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...
 
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_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_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...
 
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_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...
 

Function Documentation

static void lin_master_update_frame_before_transmit ( l_ifc_handle  iii,
l_u8  cur_id,
l_u8  frame_index 
)
static

Definition at line 177 of file lin_common_api.c.

static void lin_master_update_signal ( l_ifc_handle  iii)
static

Definition at line 119 of file lin_common_api.c.