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 
50 #ifndef OPENWSN_RADIO_H
51 #define OPENWSN_RADIO_H
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
57 #include "net/netdev.h"
58 #include "net/ieee802154/radio.h"
59 #include "radio.h"
60 
69 int openwsn_radio_init(void *radio_dev);
70 
74 typedef struct {
75 #if IS_ACTIVE(MODULE_OPENWSN_RADIO_NETDEV)
76  netdev_t *dev;
77 #else
79 #endif
80  radio_capture_cbt startFrame_cb;
81  radio_capture_cbt endFrame_cb;
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* OPENWSN_RADIO_H */
89 
openwsn_radio_t::endFrame_cb
radio_capture_cbt endFrame_cb
end of frame capture callback
Definition: openwsn_radio.h:81
openwsn_radio_init
int openwsn_radio_init(void *radio_dev)
Initialize OpenWSN radio.
netdev.h
Definitions low-level network driver interface.
ieee802154_dev
the IEEE802.15.4 device descriptor
Definition: radio.h:285
openwsn_radio_t::dev
ieee802154_dev_t * dev
radio hal
Definition: openwsn_radio.h:78
openwsn_radio_t
OpenWSN radio variables structure.
Definition: openwsn_radio.h:74
openwsn_radio_t::startFrame_cb
radio_capture_cbt startFrame_cb
start of frame capture callback
Definition: openwsn_radio.h:80
netdev
Structure to hold driver state.
Definition: netdev.h:302