sam0_eth_netdev.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Dylan Laduranty
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef SAM0_ETH_NETDEV_H
21 #define SAM0_ETH_NETDEV_H
22 
23 #include <stdbool.h>
24 
25 #include "net/ethernet.h"
26 #include "net/netdev.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
35 extern const netdev_driver_t sam0_eth_driver;
36 
40 typedef struct {
43 
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif /* SAM0_ETH_NETDEV_H */
Definitions low-level network driver interface.
Definitions for Ethernet.
void sam0_eth_setup(netdev_t *dev)
Setup SAM0 Ethernet peripheral.
const netdev_driver_t sam0_eth_driver
Reference to the netdev device driver struct.
Structure to hold driver interface -> function mapping.
Definition: netdev.h:426
Structure to hold driver state.
Definition: netdev.h:365
Device descriptor for SAM0-ETH devices.
netdev_t * netdev
netdev parent struct