
PISO-CANFD series CAN FD card User Manual (version 1.0.0)
Page: 80
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
E-mail: [email protected]
1
Transmitter or Receiver is in Error Warning State
1
RXWARN
Receiver in Error Warning State bit
0
Receiver not in Error Warning State (REC <= 95)
1
Receiver in Error Warning State (128 > REC > 95)
2
TXWARN
Transmitter in Error Warning State bit
0
Transmitter not in Error Warning State (TEC <= 95)
1
Transmitter in Error Warning State (128 > TEC > 95)
3
RXBP
Receiver in Error Passive State bit
0
Receiver not in Error Passive State (REC <= 127)
1
Receiver in Error Passive State (REC > 127)
4
TXBP
Transmitter in Error Passive State bit
0
Transmitter in Error Passive State (TEC <= 127)
1
Transmitter in Error Passive State (TEC > 127)
5
TXBO
Transmitter in Bus Off State bit
0
Transmitter not in Bus Off State
1
Transmitter in Bus Off State (TEC > 255).
In Configuration mode, TXBO is set, since the CAN module is not
on the bus
15-6
-
-
reserved
TxErrorCount
[out] Indicates the address of a variable used to retrieve the transmit error
counter value of the CAN controller.
RxErrorCount
[out] Indicates the address of a variable used to retrieve the receiver error
counter value of the CAN controller.
Return Value
If the function succeeds, the return value will be 0.
If the function fails, refer to Section 3.6 Error Code Definitions.