Loading...
Searching...
No Matches
openwsn_radio.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Hamburg University of Applied Sciences
3 * 2020 Inria
4 *
5 * This file is subject to the terms and conditions of the GNU Lesser
6 * General Public License v2.1. See the file LICENSE in the top level
7 * directory for more details.
8 */
9
48#ifndef OPENWSN_RADIO_H
49#define OPENWSN_RADIO_H
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
55#include "net/netdev.h"
56#include "net/ieee802154/radio.h"
57#include "radio.h"
58
67int openwsn_radio_init(void *radio_dev);
68
72typedef struct {
73#if IS_ACTIVE(MODULE_OPENWSN_RADIO_NETDEV)
74 netdev_t *dev;
75#else
77#endif
78 radio_capture_cbt startFrame_cb;
79 radio_capture_cbt endFrame_cb;
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* OPENWSN_RADIO_H */
Definitions low-level network driver interface.
int openwsn_radio_init(void *radio_dev)
Initialize OpenWSN radio.
the IEEE802.15.4 device descriptor
Definition radio.h:415
Structure to hold driver state.
Definition netdev.h:363
OpenWSN radio variables structure.
radio_capture_cbt endFrame_cb
end of frame capture callback
ieee802154_dev_t * dev
radio hal
radio_capture_cbt startFrame_cb
start of frame capture callback