GD32VF103 User Manual
443
11
RXL
RX level
10
LASTRX
Last sample value of RX pin
9
RS
Receiving state
0: CAN is not working in the receiving state
1: CAN is working in the receiving state
8
TS
Transmitting state
0: CAN is not working in the transmitting state
1: CAN is working in the transmitting state
7:5
Reserved
Must be kept at reset value
4
SLPIF
Status change interrupt flag of sleep working mode entering
This bit is set by hardware when entering sleep working mode, and cleared by
hardware when the CAN not in sleep working mode. This bit can also cleared by
software when write 1 to this bit.
0: CAN is not entering the sleep working mode
1: CAN is entering the sleep working mode.
3
WUIF
Status change interrupt flag of wakeup from sleep working mode
This bit is set when CAN bus activity detected on sleep working mode. This bit can
cleared by software when write 1 to this bit.
0: Wakeup event is not coming
1: Wakeup event is coming
2
ERRIF
Error interrupt flag
This bit is set by following event. The BOERR bit in CAN_ERR register is set and
BOIE bit in CAN_INTEN register is set. Or the PERR bit in CAN_ERR register is
set and PERRIE bit in CAN_INTEN register is set. Or the WERR bit in CAN_ERR
register is set and WERRIE bit in CAN_INTEN register is set. Or the ERRN bits in
CAN_ERR register are set to 1 to 6 (not 0 and not 7) and ERRNIE in CAN_INTEN
register is set. This bit is cleared by software when write 1 to this bit.
0: No error interrupt flag
1: Any error interrupt flag has happened
1
SLPWS
Sleep working state
This bit is set by hardware when the CAN enter sleep working mode after set
SLPWMOD bit in CAN_CTL register. If the CAN leave from normal working mode
to sleep working mode, it must wait the current frame transmission or reception
completed. This bit is cleared by hardware when the CAN leave sleep working
mode. Clear SLPWMOD bit in CAN_CTL register or automatically detect the CAN
bus activity when AWU bit is set in CAN_CTL register. If leave sleep working
mode to normal working mode, this bit will be cleared after receive 11 consecutive
recessive bits from the CAN bus.
0: CAN is not the state of sleep working mode