| поискавой системы для электроныых деталей |
|
AN1105 датащи(PDF) 44 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1105 датащи(HTML) 44 Page - STMicroelectronics |
|
44 / 100 page ![]() 44/100 ST7 pCAN PERIPHERAL DRIVER typedef enum {CAN_FILTER_MATCH,CAN_FILTER_NO_MATCH}CAN_Filter_Status; Return values of the software filtering routine. typedef enum {ITERR,ITRECEPT,ITTRANSMIT,ITSCIF}IT_Type; Return values of the routine that determines which IT has to be processed first. typedef enum {CAN_CLEAN_FATAL,CAN_CLEAN_SUCCESS,CAN_CLEAN_FAILURE}CAN_Clean_Error; Return values of the Cleaning function. 3.2.1.4 Status Counter static u8 status_counter=0; This is a variable used by the Sleep function to determine the state of the reception and trans- mission registers. It is updated the following way: – +1, when a reception IT is taken into account – -1, when a reception buffer is released – +1, when a message is put into the transmission queue – -1, when a message is sent (in the IT function) When the CAN_Sleep function is called, a simple test of this variable lets the driver know if there are still pending jobs and if the Sleep operation must be cancelled. 3.2.2 Internal Routines 3.2.2.1 Static CAN_Filter_Status CAN_Filter(u16 ident_code) Performs a classical dichotomy algorithm and compares the value given as parameter with the contents of the i_filters array. INPUT CAN message identifier OUTPUT Error status DESCRIPTION Tests matching of IDs of received messages and software filters. Possible returned status: CAN_FILTER_MATCH and CAN_FILTER_NO_MATCH COMMENTS Called by CAN_Receive Compiled only if FILTERS_ENABLED is set. Priority is given here to SPEED, that’s why the code may look strange. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |