Lely core libraries 2.3.4
err.h
Go to the documentation of this file.
1
22#ifndef LELY_IO2_CAN_ERR_H_
23#define LELY_IO2_CAN_ERR_H_
24
25#include <lely/can/err.h>
26
28struct can_err {
33 int state;
39 int error;
40};
41
43#define CAN_ERR_INIT \
44 { \
45 0, 0 \
46 }
47
48#endif // !LELY_IO2_CAN_ERR_H_
This header file is part of the CAN library; it contains CAN bus error definitions.
A CAN error frame.
Definition: err.h:28
int state
The state of the CAN node (one of CAN_STATE_ACTIVE, CAN_STATE_PASSIVE or CAN_STATE_BUSOFF).
Definition: err.h:33
int error
The error flags of the CAN bus (any combination of CAN_ERROR_BIT, CAN_ERROR_STUFF,...
Definition: err.h:39