22 #ifndef LELY_CAN_SOCKET_H_ 23 #define LELY_CAN_SOCKET_H_ 100 #endif // !LELY_NO_CANFD 106 #endif // !LELY_CAN_SOCKET_H_ int can_msg2canfd_frame(const struct can_msg *src, struct canfd_frame *dst)
Converts a can_msg frame to a SocketCAN CAN FD frame.
A CAN or CAN FD format frame.
can_error
The error flags of a CAN bus, which are not mutually exclusive.
int can_frame_is_error(const struct can_frame *frame, enum can_state *pstate, enum can_error *perror)
Checks if a SocketCAN CAN frame is an error frame and parses the bus state and error flags if it is...
This header file is part of the CAN library; it contains CAN bus error definitions.
int canfd_frame2can_msg(const struct canfd_frame *src, struct can_msg *dst)
Converts a SocketCAN CAN FD frame to a can_msg frame.
can_state
The states of a CAN node, depending on the TX/RX error count.
int can_msg2can_frame(const struct can_msg *src, struct can_frame *dst)
Converts a can_msg frame to a SocketCAN CAN frame.
This header file is part of the CAN library; it contains the CAN frame declarations.
int can_frame2can_msg(const struct can_frame *src, struct can_msg *dst)
Converts a SocketCAN CAN frame to a can_msg frame.