AN1105 STMicroelectronics, AN1105 Datasheet - Page 62

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
void CAN_Bus_Off_Notification(void);
#endif
#ifdef FILTERS_ENABLED
/*--------------------------------------------------------------------------
ROUTINE NAME : CAN_Filter
INPUT/OUTPUT : identifier code/error status
DESCRIPTION : Tests matching of IDs of received messages and software filters.
COMMENTS
62/100
--------------------------------------------------------------------------*/
static CAN_Filter_Status CAN_Filter(u16 ident_code)
//////////////////////////
//can.c static functions//
//////////////////////////
{
u8 current_first;
u8 current_last;
u8 current_checked;
int current_content;
current_first = 0;
current_last = CAN_Filters_Array_Size - 1;
for (;;)
{
current_checked = (u8)(current_first + current_last) >> 1;
current_content = i_filters[current_checked] - ident_code;
if (current_content < 0)
Compiled only if FILTERS_ENABLED is set.
Possible returned status : CAN_FILTER_MATCH
: Called by CAN_Recept
{
current_first = current_checked + 1;
if (current_first > current_last)
break;
CAN_FILTER_NO_MATCH

Related parts for AN1105