AN1105 STMicroelectronics, AN1105 Datasheet - Page 66

no-image

AN1105

Manufacturer Part Number
AN1105
Description
ST7 PCAN PERIPHERAL DRIVER
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN1105W-12-RR
Quantity:
13 804
Part Number:
AN1105W-22-RR
Manufacturer:
SANYO
Quantity:
8 570
Part Number:
AN1105W-TR
Manufacturer:
PANASONIC
Quantity:
27 995
Part Number:
AN1105W-TR
Manufacturer:
STANLEY
Quantity:
20 000
ST7 pCAN PERIPHERAL DRIVER
}
/*--------------------------------------------------------------------------
ROUTINE NAME : CAN_In_Queue
66/100
INPUT/OUTPUT : pointer on a CAN buffer
DESCRIPTION : Put a message given by the application into the transmission queue
COMMENTS
--------------------------------------------------------------------------*/
static CAN_Transmit_Error CAN_In_Queue (CAN_Buffer* msg_to_queue)
{
access
already full
else {
if (CAN_transmit_queue.isinuse)
{
}
CAN_transmit_queue.isinuse=CTRUE;
if ((CAN_transmit_queue.fifo_size)>=MAX_FIFO_SIZE)
return CAN_TRANSMIT_FATAL;
}
return CAN_INIT_FAILURE;
SetBit(CANCSR,SRTE);
#endif /*SIMULTANEOUS_EMISSION_RECEPTION*/
if (run_set)
{
CAN_RUN_Cell();
}
return CAN_INIT_SUCCESS;
}
{
CAN_transmit_queue.isinuse=CFALSE;
return CAN_FIFO_FULL;
Updates the queue parameters
Must not be interrupted
Possible return values : CAN_FIFO_FULL
: Called by CAN_Transmit_Request
output error code
//to the datas
CAN_TRANSMIT_FATAL
//Necessary to avoid multiple simultaneous
//Time out ?
//Locks the queue
CAN_TRANSMIT_SUCCESS
//...and aborts process
//If yes, releases the queue
//Tests if the FIFO is

Related parts for AN1105