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 
9 #pragma once
10 
22 #include <stdbool.h>
23 
24 #include "net/ethernet.h"
25 #include "net/netdev.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
34 extern const netdev_driver_t sam0_eth_driver;
35 
39 typedef struct {
42 
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
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:425
Structure to hold driver state.
Definition: netdev.h:364
Device descriptor for SAM0-ETH devices.
netdev_t * netdev
netdev parent struct