| Electronic Components Datasheet Search |
|
AN1278 Datasheet(PDF) 20 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1278 Datasheet(HTML) 20 Page - STMicroelectronics |
|
20 / 44 page ![]() 20/44 LIN (LOCAL INTERCONNECT NETWORK) SOLUTIONS #define RESYNCH 3.4 APPLICATION INTERFACE: LIN_AI.C This file is the application interface and should be filled by the user. In this way the user can define the LIN communication of his application. The lin_ai.c file consists of: The ID_Table variable You fill this variable to define the identifiers of the LIN frames that the application has to handle. Each member of this list corresponds to a LIN frame and its corresponding identifier. Each member is of type t_id_list (See 3.2.1 Type definition) and has to be defined in the following way: { identifier, direction, data length} identifier represents the whole identifier byte including the parity bits. direction represents the data flow direction, is of type t_message_direction and should there- fore be set to ID_DATAREQUEST for data being requested by the master and to be sent by the application/slave or to ID_DATASENT for data being sent by the master to the application/ slave. data length represents the number of data bytes of the corresponding frame. It can be set be- tween 0 to 8. Note: The LIN protocol specification gives some advice concerning the coding of the data length through the ID5 and ID4 bits in the identifier byte. But this coding is no longer manda- tory since revision 1.2 of the specification. The number of members has to be entered in the lin_config.h file (See 3.3 LIN Configuration File: lin_config.h). 3 Notification functions The LIN software is interrupt driven which means you do not have to poll any variables to handle LIN communication. When activity appears on the LIN bus, the LIN interrupt service routine is entered and starts decoding the LIN frame. Once the LIN software is able to notify an #define RESYNCH description Can only be defined if UART_TIMERA or UART_TIMERB has been defined. If the application is working with an inaccurate clock the LIN software is able to resynchronize to the master clock (refer to the LIN protocol). Define this symbol to activate this feature. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |