| Electronic Components Datasheet Search |
|
AN1105 Datasheet(PDF) 66 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1105 Datasheet(HTML) 66 Page - STMicroelectronics |
|
66 / 100 page ![]() 66/100 ST7 pCAN PERIPHERAL DRIVER SetBit(CANCSR,SRTE); #endif /*SIMULTANEOUS_EMISSION_RECEPTION*/ if (run_set) { CAN_RUN_Cell(); } return CAN_INIT_SUCCESS; } else { return CAN_INIT_FAILURE; } } /*-------------------------------------------------------------------------- ROUTINE NAME : CAN_In_Queue INPUT/OUTPUT : pointer on a CAN buffer output error code DESCRIPTION : Put a message given by the application into the transmission queue Updates the queue parameters COMMENTS : Called by CAN_Transmit_Request Must not be interrupted Possible return values : CAN_FIFO_FULL CAN_TRANSMIT_SUCCESS CAN_TRANSMIT_FATAL --------------------------------------------------------------------------*/ static CAN_Transmit_Error CAN_In_Queue (CAN_Buffer* msg_to_queue) { if (CAN_transmit_queue.isinuse) //Necessary to avoid multiple simultaneous access { return CAN_TRANSMIT_FATAL; //Time out ? } //to the datas CAN_transmit_queue.isinuse=CTRUE; //Locks the queue if ((CAN_transmit_queue.fifo_size)>=MAX_FIFO_SIZE) //Tests if the FIFO is already full { CAN_transmit_queue.isinuse=CFALSE; //If yes, releases the queue return CAN_FIFO_FULL; //...and aborts process |
|
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 |