Netdev layer helper functions. More...
Netdev layer helper functions.
Definition in file layer.h.
Include dependency graph for layer.h:Go to the source code of this file.
| static netdev_t * | netdev_add_layer (netdev_t *top, netdev_t *dev) |
| Add a netdev layer to the netdev layer stack. More... | |
| int | netdev_init_pass (netdev_t *dev) |
| Passthrough init function. More... | |
| void | netdev_isr_pass (netdev_t *dev) |
| Passthrough isr function. More... | |
| int | netdev_send_pass (netdev_t *dev, const iolist_t *iolist) |
| Passthrough send function. More... | |
| int | netdev_recv_pass (netdev_t *dev, void *buf, size_t len, void *info) |
| Passthrough recv function. More... | |
| int | netdev_get_pass (netdev_t *dev, netopt_t opt, void *value, size_t max_len) |
| Passthrough get function. More... | |
| int | netdev_set_pass (netdev_t *dev, netopt_t opt, const void *value, size_t value_len) |
| Passthrough set function. More... | |
| void | netdev_event_cb_pass (netdev_t *dev, netdev_event_t event) |
| Passthrough event callback function. More... | |
| void netdev_event_cb_pass | ( | netdev_t * | dev, |
| netdev_event_t | event | ||
| ) |
Passthrough event callback function.
| [in] | dev | network device descriptor |
| [in] | event | type of the event |
Passthrough get function.
See also netdev_driver for the extended description of this functions behaviour
| [in] | dev | network device descriptor |
| [in] | opt | option type |
| [out] | value | pointer to store the option's value in |
| [in] | max_len | maximal amount of byte that fit into value |
value < 0 on error, 0 on success | int netdev_init_pass | ( | netdev_t * | dev | ) |
Passthrough init function.
See also netdev_driver for the extended description of this functions behaviour
| [in] | dev | network device descriptor |
< 0 on error, 0 on success | void netdev_isr_pass | ( | netdev_t * | dev | ) |
Passthrough isr function.
See also netdev_driver for the extended description of this functions behaviour
| [in] | dev | network device descriptor |
| int netdev_recv_pass | ( | netdev_t * | dev, |
| void * | buf, | ||
| size_t | len, | ||
| void * | info | ||
| ) |
Passthrough recv function.
See also netdev_driver for the extended description of this functions behaviour
| [in] | dev | network device descriptor |
| [out] | buf | buffer to write into or NULL |
| [in] | len | maximum number of bytes to read |
| [out] | info | status information for the received packet. Might be of different type for different netdev devices. May be NULL if not needed or applicable. |
< 0 on error Passthrough send function.
See also netdev_driver for the extended description of this functions behaviour
| [in] | dev | network device descriptor |
| [in] | iolist | io vector list to send |
< 0 on error Passthrough set function.
See also netdev_driver for the extended description of this functions behaviour
| [in] | dev | network device descriptor |
| [in] | opt | option type |
| [in] | value | value to set |
| [in] | value_len | the length of value |
value < 0 on error, 0 on success