netopt: add NETOPTs required for gnrc_lorawan

This commit is contained in:
Jose Alamos 2019-06-27 16:04:39 +02:00
parent 523d1af490
commit a70b1858c4
2 changed files with 27 additions and 0 deletions

View File

@ -670,6 +670,29 @@ typedef enum {
/* add more options if needed */
/**
* @brief (@ref netopt_enable_t) Enable or disable OTAA activation (LoRaWAN)
*/
NETOPT_OTAA,
/**
* @brief (uint8_t) Get the demodulation margin of the last Link Check request.
*/
NETOPT_DEMOD_MARGIN,
/**
* @brief (uint8_t) Get the number of gateways of the last Link Check request.
*/
NETOPT_NUM_GATEWAYS,
/**
* @brief (@ref netopt_enable_t) Perform a Link Check request (LoRaWAN)
*
* When set, the next transmission will request a Link Check and will
* be received on the next downlink
*/
NETOPT_LINK_CHECK,
/**
* @brief maximum number of options defined here.
*

View File

@ -109,6 +109,10 @@ static const char *_netopt_strmap[] = {
[NETOPT_SYNCWORD] = "NETOPT_SYNCWORD",
[NETOPT_RANDOM] = "NETOPT_RANDOM",
[NETOPT_RX_SYMBOL_TIMEOUT] = "NETOPT_RX_SYMBOL_TIMEOUT",
[NETOPT_OTAA] = "NETOPT_OTAA",
[NETOPT_DEMOD_MARGIN] = "NETOPT_DEMOD_MARGIN",
[NETOPT_NUM_GATEWAYS] = "NETOPT_NUM_GATEWAYS",
[NETOPT_LINK_CHECK] = "NETOPT_LINK_CHECK",
[NETOPT_NUMOF] = "NETOPT_NUMOF",
};