![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 399](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630399.webp)
www.geehy.com Page 398
Interrupt
Events generating transmitting interrupt:
The hardware sets REQCFLG0 bit of the register CAN_TXSTS to 1,
and the transmiting mailbox 0 becomes idle
The hardware sets REQCFLG1 bit of the register CAN_TXSTS to 1,
and the transmiting mailbox 1 becomes idle
The hardware sets REQCFLG2 bit of the register CAN_TXSTS to 1,
and the transmiting mailbox 2 becomes idle
Events generating FIFO0 interrupt:
Set the FMNUM0[1:0] bit of the register CAN_RXF0 to a number
rather than 0 by the hardware, and FIFO0 will receive a new message
Set the FFULLFLG0 bit of the register CAN_RXF0 to 1 by the
hardware, and FIFO0 will be full
Set the FOVRFLG0 bit of the register CAN_RXF0 to 1 by the
hardware and FIFO0 will overrun
Events generating FIFO1 interrupt:
Set the FMNUM1[1:0] bit of the register CAN_RXF1 to a number
rather than 0 by the hardware, and FIFO1 will receive a new message
Set the FFULLFLG1 bit of the register CAN_RXF1 to 1 by the
hardware, and FIFO1 will be full
Set the FOVRFLG1 bit of the register CAN_RXF1 to 1 by the
hardware and FIFO1 will overrun
Events generating state change and error interrupt:
Set the SLEEPIEN bit of the register CAN_INTEN to 1 by the
hardware and it will enter the sleep mode
Set the WUPIEN bit of the register CAN_INTEN to 1 by the hardware
and interrupt enable will be woken up
Set the ERRWFLG bit of the register CAN_ERRSTS to 1 by the
hardware, and it means that the number of errors has reached the
threshold
Set the ERRPFLG bit of the register CAN_ERRSTS to 1 by the
hardware, and it means that the number of errors has reached the
threshold of passive error
Set the LERRC[2:0] bit of the register CAN_ERRSTS by the
hardware, and it indicates the condition of last error