iLLD_TC27xC
1.0
|
![]() |
The LIN interface driver provides a default ASCLIN configuration for asynchronous serial communication in 8bit mode, and a set of data transfer routines. It supports all four elementary LIN transactions TxH - Transmission of Header TxR - Transmission of Response RxH - Reception of Header RxR - Reception of Response
In the following sections it will be described, how to integrate the driver into the application framework.
Include following header file into your C code:
Declare the LIN handle as global variable in your C code:
The module initialisation can be done in the same function. Here an example:
The LIN is ready for use now!
The LIN driver provides all three master elemnatry tranfers.
This means: you can send a header and based on the id byte, after transmission of header you can send or receive response and also can ignore the header based on the id:
Same as master the LIN driver provides all three slave elemnatry tranfers.
This means: you can receive a header and based on the id byte received, you can send or receive response and can also ignore the header based on the id: