void CAN_ITConfig ( CAN_TypeDef * CANx, uint32_t CAN_IT,
FunctionalState NewState)
ï‚· CANx : where x can be 1 or 2 to to select the CAN
peripheral.
ï‚· CAN_IT : specifies the CAN interrupt sources to be enabled
or disabled. This parameter can be:
ï€ CAN_IT_TME : Transmit mailbox empty Interrupt
ï€ CAN_IT_FMP0 : FIFO 0 message pending Interrupt
ï€ CAN_IT_FF0 : FIFO 0 full Interrupt
ï€ CAN_IT_FOV0 : FIFO 0 overrun Interrupt
ï€ CAN_IT_FMP1 : FIFO 1 message pending Interrupt
ï€ CAN_IT_FF1 : FIFO 1 full Interrupt
ï€ CAN_IT_FOV1 : FIFO 1 overrun Interrupt
ï€ CAN_IT_WKU : Wake-up Interrupt
ï€ CAN_IT_SLK : Sleep acknowledge Interrupt
ï€ CAN_IT_EWG : Error warning Interrupt
ï€ CAN_IT_EPV : Error passive Interrupt
ï€ CAN_IT_BOF : Bus-off Interrupt
ï€ CAN_IT_LEC : Last error code Interrupt
ï€ CAN_IT_ERR : Error Interrupt
ï‚· NewState : new state of the CAN interrupts. This parameter
can be: ENABLE or DISABLE.
ï‚· CANx : where x can be 1 or 2 to to select the CAN
peripheral.
ï‚· CAN_FLAG : specifies the flag to check. This parameter can
be one of the following values: