| поискавой системы для электроныых деталей |
|
AN1105 датащи(PDF) 73 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1105 датащи(HTML) 73 Page - STMicroelectronics |
|
73 / 100 page ![]() 73/100 ST7 pCAN PERIPHERAL DRIVER message_ident = (((unsigned int)CANIDHR)<<8)|CANIDLR; message_ident >>= FILTER_SHIFT; //Appropriate rigth shift message_ident &= 0xFFF0; //Filtering function #ifdef FILTERS_ENABLED /*Conditionnal compilation*/ filtering_status=CAN_Filter(message_ident); //Filtering fonction call if (filtering_status==CAN_FILTER_NO_MATCH) { Clr_RDY_Bit(); //Frees the hardware buffer for a new reception return CAN_FILTERING_FAILURE; } #endif //Tests if remote frame if(ValBit(CANIDLR,4)) { Clr_RDY_Bit(); CAN_Remote_Reception_Notification(message_ident); return CAN_RECEIVE_REMOTE; } //Else, saves the datas in a buffer passed by the application soft_buffer_ptr=CAN_Request_Buffer(message_ident); //Requests a buffer for the messsage that successfully passed the filters if (soft_buffer_ptr==NULL) //The buffer must exist prior to beeing filled !!! { Clr_RDY_Bit(); return CAN_NO_BUFFER; //Kind of "software overrun" } if (soft_buffer_ptr->buffer_rw) { Clr_RDY_Bit(); return CAN_RECEIVE_FATAL; } soft_buffer_ptr->buffer_rw=CTRUE;//Locks the buffer if (!(soft_buffer_ptr->buffer_free)) { |
|
ссылки 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 |