Go to the documentation of this file.
19 #ifndef NET_NETDEV_LAYER_H
20 #define NET_NETDEV_LAYER_H
netopt_t
Global list of configuration options available throughout the network stack, e.g.
void netdev_isr_pass(netdev_t *dev)
Passthrough isr function.
#define assert(cond)
abort the program if assertion is false
netdev_event_t
Possible event types that are send from the device driver to the upper layer.
POSIX.1-2008 compliant version of the assert macro.
static netdev_t * netdev_add_layer(netdev_t *top, netdev_t *dev)
Add a netdev layer to the netdev layer stack.
int netdev_get_pass(netdev_t *dev, netopt_t opt, void *value, size_t max_len)
Passthrough get function.
int netdev_recv_pass(netdev_t *dev, void *buf, size_t len, void *info)
Passthrough recv function.
void * context
ptr to network stack context
Definitions low-level network driver interface.
int netdev_set_pass(netdev_t *dev, netopt_t opt, const void *value, size_t value_len)
Passthrough set function.
int netdev_init_pass(netdev_t *dev)
Passthrough init function.
iolist structure definition
Structure to hold driver state.
void netdev_event_cb_pass(netdev_t *dev, netdev_event_t event)
Passthrough event callback function.
int netdev_send_pass(netdev_t *dev, const iolist_t *iolist)
Passthrough send function.