lorawan.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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 
18 #ifndef NET_GNRC_NETIF_LORAWAN_H
19 #define NET_GNRC_NETIF_LORAWAN_H
20 
21 #include "net/gnrc/lorawan.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
30 #define GNRC_NETIF_LORAWAN_FLAGS_LINK_CHECK (0x1U)
31 
35 typedef struct {
36  uint8_t nwkskey[LORAMAC_NWKSKEY_LEN];
37  uint8_t appskey[LORAMAC_APPSKEY_LEN];
38  uint8_t appkey[LORAMAC_APPKEY_LEN];
39  uint8_t deveui[LORAMAC_DEVEUI_LEN];
40  uint8_t appeui[LORAMAC_APPEUI_LEN];
42  uint8_t flags;
43  uint8_t demod_margin;
44  uint8_t num_gateways;
45  uint8_t datarate;
46  uint8_t port;
47  uint8_t ack_req;
48  uint8_t otaa;
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* NET_GNRC_NETIF_LORAWAN_H */
56 
LORAMAC_APPKEY_LEN
#define LORAMAC_APPKEY_LEN
Application key length in bytes.
Definition: loramac.h:320
gnrc_netif_lorawan_t::demod_margin
uint8_t demod_margin
value of last demodulation margin
Definition: lorawan.h:43
gnrc_lorawan_t
GNRC LoRaWAN mac descriptor.
Definition: gnrc_lorawan_internal.h:178
LORAMAC_APPSKEY_LEN
#define LORAMAC_APPSKEY_LEN
Application session key length in bytes.
Definition: loramac.h:325
gnrc_netif_lorawan_t::datarate
uint8_t datarate
LoRaWAN datarate for the next transmission.
Definition: lorawan.h:45
lorawan.h
GNRC LoRaWAN API definition.
LORAMAC_NWKSKEY_LEN
#define LORAMAC_NWKSKEY_LEN
Network session key length in bytes.
Definition: loramac.h:330
gnrc_netif_lorawan_t
GNRC LoRaWAN interface descriptor.
Definition: lorawan.h:35
LORAMAC_APPEUI_LEN
#define LORAMAC_APPEUI_LEN
Application EUI length in bytes.
Definition: loramac.h:315
gnrc_netif_lorawan_t::mac
gnrc_lorawan_t mac
gnrc lorawan mac descriptor
Definition: lorawan.h:41
LORAMAC_DEVEUI_LEN
#define LORAMAC_DEVEUI_LEN
Device EUI length in bytes.
Definition: loramac.h:305
gnrc_netif_lorawan_t::ack_req
uint8_t ack_req
Request ACK in the next transmission.
Definition: lorawan.h:47
gnrc_netif_lorawan_t::num_gateways
uint8_t num_gateways
number of gateways of last link check
Definition: lorawan.h:44
gnrc_netif_lorawan_t::otaa
uint8_t otaa
whether the next transmission is OTAA or not
Definition: lorawan.h:48
gnrc_netif_lorawan_t::flags
uint8_t flags
flags for the LoRaWAN interface
Definition: lorawan.h:42
gnrc_netif_lorawan_t::port
uint8_t port
LoRaWAN port for the next transmission.
Definition: lorawan.h:46