Lely core libraries  2.2.5
err.h
Go to the documentation of this file.
1 
22 #ifndef LELY_IO2_CAN_ERR_H_
23 #define LELY_IO2_CAN_ERR_H_
24 
25 #include <lely/can/err.h>
26 
28 struct can_err {
33  int state;
39  int error;
40 };
41 
43 #define CAN_ERR_INIT \
44  { \
45  0, 0 \
46  }
47 
48 #endif // !LELY_IO2_CAN_ERR_H_
can_err
A CAN error frame.
Definition: err.h:28
err.h
can_err::error
int error
The error flags of the CAN bus (any combination of CAN_ERROR_BIT, CAN_ERROR_STUFF,...
Definition: err.h:39
can_err::state
int state
The state of the CAN node (one of CAN_STATE_ACTIVE, CAN_STATE_PASSIVE or CAN_STATE_BUSOFF).
Definition: err.h:33