Go to the documentation of this file.
25 #ifndef CAN_CONN_RAW_H
26 #define CAN_CONN_RAW_H
36 #ifndef CONN_CAN_RAW_MBOX_SIZE
40 #define CONN_CAN_RAW_MBOX_SIZE (16)
47 #define CONN_CAN_DONTWAIT (1)
48 #define CONN_CAN_RECVONLY (2)
54 typedef struct conn_can_raw {
81 int ifnum,
int flags);
int conn_can_raw_recv(conn_can_raw_t *conn, struct can_frame *frame, uint32_t timeout)
Generic can receive.
int ifnum
Interface number of the can device.
int conn_can_raw_set_filter(conn_can_raw_t *conn, struct can_filter *filter, size_t count)
Set raw CAN filters.
Definitions high-level CAN interface.
Controller Area Network filter.
struct can_filter * filter
list of filter
size_t count
number of filters set
int conn_can_raw_send(conn_can_raw_t *conn, const struct can_frame *frame, int flags)
Generic can send.
Mailbox struct definition.
int flags
Config flags for that conn object.
Controller Area Network frame.
#define CONN_CAN_RAW_MBOX_SIZE
Mailbox size of a conn_can_raw_t.
Definitions high-level RAW CAN interface.
struct conn_can_raw conn_can_raw_t
RAW CAN connection.
int conn_can_raw_create(conn_can_raw_t *conn, struct can_filter *filter, size_t count, int ifnum, int flags)
Create can connection socket.
Describes a message object which can be sent between threads.
int conn_can_raw_close(conn_can_raw_t *conn)
Close can connection socket.