This data structure describes the state of a CAN interface. It should be seen as a proposal and can be modified ad lib, as the user access is not direct, but via functions.
byBusState |
USINT |
state of CAN bus |
uiBaudrate |
UINT |
baud rate [kbit/s] |
ctMessagesSent |
CAA.COUNT |
number of messages sent |
ctMessagesReceived |
CAA.COUNT |
number of messages received |
ctMessagesWaitForSend |
CAA.COUNT |
number of messages waiting for being sent |
usiBusLoad |
USINT |
actual bus load as percentage of maximum load |
ctRxErrors |
CAA.COUNT |
number of errors during receive |
ctTxErrors |
CAA.COUNT |
number of errors during sending |