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
10#pragma once
11
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
54#include "net/netdev.h"
55#include "net/ieee802154/radio.h"
56#include "radio.h"
57
66int openwsn_radio_init(void *radio_dev);
67
71typedef struct {
72#if IS_ACTIVE(MODULE_OPENWSN_RADIO_NETDEV)
73 netdev_t *dev;
74#else
76#endif
77 radio_capture_cbt startFrame_cb;
78 radio_capture_cbt endFrame_cb;
80
81#ifdef __cplusplus
82}
83#endif
84
Definitions low-level network driver interface.
struct ieee802154_dev ieee802154_dev_t
Forward declaration of the IEEE802.15.4 device descriptor.
Definition radio.h:407
struct netdev netdev_t
Forward declaration for netdev struct.
Definition netdev.h:288
int openwsn_radio_init(void *radio_dev)
Initialize OpenWSN radio.
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