Hi itsnewforme,
Lin stack sends frames based on schedule table. The frames in the schedule table are sent sequentially on the bus. When the end of the current schedule is reached, the schedule is started
again, at the beginning of the schedule. So, you can add the frames you want to send to a schedule in ldf file. And then you must use the l_sch_set() function to active this schedule. Please refer the chapter 2.4 of LIN_Specfication_package_2.2A.ldf for detail.
For example:
- Define NormalTable schedule in the ldf file. The schedule has two frames, there are Motor1Control and Motor1State_Cycl. The frame slot of each frame is 50ms.
- After initialize LIN network interface, call the l_sch_set() function to active this schedule.
-
- There are the frames that are sent sequentially on the bus.
Best regards,
Dan