AN1105 STMicroelectronics, AN1105 Datasheet - Page 63

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
}
#endif
/*--------------------------------------------------------------------------
ROUTINE NAME : CAN_Get_IT_Type
INPUT/OUTPUT : -- / generic type of the event that caused the IT
DESCRIPTION : IT type fetching routine
COMMENTS
--------------------------------------------------------------------------*/
static IT_Type CAN_Get_IT_Type(void)
{
#ifdef DEBUG
if ((ERROR_MASK & CANISR)!=0)
else if ((SCIF_MASK & CANISR)!=0)
#endif
#ifdef SATUS_CHANGE_NOTIFICATION /*In this case, prioity given to status change,
eg. to early detect bus-off state*/
#ifndef DEBUG
taken into account*/
return (CAN_FILTER_NO_MATCH);
}
{
}
{
}
else if (current_content == 0)
return (CAN_FILTER_MATCH);
else
return ITERR;
return ITSCIF;
Possible status returned : ITRECEPT for reception IT
/*ifdef FILTERS_ENABLED*/
: Called by CAN_Interrupt
/*In this case, priority is given to error detection*/
}
{
}
current_last = current_checked - 1;
if (current_last < current_first)
break;
/*If debug is defined, this IT has already been
ITTRANSMIT for transmission IT
ITERR for error IT
ST7 pCAN PERIPHERAL DRIVER
63/100

Related parts for AN1105