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 
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53 
54 #include "net/netdev.h"
55 #include "net/ieee802154/radio.h"
56 #include "radio.h"
57 
66 int openwsn_radio_init(void *radio_dev);
67 
71 typedef 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.
int openwsn_radio_init(void *radio_dev)
Initialize OpenWSN radio.
the IEEE802.15.4 device descriptor
Definition: radio.h:421
Structure to hold driver state.
Definition: netdev.h:365
OpenWSN radio variables structure.
Definition: openwsn_radio.h:71
radio_capture_cbt endFrame_cb
end of frame capture callback
Definition: openwsn_radio.h:78
ieee802154_dev_t * dev
radio hal
Definition: openwsn_radio.h:75
radio_capture_cbt startFrame_cb
start of frame capture callback
Definition: openwsn_radio.h:77