SX126x-Arduino
|
#include <stdbool.h>
#include <string.h>
#include <stdint.h>
#include "boards/mcu/timer.h"
#include "mac/LoRaMac.h"
#include "Region.h"
Functions | |
bool | RegionIsActive (LoRaMacRegion_t region) |
The function verifies if a region is active or not. If a region is not active, it cannot be used. More... | |
PhyParam_t | RegionGetPhyParam (LoRaMacRegion_t region, GetPhyParams_t *getPhy) |
The function gets a value of a specific phy attribute. More... | |
void | RegionSetBandTxDone (LoRaMacRegion_t region, SetBandTxDoneParams_t *txDone) |
Updates the last TX done parameters of the current channel. More... | |
void | RegionInitDefaults (LoRaMacRegion_t region, InitType_t type) |
Initializes the channels masks and the channels. More... | |
bool | RegionVerify (LoRaMacRegion_t region, VerifyParams_t *verify, PhyAttribute_t phyAttribute) |
Verifies a parameter. More... | |
void | RegionApplyCFList (LoRaMacRegion_t region, ApplyCFListParams_t *applyCFList) |
The function parses the input buffer and sets up the channels of the CF list. More... | |
bool | RegionChanMaskSet (LoRaMacRegion_t region, ChanMaskSetParams_t *chanMaskSet) |
Sets a channels mask. More... | |
bool | RegionAdrNext (LoRaMacRegion_t region, AdrNextParams_t *adrNext, int8_t *drOut, int8_t *txPowOut, uint32_t *adrAckCounter) |
Calculates the next datarate to set, when ADR is on or off. More... | |
void | RegionComputeRxWindowParameters (LoRaMacRegion_t region, int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams) |
bool | RegionRxConfig (LoRaMacRegion_t region, RxConfigParams_t *rxConfig, int8_t *datarate) |
Configuration of the RX windows. More... | |
bool | RegionTxConfig (LoRaMacRegion_t region, TxConfigParams_t *txConfig, int8_t *txPower, TimerTime_t *txTimeOnAir) |
TX configuration. More... | |
uint8_t | RegionLinkAdrReq (LoRaMacRegion_t region, LinkAdrReqParams_t *linkAdrReq, int8_t *drOut, int8_t *txPowOut, uint8_t *nbRepOut, uint8_t *nbBytesParsed) |
The function processes a Link ADR Request. More... | |
uint8_t | RegionRxParamSetupReq (LoRaMacRegion_t region, RxParamSetupReqParams_t *rxParamSetupReq) |
The function processes a RX Parameter Setup Request. More... | |
uint8_t | RegionNewChannelReq (LoRaMacRegion_t region, NewChannelReqParams_t *newChannelReq) |
The function processes a New Channel Request. More... | |
int8_t | RegionTxParamSetupReq (LoRaMacRegion_t region, TxParamSetupReqParams_t *txParamSetupReq) |
The function processes a TX ParamSetup Request. More... | |
uint8_t | RegionDlChannelReq (LoRaMacRegion_t region, DlChannelReqParams_t *dlChannelReq) |
The function processes a DlChannel Request. More... | |
int8_t | RegionAlternateDr (LoRaMacRegion_t region, AlternateDrParams_t *alternateDr) |
Alternates the datarate of the channel for the join request. More... | |
void | RegionCalcBackOff (LoRaMacRegion_t region, CalcBackOffParams_t *calcBackOff) |
Calculates the back-off time. More... | |
bool | RegionNextChannel (LoRaMacRegion_t region, NextChanParams_t *nextChanParams, uint8_t *channel, TimerTime_t *time, TimerTime_t *aggregatedTimeOff) |
Searches and set the next random available channel. More... | |
LoRaMacStatus_t | RegionChannelAdd (LoRaMacRegion_t region, ChannelAddParams_t *channelAdd) |
Adds a channel. More... | |
bool | RegionChannelsRemove (LoRaMacRegion_t region, ChannelRemoveParams_t *channelRemove) |
Removes a channel. More... | |
void | RegionSetContinuousWave (LoRaMacRegion_t region, ContinuousWaveParams_t *continuousWave) |
Sets the radio into continuous wave mode. More... | |
uint8_t | RegionApplyDrOffset (LoRaMacRegion_t region, uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset) |
Computes new datarate according to the given offset. More... | |
#define AS923_IS_ACTIVE | ( | ) |
#define AS923_GET_PHY_PARAM | ( | ) |
#define AS923_SET_BAND_TX_DONE | ( | ) |
#define AS923_INIT_DEFAULTS | ( | ) |
#define AS923_VERIFY | ( | ) |
#define AS923_APPLY_CF_LIST | ( | ) |
#define AS923_CHAN_MASK_SET | ( | ) |
#define AS923_ADR_NEXT | ( | ) |
#define AS923_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define AS923_RX_CONFIG | ( | ) |
#define AS923_TX_CONFIG | ( | ) |
#define AS923_LINK_ADR_REQ | ( | ) |
#define AS923_RX_PARAM_SETUP_REQ | ( | ) |
#define AS923_NEW_CHANNEL_REQ | ( | ) |
#define AS923_TX_PARAM_SETUP_REQ | ( | ) |
#define AS923_DL_CHANNEL_REQ | ( | ) |
#define AS923_ALTERNATE_DR | ( | ) |
#define AS923_CALC_BACKOFF | ( | ) |
#define AS923_NEXT_CHANNEL | ( | ) |
#define AS923_CHANNEL_ADD | ( | ) |
#define AS923_CHANNEL_REMOVE | ( | ) |
#define AS923_SET_CONTINUOUS_WAVE | ( | ) |
#define AS923_APPLY_DR_OFFSET | ( | ) |
#define AU915_IS_ACTIVE | ( | ) |
#define AU915_GET_PHY_PARAM | ( | ) |
#define AU915_SET_BAND_TX_DONE | ( | ) |
#define AU915_INIT_DEFAULTS | ( | ) |
#define AU915_VERIFY | ( | ) |
#define AU915_APPLY_CF_LIST | ( | ) |
#define AU915_CHAN_MASK_SET | ( | ) |
#define AU915_ADR_NEXT | ( | ) |
#define AU915_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define AU915_RX_CONFIG | ( | ) |
#define AU915_TX_CONFIG | ( | ) |
#define AU915_LINK_ADR_REQ | ( | ) |
#define AU915_RX_PARAM_SETUP_REQ | ( | ) |
#define AU915_NEW_CHANNEL_REQ | ( | ) |
#define AU915_TX_PARAM_SETUP_REQ | ( | ) |
#define AU915_DL_CHANNEL_REQ | ( | ) |
#define AU915_ALTERNATE_DR | ( | ) |
#define AU915_CALC_BACKOFF | ( | ) |
#define AU915_NEXT_CHANNEL | ( | ) |
#define AU915_CHANNEL_ADD | ( | ) |
#define AU915_CHANNEL_REMOVE | ( | ) |
#define AU915_SET_CONTINUOUS_WAVE | ( | ) |
#define AU915_APPLY_DR_OFFSET | ( | ) |
#define CN470_IS_ACTIVE | ( | ) |
#define CN470_GET_PHY_PARAM | ( | ) |
#define CN470_SET_BAND_TX_DONE | ( | ) |
#define CN470_INIT_DEFAULTS | ( | ) |
#define CN470_VERIFY | ( | ) |
#define CN470_APPLY_CF_LIST | ( | ) |
#define CN470_CHAN_MASK_SET | ( | ) |
#define CN470_ADR_NEXT | ( | ) |
#define CN470_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define CN470_RX_CONFIG | ( | ) |
#define CN470_TX_CONFIG | ( | ) |
#define CN470_LINK_ADR_REQ | ( | ) |
#define CN470_RX_PARAM_SETUP_REQ | ( | ) |
#define CN470_NEW_CHANNEL_REQ | ( | ) |
#define CN470_TX_PARAM_SETUP_REQ | ( | ) |
#define CN470_DL_CHANNEL_REQ | ( | ) |
#define CN470_ALTERNATE_DR | ( | ) |
#define CN470_CALC_BACKOFF | ( | ) |
#define CN470_NEXT_CHANNEL | ( | ) |
#define CN470_CHANNEL_ADD | ( | ) |
#define CN470_CHANNEL_REMOVE | ( | ) |
#define CN470_SET_CONTINUOUS_WAVE | ( | ) |
#define CN470_APPLY_DR_OFFSET | ( | ) |
#define CN779_IS_ACTIVE | ( | ) |
#define CN779_GET_PHY_PARAM | ( | ) |
#define CN779_SET_BAND_TX_DONE | ( | ) |
#define CN779_INIT_DEFAULTS | ( | ) |
#define CN779_VERIFY | ( | ) |
#define CN779_APPLY_CF_LIST | ( | ) |
#define CN779_CHAN_MASK_SET | ( | ) |
#define CN779_ADR_NEXT | ( | ) |
#define CN779_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define CN779_RX_CONFIG | ( | ) |
#define CN779_TX_CONFIG | ( | ) |
#define CN779_LINK_ADR_REQ | ( | ) |
#define CN779_RX_PARAM_SETUP_REQ | ( | ) |
#define CN779_NEW_CHANNEL_REQ | ( | ) |
#define CN779_TX_PARAM_SETUP_REQ | ( | ) |
#define CN779_DL_CHANNEL_REQ | ( | ) |
#define CN779_ALTERNATE_DR | ( | ) |
#define CN779_CALC_BACKOFF | ( | ) |
#define CN779_NEXT_CHANNEL | ( | ) |
#define CN779_CHANNEL_ADD | ( | ) |
#define CN779_CHANNEL_REMOVE | ( | ) |
#define CN779_SET_CONTINUOUS_WAVE | ( | ) |
#define CN779_APPLY_DR_OFFSET | ( | ) |
#define EU433_IS_ACTIVE | ( | ) |
#define EU433_GET_PHY_PARAM | ( | ) |
#define EU433_SET_BAND_TX_DONE | ( | ) |
#define EU433_INIT_DEFAULTS | ( | ) |
#define EU433_VERIFY | ( | ) |
#define EU433_APPLY_CF_LIST | ( | ) |
#define EU433_CHAN_MASK_SET | ( | ) |
#define EU433_ADR_NEXT | ( | ) |
#define EU433_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define EU433_RX_CONFIG | ( | ) |
#define EU433_TX_CONFIG | ( | ) |
#define EU433_LINK_ADR_REQ | ( | ) |
#define EU433_RX_PARAM_SETUP_REQ | ( | ) |
#define EU433_NEW_CHANNEL_REQ | ( | ) |
#define EU433_TX_PARAM_SETUP_REQ | ( | ) |
#define EU433_DL_CHANNEL_REQ | ( | ) |
#define EU433_ALTERNATE_DR | ( | ) |
#define EU433_CALC_BACKOFF | ( | ) |
#define EU433_NEXT_CHANNEL | ( | ) |
#define EU433_CHANNEL_ADD | ( | ) |
#define EU433_CHANNEL_REMOVE | ( | ) |
#define EU433_SET_CONTINUOUS_WAVE | ( | ) |
#define EU433_APPLY_DR_OFFSET | ( | ) |
#define EU868_IS_ACTIVE | ( | ) |
#define EU868_GET_PHY_PARAM | ( | ) |
#define EU868_SET_BAND_TX_DONE | ( | ) |
#define EU868_INIT_DEFAULTS | ( | ) |
#define EU868_VERIFY | ( | ) |
#define EU868_APPLY_CF_LIST | ( | ) |
#define EU868_CHAN_MASK_SET | ( | ) |
#define EU868_ADR_NEXT | ( | ) |
#define EU868_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define EU868_RX_CONFIG | ( | ) |
#define EU868_TX_CONFIG | ( | ) |
#define EU868_LINK_ADR_REQ | ( | ) |
#define EU868_RX_PARAM_SETUP_REQ | ( | ) |
#define EU868_NEW_CHANNEL_REQ | ( | ) |
#define EU868_TX_PARAM_SETUP_REQ | ( | ) |
#define EU868_DL_CHANNEL_REQ | ( | ) |
#define EU868_ALTERNATE_DR | ( | ) |
#define EU868_CALC_BACKOFF | ( | ) |
#define EU868_NEXT_CHANNEL | ( | ) |
#define EU868_CHANNEL_ADD | ( | ) |
#define EU868_CHANNEL_REMOVE | ( | ) |
#define EU868_SET_CONTINUOUS_WAVE | ( | ) |
#define EU868_APPLY_DR_OFFSET | ( | ) |
#define KR920_IS_ACTIVE | ( | ) |
#define KR920_GET_PHY_PARAM | ( | ) |
#define KR920_SET_BAND_TX_DONE | ( | ) |
#define KR920_INIT_DEFAULTS | ( | ) |
#define KR920_VERIFY | ( | ) |
#define KR920_APPLY_CF_LIST | ( | ) |
#define KR920_CHAN_MASK_SET | ( | ) |
#define KR920_ADR_NEXT | ( | ) |
#define KR920_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define KR920_RX_CONFIG | ( | ) |
#define KR920_TX_CONFIG | ( | ) |
#define KR920_LINK_ADR_REQ | ( | ) |
#define KR920_RX_PARAM_SETUP_REQ | ( | ) |
#define KR920_NEW_CHANNEL_REQ | ( | ) |
#define KR920_TX_PARAM_SETUP_REQ | ( | ) |
#define KR920_DL_CHANNEL_REQ | ( | ) |
#define KR920_ALTERNATE_DR | ( | ) |
#define KR920_CALC_BACKOFF | ( | ) |
#define KR920_NEXT_CHANNEL | ( | ) |
#define KR920_CHANNEL_ADD | ( | ) |
#define KR920_CHANNEL_REMOVE | ( | ) |
#define KR920_SET_CONTINUOUS_WAVE | ( | ) |
#define KR920_APPLY_DR_OFFSET | ( | ) |
#define IN865_IS_ACTIVE | ( | ) |
#define IN865_GET_PHY_PARAM | ( | ) |
#define IN865_SET_BAND_TX_DONE | ( | ) |
#define IN865_INIT_DEFAULTS | ( | ) |
#define IN865_VERIFY | ( | ) |
#define IN865_APPLY_CF_LIST | ( | ) |
#define IN865_CHAN_MASK_SET | ( | ) |
#define IN865_ADR_NEXT | ( | ) |
#define IN865_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define IN865_RX_CONFIG | ( | ) |
#define IN865_TX_CONFIG | ( | ) |
#define IN865_LINK_ADR_REQ | ( | ) |
#define IN865_RX_PARAM_SETUP_REQ | ( | ) |
#define IN865_NEW_CHANNEL_REQ | ( | ) |
#define IN865_TX_PARAM_SETUP_REQ | ( | ) |
#define IN865_DL_CHANNEL_REQ | ( | ) |
#define IN865_ALTERNATE_DR | ( | ) |
#define IN865_CALC_BACKOFF | ( | ) |
#define IN865_NEXT_CHANNEL | ( | ) |
#define IN865_CHANNEL_ADD | ( | ) |
#define IN865_CHANNEL_REMOVE | ( | ) |
#define IN865_SET_CONTINUOUS_WAVE | ( | ) |
#define IN865_APPLY_DR_OFFSET | ( | ) |
#define US915_IS_ACTIVE | ( | ) |
#define US915_GET_PHY_PARAM | ( | ) |
#define US915_SET_BAND_TX_DONE | ( | ) |
#define US915_INIT_DEFAULTS | ( | ) |
#define US915_VERIFY | ( | ) |
#define US915_APPLY_CF_LIST | ( | ) |
#define US915_CHAN_MASK_SET | ( | ) |
#define US915_ADR_NEXT | ( | ) |
#define US915_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define US915_RX_CONFIG | ( | ) |
#define US915_TX_CONFIG | ( | ) |
#define US915_LINK_ADR_REQ | ( | ) |
#define US915_RX_PARAM_SETUP_REQ | ( | ) |
#define US915_NEW_CHANNEL_REQ | ( | ) |
#define US915_TX_PARAM_SETUP_REQ | ( | ) |
#define US915_DL_CHANNEL_REQ | ( | ) |
#define US915_ALTERNATE_DR | ( | ) |
#define US915_CALC_BACKOFF | ( | ) |
#define US915_NEXT_CHANNEL | ( | ) |
#define US915_CHANNEL_ADD | ( | ) |
#define US915_CHANNEL_REMOVE | ( | ) |
#define US915_SET_CONTINUOUS_WAVE | ( | ) |
#define US915_APPLY_DR_OFFSET | ( | ) |
#define US915_HYBRID_IS_ACTIVE | ( | ) |
#define US915_HYBRID_GET_PHY_PARAM | ( | ) |
#define US915_HYBRID_SET_BAND_TX_DONE | ( | ) |
#define US915_HYBRID_INIT_DEFAULTS | ( | ) |
#define US915_HYBRID_VERIFY | ( | ) |
#define US915_HYBRID_APPLY_CF_LIST | ( | ) |
#define US915_HYBRID_CHAN_MASK_SET | ( | ) |
#define US915_HYBRID_ADR_NEXT | ( | ) |
#define US915_HYBRID_COMPUTE_RX_WINDOW_PARAMETERS | ( | ) |
#define US915_HYBRID_RX_CONFIG | ( | ) |
#define US915_HYBRID_TX_CONFIG | ( | ) |
#define US915_HYBRID_LINK_ADR_REQ | ( | ) |
#define US915_HYBRID_RX_PARAM_SETUP_REQ | ( | ) |
#define US915_HYBRID_NEW_CHANNEL_REQ | ( | ) |
#define US915_HYBRID_TX_PARAM_SETUP_REQ | ( | ) |
#define US915_HYBRID_DL_CHANNEL_REQ | ( | ) |
#define US915_HYBRID_ALTERNATE_DR | ( | ) |
#define US915_HYBRID_CALC_BACKOFF | ( | ) |
#define US915_HYBRID_NEXT_CHANNEL | ( | ) |
#define US915_HYBRID_CHANNEL_ADD | ( | ) |
#define US915_HYBRID_CHANNEL_REMOVE | ( | ) |
#define US915_HYBRID_SET_CONTINUOUS_WAVE | ( | ) |
#define US915_HYBRID_APPLY_DR_OFFSET | ( | ) |