AN1105 STMicroelectronics, AN1105 Datasheet - Page 73

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
new reception
the messsage that successfully passed the filters
!!!
message_ident = (((unsigned int)CANIDHR)<<8)|CANIDLR;
message_ident >>= FILTER_SHIFT;
message_ident &= 0xFFF0;
//Filtering function
#ifdef FILTERS_ENABLED
filtering_status=CAN_Filter(message_ident); //Filtering fonction call
if (filtering_status==CAN_FILTER_NO_MATCH)
#endif
//Tests if remote frame
if(ValBit(CANIDLR,4))
//Else, saves the datas in a buffer passed by the application
soft_buffer_ptr=CAN_Request_Buffer(message_ident); //Requests a buffer for
if (soft_buffer_ptr==NULL)
if (soft_buffer_ptr->buffer_rw)
soft_buffer_ptr->buffer_rw=CTRUE;//Locks the buffer
if (!(soft_buffer_ptr->buffer_free))
return CAN_RECEIVE_REMOTE;
{
Clr_RDY_Bit();
return CAN_FILTERING_FAILURE;
}
{
Clr_RDY_Bit();
CAN_Remote_Reception_Notification(message_ident);
}
{
Clr_RDY_Bit();
return CAN_NO_BUFFER;
}
{
Clr_RDY_Bit();
return CAN_RECEIVE_FATAL;
}
{
/*Conditionnal compilation*/
//Kind of "software overrun"
//The buffer must exist prior to beeing filled
//Appropriate rigth shift
//Frees the hardware buffer for a
ST7 pCAN PERIPHERAL DRIVER
73/100

Related parts for AN1105