![](http://datasheet.mmic.net.cn/30000/M30956FKTGP_datasheet_2359453/M30956FKTGP_363.png)
22. 16-Slot CAN Module
22.1.4.1
MBOX3 to MBOX0 Bits
When a transmit operation is completed or a received data is stored, bits MBOX3 to MBOX0 indicate the
memory slot number, which is used for the operation.
22.1.4.2
TRMSUCC Bit
The TRMSUCC bit becomes 1 when a transmit operation is successfully completed.
The TRMSUCC bit becomes 0 when a receive operation is successfully completed.
22.1.4.3
RECSUCC Bit
The RECSUCC bit becomes 1 when a receive operation is successfully completed (regardless of whether a
receive message has been stored in the message slot). When a message transmitted in loopback mode is
received, the TRMSUCC bit becomes 1 and the RECSUCC bit becomes 0.
The RECSUCC bit becomes 0 when a transmit operation is successfully completed.
22.1.4.4
TRMSTATE Bit
The TRMSTATE bit becomes 1 when the CAN module is operating as a transmit node.
The TRMSTATE bit becomes 0 when the CAN module is in a bus-idle state or starts operating as a receive
node.
22.1.4.5
RECSTATE Bit
The RECSTATE bit becomes 1 when the CAN module is operating as a receive node.
The RECSTATE bit becomes 0 when the CAN module is in a bus-idle state or starts operating as a transmit
node.
22.1.4.6
STATE_RESET Bit
After both RESET1 and RESET0 bits are set to 1 (CAN module is reset), the STATE_RESET bit becomes 1 as
soon as the CAN module reset is completed.
The STATE_RESET bit becomes 0 when both bits RESET1 and RESET0 are set to 0 (CAN module is out of
reset).
22.1.4.7
STATE_LOOPBACK Bit
The STATE_ LOOPBACK bit is 1 while the CAN module is operating in loopback mode.
The STATE_LOOPBACK bit becomes 1 when the LOOPBACK bit in the CiCTLR0 register is set to 1 (loop
back function enabled).
The STATE_LOOPBACK bit becomes 0 when the LOOPBACK bit is set to 0 (loop back function disabled).
22.1.4.8
STATE_BASICCAN Bit
The STATE_BASICCAN bit is 1 while the CAN module is operating in BasicCAN mode. Refer to 22.1.1.3 The STATE_BASICCAN bit becomes 0 when the BASICCAN bit is set to 0 (BasicCAN mode function
disabled).
The STATE_BASICCAN bit becomes 1 when the BASICCAN bit is set to 1 (BasicCAN mode function
enabled) and registers CiMCTL14 and CiMCTL15 are set to receive a data frame.