| 전자부품 데이터시트 검색엔진 |
|
AN1105 데이터시트(PDF) 42 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1105 데이터시트(HTML) 42 Page - STMicroelectronics |
|
42 / 100 page ![]() 42/100 ST7 pCAN PERIPHERAL DRIVER FIFO Management Structure In the main structure, we find: typedef struct { u8 fifo_size; FIFO_Object* first_object; FIFO_Object* last_object; CAN_Bool isinuse; } FIFO; The structures shown here look more like parts of a chained-list. Indeed, the data-type imple- mented is not pure FIFO, but simulates the behaviour of a real queue. Three FIFO_Objects are statically defined and linked together in a circular way (in the CAN_First_Init routine). One FIFO variable is also defined and initialized in the meantime (cf. in can.c): //Transmission queue static FIFO CAN_transmit_queue; static FIFO_Object CAN_queue_object_1; static FIFO_Object CAN_queue_object_2; static FIFO_Object CAN_queue_object_3; The maximum size of the queue is therefore 3. To simulate in-queuing/out-queuing, you only have to verify that the size limit will not be over- ridden, and update the fields in the FIFO structure. The “isinuse” Boolean is checked each time the variable is accessed to prevent read/write conflicts. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |