| Electronic Components Datasheet Search |
|
AN1278 Datasheet(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1278 Datasheet(HTML) 14 Page - STMicroelectronics |
|
14 / 44 page ![]() 14/44 LIN (LOCAL INTERCONNECT NETWORK) SOLUTIONS 3.2.1 Type definition t_error typedef enum {NO_ERROR,BIT_ERROR,ID_PARITY_ERROR,CHECKSUM_ERROR, NO_ID_MATCH,TIMEOUT_ERROR,DATA_RECEIVED,DATA_REQUEST, WAKE_UP,UART_ERROR,SYNCH_BREAK_ERROR}t_error; defines the different error code values that the software functions are able to return. t_message_direction typedef enum {ID_DATAREQUEST,ID_DATASENT}t_message_direction; This type is used internally in lin.c and in lin_drv.c. t_id_list typedef struct{ uByte id; t_message_direction dir; uByte length;} t_id_list; defines the type of an identifier list. t_one_databyte_output typedef struct{ t_error error_code; uByte data_byte;} t_one_databyte_output; defines a type of function return value consisting of an error code made up of error type and a data byte. t_header typedef struct { uByte identifier; uByte length;} t_header; A LIN frame consists of a header and a response. This typedef defines the header part type. t_response typedef struct { uByte data[8]; uByte checksum;} t_response; A LIN frame consists of a header and a response. This typedef defines the response part type. 3.2.2 User interface functions To integrate this software into your application software you have to link 3 or 4 functions de- fined in lin.c to your project. |
|
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 |