Lely core libraries
2.3.4
|
Go to the documentation of this file.
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 canfd_frame2can_msg(const struct canfd_frame *src, struct can_msg *dst)
Converts a SocketCAN CAN FD frame to a can_msg frame.
int can_msg2can_frame(const struct can_msg *src, struct can_frame *dst)
Converts a can_msg frame to a SocketCAN CAN frame.
can_state
The states of a CAN node, depending on the TX/RX error count.
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.
int can_frame2can_msg(const struct can_frame *src, struct can_msg *dst)
Converts a SocketCAN CAN frame to a can_msg frame.