drivers/include/net/netdev/eth.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for
6  * more details.
7  */
8 
19 #ifndef NET_NETDEV_ETH_H
20 #define NET_NETDEV_ETH_H
21 
22 #include <stdint.h>
23 
24 #include "net/netdev.h"
25 #include "net/netopt.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
46 int netdev_eth_get(netdev_t *dev, netopt_t opt, void *value, size_t max_len);
47 
59 int netdev_eth_set(netdev_t *dev, netopt_t opt, void *value, size_t value_len);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* NET_NETDEV_ETH_H */
int netdev_eth_set(netdev_t *dev, netopt_t opt, void *value, size_t value_len)
Fallback function for netdev ethernet devices&#39; _set function.
Definitions low-level network driver interface.
netopt_t
Global list of configuration options available throughout the network stack, e.g. ...
Definition: netopt.h:36
Structure to hold driver state.
Definition of global configuration options.
int netdev_eth_get(netdev_t *dev, netopt_t opt, void *value, size_t max_len)
Fallback function for netdev ethernet devices&#39; _get function.