English
Language : 

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