Lely core libraries 2.3.5
err.h
Go to the documentation of this file.
1
21
22#ifndef LELY_CAN_ERR_H_
23#define LELY_CAN_ERR_H_
24
25#include <lely/features.h>
26
28enum can_state {
36 CAN_STATE_SLEEPING,
38 CAN_STATE_STOPPED
39};
40
44 CAN_ERROR_BIT = 1u << 0,
46 CAN_ERROR_STUFF = 1u << 1,
48 CAN_ERROR_CRC = 1u << 2,
50 CAN_ERROR_FORM = 1u << 3,
52 CAN_ERROR_ACK = 1u << 4,
54 CAN_ERROR_OTHER = 1u << 5
55};
56
57#endif // !LELY_CAN_ERR_H_
can_error
The error flags of a CAN bus, which are not mutually exclusive.
Definition err.h:42
@ CAN_STATE_BUSOFF
The bus off state (TX/RX error count >= 256).
Definition err.h:34
@ CAN_STATE_PASSIVE
The error passive state (TX/RX error count < 256).
Definition err.h:32
@ CAN_STATE_ACTIVE
The error active state (TX/RX error count < 128).
Definition err.h:30
This header file is part of the Lely libraries; it contains the compiler feature definitions.