Lely core libraries
2.2.5
vci.h
Go to the documentation of this file.
1
22
#ifndef LELY_CAN_VCI_H_
23
#define LELY_CAN_VCI_H_
24
25
#include <
lely/can/msg.h
>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
46
int
CANMSG_is_error
(
const
void
*msg,
enum
can_state
*pstate,
47
enum
can_error
*perror);
48
57
int
CANMSG2can_msg
(
const
void
*src,
struct
can_msg
*dst);
58
67
int
can_msg2CANMSG
(
const
struct
can_msg
*src,
void
*dst);
68
69
#ifdef __cplusplus
70
}
71
#endif
72
73
#endif // !LELY_CAN_VCI_H_
can_msg
A CAN or CAN FD format frame.
Definition:
msg.h:87
CANMSG_is_error
int CANMSG_is_error(const void *msg, enum can_state *pstate, enum can_error *perror)
Checks if an IXXAT VCI CAN message is an error message and parses the bus state and error flags if it...
can_msg2CANMSG
int can_msg2CANMSG(const struct can_msg *src, void *dst)
Converts a can_msg frame to an IXXAT VCI CAN message.
can_error
can_error
The error flags of a CAN bus, which are not mutually exclusive.
Definition:
err.h:42
can_state
can_state
The states of a CAN node, depending on the TX/RX error count.
Definition:
err.h:28
msg.h
CANMSG2can_msg
int CANMSG2can_msg(const void *src, struct can_msg *dst)
Converts an IXXAT VCI CAN message to a can_msg frame.
include
lely
can
vci.h
Generated by
1.8.17