Loading...
Searching...
No Matches

GNRC LoRaWAN region specific functions. More...

Detailed Description

GNRC LoRaWAN region specific functions.

Author
José Ignacio Alamos jose..nosp@m.alam.nosp@m.os@ha.nosp@m.w-ha.nosp@m.mburg.nosp@m..de

Definition in file region.h.

#include "modules.h"
#include "net/gnrc/lorawan.h"
+ Include dependency graph for region.h:

Go to the source code of this file.

#define GNRC_LORAWAN_DEFAULT_CHANNELS_NUMOF    ARRAY_SIZE(gnrc_lorawan_default_channels)
 Number of default channels.
 
static const uint32_t gnrc_lorawan_default_channels []
 Default LoRaWAN channels.
 
void gnrc_lorawan_process_cflist (gnrc_lorawan_t *mac, uint8_t *cflist)
 Process Channel Frequency list frame.
 
uint8_t gnrc_lorawan_rx1_get_dr_offset (uint8_t dr_up, uint8_t dr_offset)
 Get the datarate of the first reception windows.
 
bool gnrc_lorawan_validate_dr (uint8_t dr)
 Check if a datarate is valid in the current region.
 

Macro Definition Documentation

◆ GNRC_LORAWAN_DEFAULT_CHANNELS_NUMOF

#define GNRC_LORAWAN_DEFAULT_CHANNELS_NUMOF    ARRAY_SIZE(gnrc_lorawan_default_channels)

Number of default channels.

Definition at line 44 of file region.h.

Function Documentation

◆ gnrc_lorawan_process_cflist()

void gnrc_lorawan_process_cflist ( gnrc_lorawan_t mac,
uint8_t *  cflist 
)

Process Channel Frequency list frame.

Parameters
[in]macpointer to the MAC descriptor
[in]cflistthe CFList to be processed

◆ gnrc_lorawan_rx1_get_dr_offset()

uint8_t gnrc_lorawan_rx1_get_dr_offset ( uint8_t  dr_up,
uint8_t  dr_offset 
)

Get the datarate of the first reception windows.

Parameters
[in]dr_upthe datarate of the transmission
[in]dr_offsetthe offset of the first reception window
Returns
datarate

◆ gnrc_lorawan_validate_dr()

bool gnrc_lorawan_validate_dr ( uint8_t  dr)

Check if a datarate is valid in the current region.

Parameters
[in]drthe datarate to be checked
Returns
true if datarate is valid
false otherwise

Variable Documentation

◆ gnrc_lorawan_default_channels

const uint32_t gnrc_lorawan_default_channels[]
static
Initial value:
= {
}

Default LoRaWAN channels.

Definition at line 31 of file region.h.