전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN1278 데이터시트(PDF) 13 Page - STMicroelectronics

부품명 AN1278
상세설명  Many mechanical components in the automotive sector have been replaced
PDF  44 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1278 데이터시트(HTML) 13 Page - STMicroelectronics

Back Button AN1278 Datasheet HTML 9Page - STMicroelectronics AN1278 Datasheet HTML 10Page - STMicroelectronics AN1278 Datasheet HTML 11Page - STMicroelectronics AN1278 Datasheet HTML 12Page - STMicroelectronics AN1278 Datasheet HTML 13Page - STMicroelectronics AN1278 Datasheet HTML 14Page - STMicroelectronics AN1278 Datasheet HTML 15Page - STMicroelectronics AN1278 Datasheet HTML 16Page - STMicroelectronics AN1278 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 44 page
background image
13/44
LIN (LOCAL INTERCONNECT NETWORK) SOLUTIONS
The software is interrupt driven. As soon as a message begins on the bus, an interrupt is gen-
erated and automatically handles the protocol. This means that the protocol handler is totally
autonomous. It runs in the background. When the received frame is decoded by the software
this is notified to the application in the lin_ai.c. In this file the user is able to customize the be-
haviour of the application upon reception of a frame for example.
3.1 TYPES AND MACRO DEFINITIONS: LIB.H
3.1.1 Debug settings
see 4.4.1 Timing considerations
3.1.2 Types
The software uses predefined types for 1-byte and 2-byte variables.
The name used for the one-byte type is “uByte“.
The name used the two-byte type is “uWord”.
Beside these, a third type is used to define two-byte variables that can also be accessed high
byte or low byte only.
typedef union {
unsigned int w_form;
struct {
unsigned char high, low;
} b_form;
} TwoBytes;
These types are defined in the lib.h file.
3.1.3 Macros
Three macros for register bit access are defined:
– SetBit(var,pos): Set bit “pos” of “var” variable
– ClrBit(var,pos): Clear bit “pos” of “var” variable
– ValBit(var,pos): Test bit “pos” of “var” variable. Return “0” if reset another value otherwise.
3.2 PROTOCOL HANDLER: LIN.P/H
The lin.p file contains the protocol handler. The user has no access to this file. It should simply
be linked to the rest of the application. The lin.p file is encrypted and can therefore not be read
but must be compiled and linked to the rest of the application.
The lin.h contains the definition of new types and the prototypes of the functions defined in
lin.c.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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