
GD32F10x User Manual
639
31:12
Reserved
Must be kept at reset value.
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 entering sleep working mode
This bit is set by hardware when entering sleep working mode, and cleared by
hardware when the CAN is not in sleep working mode. This bit can also be cleared
by software when writting 1 to this bit.
0: CAN is not in the sleep working mode
1: CAN is in the sleep working mode
3
WUIF
Status change interrupt flag of waking up from sleep working mode
This bit is set when CAN bus activity event is detected in sleep working mode.
This bit can be cleared by software when writting 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 the following events. 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 writting 1 to this
bit.
0: No error interrupt event
1: Any error interrupt event has happened
1
SLPWS
Sleep working state
This bit is set by hardware when the CAN enters sleep working mode after setting
SLPWMOD bit in CAN_CTL register. If the CAN leaves normal working mode to
sleep working mode, it must wait the current frame transmission or reception to be
completed. This bit is cleared by hardware when the CAN leaves 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 leaving sleep working
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...