20#ifndef CAN_CONN_ISOTP_H
21#define CAN_CONN_ISOTP_H
31#if defined(MODULE_CONN_CAN_ISOTP_MULTI) || defined(DOXYGEN)
34#ifndef CONN_CAN_ISOTP_MBOX_SIZE
38#define CONN_CAN_ISOTP_MBOX_SIZE (16)
104#ifndef CONN_CAN_ISOTP_MBOX_SIZE
108#define CONN_CAN_ISOTP_MBOX_SIZE (16)
114typedef struct conn_can_isotp {
184#if defined(MODULE_CONN_CAN_ISOTP_MULTI) || defined(DOXYGEN)
int conn_can_isotp_recv(conn_can_isotp_t *conn, void *buf, size_t size, uint32_t timeout)
Receive isotp data.
int conn_can_isotp_close(conn_can_isotp_t *conn)
Close can isotp connection socket.
int conn_can_isotp_create(conn_can_isotp_t *conn, struct isotp_options *options, int ifnum)
Create can isotp connection socket.
#define CONN_CAN_ISOTP_MBOX_SIZE
Mailbox size of a conn_can_isotp_t.
struct conn_can_isotp_master conn_can_isotp_t
ISO-TP connection.
int conn_can_isotp_bind(conn_can_isotp_t *conn, struct isotp_fc_options *fc_options)
Bind a can isotp connection.
static void conn_can_isotp_init_slave(conn_can_isotp_t *master, conn_can_isotp_slave_t *slave)
Initialize a slave connection.
struct conn_can_isotp_slave conn_can_isotp_slave_t
ISO-TP salve connection.
int conn_can_isotp_send(conn_can_isotp_t *conn, const void *buf, size_t size, int flags)
Generic can send.
int conn_can_isotp_select(conn_can_isotp_slave_t **conn, conn_can_isotp_t *master, uint32_t timeout)
Wait for reception from multiple connections.
ISO TP high level interface.
Mutex for thread synchronization.
ISO-TP master connection.
int bound
1 if connection is bound
msg_t mbox_queue[CONN_CAN_ISOTP_MBOX_SIZE]
Connection list message queue.
mbox_t mbox
mailbox for the connection list
struct conn_can_isotp_slave * next
First slave in the list.
struct conn_can_isotp_master * master
Master connection.
int ifnum
interface number
can_rx_data_t * rx
Buffered rx data.
int ifnum
interface number
struct conn_can_isotp_slave * next
Next slave in the list.
int bound
1 if connection is bound
can_rx_data_t * rx
Buffered rx data.
struct conn_can_isotp_master * master
Master connection holding the mailbox.
The isotp_fc_options struct.
The isotp_options struct.
Mailbox struct definition.
Describes a message object which can be sent between threads.
Definitions high-level CAN interface.