S32 SDK

Detailed Description

This group contains APIs that help users manage schedule tables in master node only.

Functions

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

Function Documentation

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.

Parameters
[in]iiiInterface name
[in]schedule_iiiSchedule table for interface
[in]entryEntry to be set
Returns
void

Definition at line 76 of file lin_common_api.c.

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.

Parameters
[in]Interfacename
Returns
Operation status
  • Zero: if the next call of l_sch_tick will not start transmission of a frame.
  • Non-Zero: if the next call of l_sch_tick will start transmission of a frame. The return value will in this case be the next schedule table entry's number (counted from the beginning of the schedule table) in the schedule table. The return value will be in range 1 to N if the schedule table has N entries.

Definition at line 234 of file lin_common_api.c.