LoRaWAN adaption for Network interface API. More...
LoRaWAN adaption for Network interface API.
Definition in file lorawan.h.
Go to the source code of this file.
Data Structures | |
struct | gnrc_netif_lorawan_t |
GNRC LoRaWAN interface descriptor. More... | |
#define | GNRC_NETIF_LORAWAN_FLAGS_LINK_CHECK (0x1U) |
A Link Check request was scheduled. | |
#define | CONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR |
Encode LoRaWAN port in GNRC netif header. More... | |
static int | gnrc_netif_lorawan_set_appkey (gnrc_netif_lorawan_t *lw_netif, const uint8_t *key, size_t len) |
Set the app key in the interface descriptor. More... | |
static uint8_t * | gnrc_netif_lorawan_get_appkey (gnrc_netif_lorawan_t *lw_netif) |
Get the app key from the interface descriptor. More... | |
static int | gnrc_netif_lorawan_set_snwksintkey (gnrc_netif_lorawan_t *lw_netif, const uint8_t *key, size_t len) |
Set the serving network session integrity key in the interface descriptor. More... | |
static int | gnrc_netif_lorawan_set_nwksenckey (gnrc_netif_lorawan_t *lw_netif, const uint8_t *key, size_t len) |
Set the network session encryption key in the interface descriptor. More... | |
#define CONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR |
Encode LoRaWAN port in GNRC netif header.
When set, GNRC netif will interpret the destination address of the GNRC netif header as the LoRaWAN port. For downlinks, a GNRC netif header with the received port in destination field will be included in the first snip.
|
inlinestatic |
Get the app key from the interface descriptor.
This getter function exists to allow if (IS_USED(...)) constructs in the LoRaWAN code in order to increase code coverage.
[in] | lw_netif | pointer to the interface descriptor |
|
inlinestatic |
Set the app key in the interface descriptor.
This getter function exists to allow if (IS_USED(...)) constructs in the LoRaWAN code in order to increase code coverage.
[in] | lw_netif | pointer to the interface descriptor |
[in] | key | pointer to the app key |
[in] | len | length of the app key |
|
inlinestatic |
Set the network session encryption key in the interface descriptor.
This getter function exists to allow if (IS_USED(...)) constructs in the LoRaWAN code in order to increase code coverage.
[in] | lw_netif | pointer to the interface descriptor |
[in] | key | pointer to the network session encryption key |
[in] | len | length of network session encryption key |
|
inlinestatic |
Set the serving network session integrity key in the interface descriptor.
This getter function exists to allow if (IS_USED(...)) constructs in the LoRaWAN code in order to increase code coverage.
[in] | lw_netif | pointer to the interface descriptor |
[in] | key | pointer to the serving network session integrity key |
[in] | len | length of serving network session integrity key |