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)
81 int ifnum,
int flags);
Definitions high-level RAW CAN interface.
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.
struct conn_can_raw conn_can_raw_t
RAW CAN connection.
#define CONN_CAN_RAW_MBOX_SIZE
Mailbox size of a conn_can_raw_t.
int conn_can_raw_recv(conn_can_raw_t *conn, struct can_frame *frame, uint32_t timeout)
Generic can receive.
int conn_can_raw_close(conn_can_raw_t *conn)
Close can connection socket.
int conn_can_raw_set_filter(conn_can_raw_t *conn, struct can_filter *filter, size_t count)
Set raw CAN filters.
int conn_can_raw_send(conn_can_raw_t *conn, const struct can_frame *frame, int flags)
Generic can send.
Controller Area Network filter.
Controller Area Network frame.
struct can_filter * filter
list of filter
msg_t mbox_queue[CONN_CAN_RAW_MBOX_SIZE]
message queue
size_t count
number of filters set
int flags
Config flags for that conn object.
int ifnum
Interface number of the can device.
Mailbox struct definition.
Describes a message object which can be sent between threads.
Definitions high-level CAN interface.