Detailed Description

This group contains APIs that help users manage interface(s) in LIN node.

Functions

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...
 

Function Documentation

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.

Note
After sending go to sleep command successfully, the master node sets go to sleep flag to 1 and goes to sleep mode. At the end of Go to sleep schedule table, at the end of frame slot of go to sleep command, in l_sch_tick() the master node actually switches its active schedule table to Null to stop all communication. To start LIN communication, the master node shall call l_ifc_wake_up() to wake up LIN cluster and l_sch_set() to activate normal schedule table.
Parameters
[in]iiiInterface name
Returns
void

Definition at line 391 of file lin_common_api.c.

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.

Parameters
[in]iiiInterface name
Returns
Operation status
  • Zero: Initialization was successful.
  • Non-zero: Initialization failed.

Definition at line 420 of file lin_common_api.c.

l_u16 l_ifc_read_status ( l_ifc_handle  iii)

This function will return the status of the previous communication.

Parameters
[in]iiiInterface name
Returns
l_u16

Definition at line 484 of file lin_common_api.c.

void l_ifc_wake_up ( l_ifc_handle  iii)

Transmit the wake up signal.

Parameters
[in]iiiInterface name
Returns
void

Definition at line 470 of file lin_common_api.c.