Lely core libraries
2.2.5
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
28
enum
can_state
{
30
CAN_STATE_ACTIVE
,
32
CAN_STATE_PASSIVE
,
34
CAN_STATE_BUSOFF
,
36
CAN_STATE_SLEEPING
,
38
CAN_STATE_STOPPED
39
};
40
42
enum
can_error
{
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_
features.h
CAN_STATE_BUSOFF
@ CAN_STATE_BUSOFF
The bus off state (TX/RX error count >= 256).
Definition:
err.h:34
CAN_STATE_ACTIVE
@ CAN_STATE_ACTIVE
The error active state (TX/RX error count < 128).
Definition:
err.h:30
CAN_ERROR_BIT
@ CAN_ERROR_BIT
A single bit error.
Definition:
err.h:44
CAN_STATE_PASSIVE
@ CAN_STATE_PASSIVE
The error passive state (TX/RX error count < 256).
Definition:
err.h:32
CAN_ERROR_ACK
@ CAN_ERROR_ACK
An acknowledgment error.
Definition:
err.h:52
CAN_ERROR_OTHER
@ CAN_ERROR_OTHER
One or more other errors.
Definition:
err.h:54
CAN_ERROR_FORM
@ CAN_ERROR_FORM
A form error.
Definition:
err.h:50
can_error
can_error
The error flags of a CAN bus, which are not mutually exclusive.
Definition:
err.h:42
CAN_STATE_STOPPED
@ CAN_STATE_STOPPED
The device is stopped.
Definition:
err.h:38
can_state
can_state
The states of a CAN node, depending on the TX/RX error count.
Definition:
err.h:28
CAN_ERROR_STUFF
@ CAN_ERROR_STUFF
A bit stuffing error.
Definition:
err.h:46
CAN_ERROR_CRC
@ CAN_ERROR_CRC
A CRC sequence error.
Definition:
err.h:48
CAN_STATE_SLEEPING
@ CAN_STATE_SLEEPING
The device is in sleep mode.
Definition:
err.h:36
include
lely
can
err.h
Generated by
1.8.17