Lely core libraries 2.3.4
err.h
Go to the documentation of this file.
1
22#ifndef LELY_CAN_ERR_H_
23#define LELY_CAN_ERR_H_
24
25#include <lely/features.h>
26
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_ERROR_FORM
A form error.
Definition err.h:50
@ CAN_ERROR_BIT
A single bit error.
Definition err.h:44
@ CAN_ERROR_STUFF
A bit stuffing error.
Definition err.h:46
@ CAN_ERROR_ACK
An acknowledgment error.
Definition err.h:52
@ CAN_ERROR_CRC
A CRC sequence error.
Definition err.h:48
@ CAN_ERROR_OTHER
One or more other errors.
Definition err.h:54
can_state
The states of a CAN node, depending on the TX/RX error count.
Definition err.h:28
@ CAN_STATE_BUSOFF
The bus off state (TX/RX error count >= 256).
Definition err.h:34
@ CAN_STATE_SLEEPING
The device is in sleep mode.
Definition err.h:36
@ CAN_STATE_PASSIVE
The error passive state (TX/RX error count < 256).
Definition err.h:32
@ CAN_STATE_STOPPED
The device is stopped.
Definition err.h:38
@ 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.