Loading...
Searching...
No Matches
netdev_ieee802154_minimal.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
29#ifndef TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H
30#define TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H
31
32#include "net/netdev.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38#ifdef DOXYGEN
43#define NETDEV_IEEE802154_MINIMAL_NUMOF
44#endif
45
56
64
78
93int netdev_ieee802154_minimal_get(struct netdev *dev, netopt_t opt, void *data, size_t max_len);
94
109int netdev_ieee802154_minimal_set(struct netdev *dev, netopt_t opt, void *data, size_t len);
110
111#ifdef __cplusplus
112}
113#endif
114
115#endif /* TEST_UTILS_NETDEV_IEEE802154_MINIMAL_H */
Definitions low-level network driver interface.
void(* netdev_event_cb_t)(netdev_t *dev, netdev_event_t event)
Event callback for signaling event to upper layers.
Definition netdev.h:297
netopt_t
Global list of configuration options available throughout the network stack, e.g.
Definition netopt.h:45
int netdev_ieee802154_minimal_set(struct netdev *dev, netopt_t opt, void *data, size_t len)
Set an option to netdev minimal.
int netdev_ieee802154_minimal_get(struct netdev *dev, netopt_t opt, void *data, size_t max_len)
Get an option from netdev minimal.
int netdev_ieee802154_minimal_init_devs(netdev_event_cb_t cb)
Device-under-test initialization function.
int netdev_ieee802154_minimal_send(struct netdev *dev, iolist_t *pkt)
Send a IEEE 802.15.4 frame This is wrapper for the internal netdev send function, that ensures all ne...
int netdev_ieee802154_minimal_init(void)
Initialize the module.
iolist structure definition
Definition iolist.h:39
Structure to hold driver state.
Definition netdev.h:365