Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
netdev_eth_minimal_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2022 HAW Hamburg
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
19
#ifndef NETDEV_ETH_MINIMAL_INTERNAL_H
20
#define NETDEV_ETH_MINIMAL_INTERNAL_H
21
22
#include "
net/netdev.h
"
23
#include "event.h"
24
#include "init_dev.h"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
35
typedef
struct
{
36
event_t
event
;
37
netdev_t
*
dev
;
38
}
device_reg_entry_t
;
39
43
extern
device_reg_entry_t
_devices
[
NETDEV_ETH_MINIMAL_NUMOF
];
44
45
#ifdef __cplusplus
46
}
47
#endif
48
49
#endif
/* NETDEV_ETH_MINIMAL_INTERNAL_H */
netdev.h
Definitions low-level network driver interface.
NETDEV_ETH_MINIMAL_NUMOF
#define NETDEV_ETH_MINIMAL_NUMOF
Maximum number of devices to handle.
Definition
netdev_eth_minimal.h:40
_devices
device_reg_entry_t _devices[NETDEV_ETH_MINIMAL_NUMOF]
Registry of Ethernet devices to serve ISRs.
device_reg_entry_t
Registry entry to keep track of registered Ethernet network devices.
Definition
netdev_eth_minimal_internal.h:35
device_reg_entry_t::dev
netdev_t * dev
pointer to the device
Definition
netdev_eth_minimal_internal.h:37
device_reg_entry_t::event
event_t event
event to serve ISR
Definition
netdev_eth_minimal_internal.h:36
event
event structure
Definition
event.h:148
netdev
Structure to hold driver state.
Definition
netdev.h:365
Generated on Mon Dec 23 2024 22:27:48 by
1.9.8