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 
20 #ifndef NET_NETDEV_ETH_H
21 #define NET_NETDEV_ETH_H
22 
23 #include <stdint.h>
24 
25 #include "net/netdev.h"
26 #include "net/netopt.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
47 int netdev_eth_get(netdev_t *dev, netopt_t opt, void *value, size_t max_len);
48 
60 int netdev_eth_set(netdev_t *dev, netopt_t opt, const void *value, size_t value_len);
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif /* NET_NETDEV_ETH_H */
67 
netopt_t
netopt_t
Global list of configuration options available throughout the network stack, e.g.
Definition: netopt.h:50
netopt.h
Definition of global configuration options.
netdev.h
Definitions low-level network driver interface.
netdev_eth_get
int netdev_eth_get(netdev_t *dev, netopt_t opt, void *value, size_t max_len)
Fallback function for netdev ethernet devices' _get function.
netdev
Structure to hold driver state.
Definition: netdev.h:302
netdev_eth_set
int netdev_eth_set(netdev_t *dev, netopt_t opt, const void *value, size_t value_len)
Fallback function for netdev ethernet devices' _set function.