AN1105 STMicroelectronics, AN1105 Datasheet - Page 74

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
leases the hardware buffer
buffer and exits
as in use
}
/*--------------------------------------------------------------------------
ROUTINE NAME : CAN_Interrupt
INPUT/OUTPUT : -- /--
DESCRIPTION : interrupt processing function
COMMENTS
74/100
receive_status=CAN_Store_Rcvd_Msg(soft_buffer_ptr); //Saves message and re-
//Writing identifier :
*(int*)soft_buffer_ptr = message_ident;
//End of routine :
if (receive_status!=CAN_RECEIVE_SUCCESS)
soft_buffer_ptr->buffer_free=CFALSE;
soft_buffer_ptr->buffer_rw=CFALSE;
CAN_Data_Reception_Notification(message_ident);
return CAN_RECEIVE_SUCCESS;
Clr_RDY_Bit();
soft_buffer_ptr->buffer_rw=CFALSE;//If the buffer is full, releases it
return CAN_RECEIVE_FATAL;
}
{
Clr_RDY_Bit();
soft_buffer_ptr->buffer_rw=CFALSE;//In case of failure, releases the
return CAN_RECEIVE_FATAL;
}
Calls
May call (optionnal) :
: Each case must be taken into account.
CAN_Get_IT_Type
CAN_Reception_Notification
CAN_Transmission_Notification
CAN_Fill_Transmission_Buffer
CAN_Dominant_Bit_Reception_Notification
CAN_Transmission_Error_Notification
CAN_Bus_Passive_Notification
CAN_Bus_Active_Notification
CAN_Bus_Off_Notification
//and exit
//In case of success, marks the buffer
//Unlock it

Related parts for AN1105