AN1105 STMicroelectronics, AN1105 Datasheet - Page 72

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
}
Clr_RDY_Bit();
return CAN_RECEIVE_SUCCESS;
}
/*--------------------------------------------------------------------------
ROUTINE NAME : CAN_Receive
INPUT/OUTPUT : ID of the buffer to void/Status message
DESCRIPTION : Fetches the datas received in a hardware buffer and saves them in a
soft buffer
COMMENTS
--------------------------------------------------------------------------*/
static CAN_Receive_Error CAN_Receive(u8 num_buff_hard)
{
72/100
for (counter=0;counter<data_size;counter++)
CAN_Buffer* soft_buffer_ptr;
CAN_Receive_Error receive_status;
u16 message_ident;
#ifdef FILTERS_ENABLED
CAN_Filter_Status filtering_status;
#endif
//Retrieving the ID of the message
CANPSR=num_buff_hard;
{
}
data_ptr[counter]=CANDR[counter];
: ITs have to be disabled
//Releases the buffer and clears the IT flag
furnished by the application.
Calls CAN_Filter (optionnal)
CAN_Request_Buffer
CAN_Store_Rcvd_Msg
Possible return values : CAN_FILTERING_FAILURE
/*Conditionnal compilation*/
CAN_NO_BUFFER
CAN__RECEIVE_FATAL
CAN_RECEIVE_SUCCESS

Related parts for AN1105