24 #ifndef LELY_IO2_CAN_ERR_HPP_ 25 #define LELY_IO2_CAN_ERR_HPP_ 65 return static_cast<CanError>(~static_cast<
int>(rhs));
69 return static_cast<CanError>(
static_cast<int>(lhs) & static_cast<int>(rhs));
74 return static_cast<CanError>(
static_cast<int>(lhs) ^ static_cast<int>(rhs));
79 return static_cast<CanError>(
static_cast<int>(lhs) | static_cast<int>(rhs));
84 return lhs = lhs & rhs;
89 return lhs = lhs ^ rhs;
94 return lhs = lhs | rhs;
100 #endif // !LELY_IO2_CAN_ERR_HPP_ The device is in sleep mode.
This header file is part of the I/O library; it contains CAN bus error definitions.
CanState
The states of a CAN node, depending on the TX/RX error count.
CanError
The error flags of a CAN bus, which are not mutually exclusive.
One or more other errors.
The error passive state (TX/RX error count < 256).
The bus off state (TX/RX error count >= 256).
The error active state (TX/RX error count < 128).