21#ifndef LELY_CAN_CAN_H_
22#define LELY_CAN_CAN_H_
39 CAN_ERROR_BIT = 1u << 0,
41 CAN_ERROR_STUFF = 1u << 1,
43 CAN_ERROR_CRC = 1u << 2,
45 CAN_ERROR_FORM = 1u << 3,
47 CAN_ERROR_ACK = 1u << 4,
49 CAN_ERROR_OTHER = 1 << 5
This header file is part of the Lely libraries; it contains the compiler feature definitions.
can_error
The error flags of a CAN bus, which are not mutually exclusive.
@ CAN_STATE_BUSOFF
The bus off state (TX/RX error count >= 256).
@ CAN_STATE_PASSIVE
The error passive state (TX/RX error count < 256).
@ CAN_STATE_ACTIVE
The error active state (TX/RX error count < 128).