sam0_eth_netdev.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2020 Dylan Laduranty
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include <stdbool.h>
20 
21 #include "net/ethernet.h"
22 #include "net/netdev.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 extern const netdev_driver_t sam0_eth_driver;
32 
36 typedef struct {
39 
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
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