LoRaWAN Multiband file.
Copyright (c) 2019-2020 Microchip Technology Inc. and its subsidiaries.
#include "lorawan.h"
#include "conf_regparams.h"
#include <math.h>
#include "radio_interface.h"
#include "sw_timer.h"
#include "conf_stack.h"
#include "lorawan_reg_params.h"
#include "lorawan_multiband.h"
Variables | |
static pLoraRegGetAttr_t | pGetAttr [REG_NUM_ATTRIBUTES] |
static pLoraRegSetAttr_t | pSetAttr [REG_NUM_ATTRIBUTES] |
static pLoraRegValidateAttr_t | pValidateAttr [REG_NUM_ATTRIBUTES] |
RegParams_t | RegParams |
uint8_t | regTimerId [REG_PARAMS_TIMERS_COUNT] |
StackRetStatus_t CreateAllRegSoftwareTimers | ( | void | ) |
References i, LORAWAN_SUCCESS, REG_PARAMS_TIMERS_COUNT, regTimerId, and SwTimerCreate().
Referenced by LORAREG_Init().
|
static |
References _RegParamsType2::aggregatedDutyCycleTimeout, _RegParams::cmnParams, i, _DutyCycleTimer::lastTimerValue, _RegParams::maxSubBands, MS_TO_US, NULL, _CmnParams::paramsType2, _RegParams::pDutyCycleTimer, _RegParams::pSubBandParams, _SubBandParams::subBandTimeout, SW_TIMEOUT_RELATIVE, SwTimerStart(), and _DutyCycleTimer::timerId.
Referenced by setDutyCycleTimer().
void Enableallchannels | ( | void | ) |
References _RegPdsItems::ch_param_1_item_id, _RegParams::cmnParams, ENABLED, i, _RegPdsItems::lastUsedSB, _RegParamsType1::lastUsedSB, MAX_SUBBANDS, NO_OF_CH_IN_SUBBAND, _CmnParams::paramsType1, _RegParams::pChParams, PDS_STORE, _RegParams::regParamItems, and _channelParams::status.
Referenced by LORAREG_EnableallChannels().
|
static |
References DISABLED, ENABLED, i, SHIFT1, and UpdateChannelIdStatus().
Referenced by setNewChannelsT1().
|
static |
References _RegParams::cmnParams, FREQ_200KHZ, _CmnParams::paramsType1, and _RegParamsType1::UpStreamCh0Freq.
Referenced by GetTxChannelConfig1(), LORAREG_GetAttr_FreqT1(), and ValidateTxFreqT1().
|
static |
References _RegParams::cmnParams, FREQ_1600KHZ, _RegParamsType1::Max_125khzChan, _CmnParams::paramsType1, and _RegParamsType1::UpStreamCh64Freq.
Referenced by GetTxChannelConfig1(), LORAREG_GetAttr_FreqT1(), and ValidateTxFreqT1().
|
static |
References _RegParams::cmnParams, _RegParamsType1::DownStreamCh0Freq, FREQ_600KHZ, and _CmnParams::paramsType1.
Referenced by getRx1WindowparamsType1().
|
static |
References _RegParams::band, _RegParams::cmnParams, _channelParams::dataRange, DR0, DR6, DR7, i, ISM_AU915, _DataRange::max, _RegParamsType1::maxTxDR, _DataRange::min, _CmnParams::paramsType1, _RegParams::pChParams, SHIFT1, and SHIFT4.
Referenced by LORAREG_GetAttr_DRangeChBandT1().
|
static |
References _channelParams::dataRange, DR0, DR7, i, _DataRange::max, _RegParams::maxChannels, _DataRange::min, _RegParams::pChParams, and SHIFT1.
Referenced by LORAREG_GetAttr_DRangeChBandT2().
|
static |
References _RegParams::cmnParams, Rx1WindowParamsReq_t::currDr, Rx1WindowParamsReq_t::drOffset, GenerateFrequencyReception(), Rx1WindowParamsReq_t::joining, _RegParams::lastUsedChannelIndex, MAX_CHANNELS_BANDWIDTH_125_AU_NA, _RegParamsType1::maxRxDR, _RegParamsType1::maxTxDR, _RegParamsType1::minRxDR, _RegParamsType1::minTxDR, _CmnParams::paramsType1, Rx1WindowParams_t::rx1Dr, Rx1WindowParams_t::rx1Freq, and _RegParamsType1::RxParamWindowOffset1.
Referenced by LORAREG_GetAttr_Rx1WindowparamsType1().
|
static |
|
static |
|
static |
References _RegParams::band, _RegParams::cmnParams, Rx1WindowParamsReq_t::currDr, _TxParams::downlinkDwellTime, DR0, DR2, DR5, Rx1WindowParamsReq_t::drOffset, ISM_ASBAND, ISM_JPN923, Rx1WindowParamsReq_t::joining, _RegParams::lastUsedChannelIndex, _CmnParams::paramsType2, _RegParams::pOtherChParams, Rx1WindowParams_t::rx1Dr, Rx1WindowParams_t::rx1Freq, _OthChannelParams::rx1Frequency, and _RegParamsType2::txParams.
Referenced by LORAREG_GetAttr_Rx1WindowparamsType4().
|
static |
References _SubBandParams::freqMax, _SubBandParams::freqMin, i, _RegParams::maxSubBands, and _RegParams::pSubBandParams.
Referenced by setFrequency(), and ValidateFreq().
|
static |
This function is used to select a free channel for transmission and get the corresponding radio configuration for transmission.
[in] | transmissionType | Type of transmission - True : Data Frame ,False : Join Request |
[in] | txPwr | Transmit Power which needs to be converted to the corresponding power in dBm according to the regional specification |
[in] | currDr | : CUrrent Data rate maintained in the MAC which is used to derive the radio configuration |
[out] | radioConfig | : Radio Configuration to be set to the Radio registers |
LORAWAN_SUCCESS | : If Channel is found successfully is successful LORAWAN_NO_CHANNELS_FOUND if No free channel is available |
References _RegParams::band, _radioConfig::bandwidth, BW_125KHZ, BW_500KHZ, _RegParams::cmnParams, CR_4_5, DISABLED, DR0, _ecrConfig::ecr, _radioConfig::ecrConfig, _radioConfig::freq_hop_period, _radioConfig::frequency, GenerateFrequency1(), GenerateFrequency2(), ISM_NA915, _RegParams::lastUsedChannelIndex, _RegPdsItems::lastUsedSB, LORAWAN_SUCCESS, _RegParamsType1::Max_125khzChan, MAX_CHANNELS_BANDWIDTH_125_AU_NA, _RegParams::maxChannels, _RegParams::maxTxPwr, _radioConfig::modulation, MODULATION_LORA, _ecrConfig::override, _CmnParams::paramsType1, _RegParams::pDrParams, PDS_STORE, _RegParams::regParamItems, result, SearchAvailableChannel1(), _radioConfig::sf, SF_10, SF_12, SF_8, _DRParams::spreadingFactor, and _radioConfig::txPower.
Referenced by LORAREG_GetAttr_NewTxChConfigT1().
|
static |
This function is used to select a free channel for transmission and get the corresponding radio configuration for transmission.
[in] | transmissionType | Type of transmission - True : Data Frame ,False : Join Request |
[in] | txPwr | Transmit Power which needs to be converted to the corresponding power in dBm according to the regional specification |
[in] | currDr | : CUrrent Data rate maintained in the MAC which is used to derive the radio configuration |
[out] | radioConfig | : Radio Configuration to be set to the Radio registers |
LORAWAN_SUCCESS | : If Channel is found successfully is successful LORAWAN_NO_CHANNELS_FOUND if No free channel is available |
References _RegParams::band, _radioConfig::bandwidth, _DRParams::bandwidth, DISABLED, DR2, _radioConfig::ecrConfig, _radioConfig::freq_hop_period, _radioConfig::frequency, ISM_ASBAND, ISM_JPN923, _RegParams::lastUsedChannelIndex, LORAWAN_SUCCESS, _RegParams::maxChannels, _RegParams::maxTxPwr, _radioConfig::modulation, _DRParams::modulation, _ecrConfig::override, _RegParams::pDrParams, _RegParams::pOtherChParams, result, SearchAvailableChannel2(), _radioConfig::sf, _DRParams::spreadingFactor, _radioConfig::txPower, and _OthChannelParams::ulfrequency.
Referenced by LORAREG_GetAttr_NewTxChConfigT2().
StackRetStatus_t InValidAttr | ( | LorawanRegionalAttributes_t | attr, |
void * | attrInput | ||
) |
References LORAWAN_INVALID_REQUEST.
Referenced by LORAREG_Init().
StackRetStatus_t InValidGetAttr | ( | LorawanRegionalAttributes_t | attr, |
void * | attrInput, | ||
void * | attrOutput | ||
) |
References LORAWAN_INVALID_REQUEST.
Referenced by LORAREG_Init().
void JoinBackoffCallback | ( | uint8_t | param | ) |
References BACKOFF_BASE_TIME_IN_MS, JoinBackoffCallback(), _RegParams::joinbccount, MS_TO_US, NULL, _RegParams::pJoinBackoffTimer, SW_TIMEOUT_RELATIVE, SwTimerStart(), and _JoinBackoffTimer::timerId.
Referenced by JoinBackoffCallback(), and setJoinBackOffTimer().
void JoinDutyCycleCallback | ( | uint8_t | param | ) |
|
static |
References _RegParamsType2::channelTimer, _RegParams::cmnParams, ENABLED, i, _LBTTimer::lastTimerValue, _RegParamsType2::LBTTimer, _RegParams::maxChannels, MS_TO_US, NULL, _CmnParams::paramsType2, _RegParams::pChParams, _channelParams::status, SW_TIMEOUT_RELATIVE, SwTimerStart(), and _LBTTimer::timerId.
Referenced by setLBTTimer().
StackRetStatus_t LORAREG_EnableallChannels | ( | IsmBand_t | ismBand | ) |
StackRetStatus_t LORAREG_GetAttr | ( | LorawanRegionalAttributes_t | attrType, |
void * | attrInput, | ||
void * | attrOutput | ||
) |
This API provides read access to all the supported Regional Attributes.
The LoRaWAN mac needs to access the regional database via this API.
[in] | attrType | Type of Attribute to get from the regional module |
[in] | attrInput | Input used to get the attribute value |
[out] | Result | of the GET operation |
LORAWAN_SUCCESS | : If GET is successful LORAWAN_INVALID_PARAMETER if the input attribute or the attribute type is invalid |
References LORAWAN_INVALID_PARAMETER, pGetAttr, REG_NUM_ATTRIBUTES, and result.
|
static |
References _DRParams::bandwidth, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pDrParams, result, RX_DATARATE, TX_DATARATE, ValidateDataRateRxT1(), and ValidateDataRateTxT1().
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References _DRParams::bandwidth, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pDrParams, result, RX_DATARATE, and ValidateDataRate().
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
References ALL_CHANNELS, ValChId_t::allowedForDefaultChannels, CHANNEL_ID, ValChId_t::channelIndex, DISABLED, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pChParams, pValidateAttr, result, and _channelParams::status.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsAU(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), LORAREG_InitGetAttrFnPtrsKR(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References _RegParams::lastUsedChannelIndex, and LORAWAN_SUCCESS.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsAU(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), LORAREG_InitGetAttrFnPtrsKR(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References ALL_CHANNELS, ValChId_t::allowedForDefaultChannels, CHANNEL_ID, ValChId_t::channelIndex, _channelParams::dataRange, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pChParams, pValidateAttr, result, and _DataRange::value.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsAU(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), LORAREG_InitGetAttrFnPtrsKR(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References _RegParams::cmnParams, LBT_ENABLE, _RegParamsType2::LBT_RSSISamplesCount, _LorawanLBTParams::lbtNumOfSamples, _LorawanLBTParams::lbtScanPeriod, _RegParamsType2::LBTScanPeriod, _RegParamsType2::LBTSignalThreshold, _LorawanLBTParams::lbtThreshold, _LorawanLBTParams::lbtTransmitOn, _LorawanLBTParams::maxRetryChannels, and _CmnParams::paramsType2.
Referenced by LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
|
static |
|
static |
|
static |
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::maxChannels, _RegParams::pOtherChParams, result, and _OthChannelParams::rx1Frequency.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
References CHANNEL_MASK_CNTL, BandDrReq_t::chnlMask, BandDrReq_t::chnlMaskCntl, getChBandDrT1(), LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, result, and ValidateChannelMaskCntl().
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
|
static |
References LORAWAN_INVALID_PARAMETER.
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References ALL_CHANNELS, ValChId_t::allowedForDefaultChannels, CHANNEL_ID, ValChId_t::channelIndex, _RegParams::cmnParams, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParamsType2::othChParams, _CmnParams::paramsType2, result, _RegParamsType2::subBandDutyCycle, _OthChannelParams::subBandId, and ValidateChannelIdT2().
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), and LORAREG_InitGetAttrFnPtrsJP().
|
static |
References _RegParamsType2::aggregatedDutyCycleTimeout, _RegParams::cmnParams, _channelParams::dataRange, ENABLED, i, _DutyCycleTimer::lastTimerValue, LORAWAN_SUCCESS, _DataRange::max, _RegParams::maxChannels, _DataRange::min, _RegParamsType2::othChParams, _CmnParams::paramsType2, _RegParams::pChParams, _RegParams::pDutyCycleTimer, _RegParams::pSubBandParams, result, _channelParams::status, _OthChannelParams::subBandId, _SubBandParams::subBandTimeout, SwTimerReadValue(), _DutyCycleTimer::timerId, and US_TO_MS.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), and LORAREG_InitGetAttrFnPtrsJP().
|
static |
References NewFreeChannelReq_t::currDr, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, NewFreeChannelReq_t::maxChannels, _RegParams::maxChannels, result, SearchAvailableChannel1(), and NewFreeChannelReq_t::transmissionType.
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References NewFreeChannelReq_t::currDr, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, NewFreeChannelReq_t::maxChannels, _RegParams::maxChannels, result, SearchAvailableChannel2(), and NewFreeChannelReq_t::transmissionType.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
|
static |
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::maxChannels, _RegParams::pOtherChParams, result, and _OthChannelParams::ulfrequency.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), and LORAREG_InitGetAttrFnPtrsJP().
|
static |
References LORAWAN_SUCCESS, _RegParams::pJoinDutyCycleTimer, _JoinDutyCycleTimer::remainingtime, result, SwTimerIsRunning(), SwTimerReadValue(), _JoinDutyCycleTimer::timerId, and US_TO_MS.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsAU(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), LORAREG_InitGetAttrFnPtrsKR(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
References _RegParams::cmnParams, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _DRParams::maxPayloadSizeDt0, _DRParams::maxPayloadSizeDt1, _CmnParams::paramsType2, _RegParams::pDrParams, result, RX_DATARATE, _RegParamsType2::txParams, _TxParams::uplinkDwellTime, and ValidateDataRate().
Referenced by LORAREG_InitGetAttrFnPtrsAS(), and LORAREG_InitGetAttrFnPtrsJP().
|
static |
References LORAWAN_INVALID_PARAMETER.
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References _RegParamsType2::channelTimer, _RegParams::cmnParams, _channelParams::dataRange, ENABLED, i, LORAWAN_SUCCESS, _DataRange::max, _RegParams::maxChannels, _DataRange::min, _CmnParams::paramsType2, _RegParams::pChParams, and _channelParams::status.
Referenced by LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
References LORAWAN_SUCCESS, result, and UpdateMinMaxChDataRate().
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsAU(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), LORAREG_InitGetAttrFnPtrsKR(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::MinNewChIndex, and result.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsAU(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), LORAREG_InitGetAttrFnPtrsKR(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _DRParams::modulation, _RegParams::pDrParams, result, RX_DATARATE, TX_DATARATE, ValidateDataRateRxT1(), and ValidateDataRateTxT1().
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _DRParams::modulation, _RegParams::pDrParams, result, RX_DATARATE, and ValidateDataRate().
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
References NewTxChannelReq_t::currDr, GetTxChannelConfig1(), LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, result, NewTxChannelReq_t::transmissionType, TX_DATARATE, TX_PWR, NewTxChannelReq_t::txPwr, ValidateDataRateTxT1(), and ValidateTxPower().
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References NewTxChannelReq_t::currDr, GetTxChannelConfig2(), LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, result, RX_DATARATE, NewTxChannelReq_t::transmissionType, TX_PWR, NewTxChannelReq_t::txPwr, ValidateDataRate(), and ValidateTxPower().
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
|
static |
|
static |
|
static |
References getRx1WindowparamsType1(), LORAWAN_SUCCESS, and result.
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References getRx1WindowparamsType2(), LORAWAN_SUCCESS, and result.
Referenced by LORAREG_InitGetAttrFnPtrsEU(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
References getRx1WindowparamsType3(), LORAWAN_SUCCESS, and result.
Referenced by LORAREG_InitGetAttrFnPtrsIN().
|
static |
References getRx1WindowparamsType4(), LORAWAN_SUCCESS, and result.
Referenced by LORAREG_InitGetAttrFnPtrsAS(), and LORAREG_InitGetAttrFnPtrsJP().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pDrParams, result, RX_DATARATE, _DRParams::rxWindowOffset, TX_DATARATE, ValidateDataRateRxT1(), and ValidateDataRateTxT1().
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pDrParams, result, RX_DATARATE, _DRParams::rxWindowOffset, and ValidateDataRate().
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pDrParams, result, RX_DATARATE, _DRParams::rxWindowSize, TX_DATARATE, ValidateDataRateRxT1(), and ValidateDataRateTxT1().
Referenced by LORAREG_InitGetAttrFnPtrsAU(), and LORAREG_InitGetAttrFnPtrsNA().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pDrParams, result, RX_DATARATE, _DRParams::rxWindowSize, and ValidateDataRate().
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
|
static |
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pDrParams, result, RX_DATARATE, _DRParams::spreadingFactor, and ValidateDataRate().
Referenced by LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitGetAttrFnPtrsJP(), and LORAREG_InitGetAttrFnPtrsKR().
StackRetStatus_t LORAREG_Init | ( | IsmBand_t | ismBand | ) |
This function initializes the LoRaWAN Regional Parameters Module All the resources handled by the regional module eg Channels will be initialized.
ismBand | The Regional band which is initialized,This is used to validate if the band is supported by the module and also initializes the module corresponding to the band |
LORAWAN_SUCCESS | : If initialization is successful LORAWAN_INVALID_PARAMETER if Initialization is failed |
References CreateAllRegSoftwareTimers(), i, InValidAttr(), InValidGetAttr(), ISM_AU915, ISM_BRN923, ISM_EU433, ISM_EU868, ISM_IND865, ISM_JPN923, ISM_KR920, ISM_NA915, ISM_VTM923, LORAReg_InitAS(), LORAReg_InitAU(), LORAReg_InitEU(), LORAReg_InitIN(), LORAReg_InitJP(), LORAReg_InitKR(), LORAReg_InitNA(), LORAWAN_RESOURCE_UNAVAILABLE, LORAWAN_SUCCESS, pGetAttr, pSetAttr, pValidateAttr, REG_NUM_ATTRIBUTES, result, and StopAllRegSoftwareTimers().
void LORAREG_InitGetAttrFnPtrsAS | ( | void | ) |
References BANDWIDTH_ATTR, CHANNEL_ID_STATUS, CURRENT_CHANNEL_INDEX, DATA_RANGE, DATA_RANGE_CH_BAND, DEF_TX_PWR, DEFAULT_RX1_DATA_RATE, DEFAULT_RX2_DATA_RATE, DEFAULT_RX2_FREQUENCY, DL_FREQUENCY, DUTY_CYCLE, FREE_CHANNEL, FREQUENCY, JOIN_DUTY_CYCLE_TIMER, LORAREG_GetAttr_BandwidthAttrT2(), LORAREG_GetAttr_ChIdStatus(), LORAREG_GetAttr_CurChIndx(), LORAREG_GetAttr_DataRange(), LORAREG_GetAttr_DefRx1DataRate(), LORAREG_GetAttr_DefRx2DataRate(), LORAREG_GetAttr_DefRx2Freq(), LORAREG_GetAttr_DefTxPwr(), LORAREG_GetAttr_DlFrequency(), LORAREG_GetAttr_DRangeChBandT2(), LORAREG_GetAttr_DutyCycleT2(), LORAREG_GetAttr_DutyCycleTimer(), LORAREG_GetAttr_FreeChannel2(), LORAREG_GetAttr_FreqT3(), LORAREG_GetAttr_JoinDutyCycleRemainingTime(), LORAREG_GetAttr_MacAdrAckDelay(), LORAREG_GetAttr_MacAdrAckLimit(), LORAREG_GetAttr_MacJoinAcptDelay1(), LORAREG_GetAttr_MacJoinAcptDelay2(), LORAREG_GetAttr_MacRecvDelay1(), LORAREG_GetAttr_MacRecvDelay2(), LORAREG_GetAttr_MacRetransmitTimeout(), LORAREG_GetAttr_MaxChannel(), LORAREG_GetAttr_MaxPayloadT3(), LORAREG_GetAttr_MinMaxDr(), LORAREG_GetAttr_MinNewChIndex(), LORAREG_GetAttr_ModulationAttrT2(), LORAREG_GetAttr_NewTxChConfigT2(), LORAREG_GetAttr_RegDefTxDR(), LORAREG_GetAttr_RegDefTxPwr(), LORAREG_GetAttr_RegFeatures(), LORAREG_GetAttr_Rx1WindowparamsType4(), LORAREG_GetAttr_RxWindowOffsetT2(), LORAREG_GetAttr_RxWindowSizeT2(), LORAREG_GetAttr_SpreadFactorT2(), MAC_ADR_ACK_DELAY, MAC_ADR_ACK_LIMIT, MAC_JOIN_ACCEPT_DELAY1, MAC_JOIN_ACCEPT_DELAY2, MAC_RECEIVE_DELAY1, MAC_RECEIVE_DELAY2, MAC_RETRANSMIT_TIMEOUT, MAX_CHANNELS, MAX_PAYLOAD_SIZE, MIN_DUTY_CYCLE_TIMER, MIN_MAX_DR, MIN_NEW_CH_INDEX, MODULATION_ATTR, NEW_TX_CHANNEL_CONFIG, pGetAttr, REG_DEF_TX_DATARATE, REG_DEF_TX_POWER, RX1_WINDOW_PARAMS, RX_WINDOW_OFFSET, RX_WINDOW_SIZE, SPREADING_FACTOR_ATTR, and SUPPORTED_REGIONAL_FEATURES.
Referenced by LORAReg_InitAS().
void LORAREG_InitGetAttrFnPtrsAU | ( | void | ) |
References BANDWIDTH_ATTR, CHANNEL_ID_STATUS, CURRENT_CHANNEL_INDEX, DATA_RANGE, DATA_RANGE_CH_BAND, DEF_TX_PWR, DEFAULT_RX1_DATA_RATE, DEFAULT_RX2_DATA_RATE, DEFAULT_RX2_FREQUENCY, DUTY_CYCLE, DUTY_CYCLE_TIMER, FREE_CHANNEL, FREQUENCY, JOIN_DUTY_CYCLE_TIMER, LORAREG_GetAttr_BandwidthAttrT1(), LORAREG_GetAttr_ChIdStatus(), LORAREG_GetAttr_CurChIndx(), LORAREG_GetAttr_DataRange(), LORAREG_GetAttr_DefRx1DataRate(), LORAREG_GetAttr_DefRx2DataRate(), LORAREG_GetAttr_DefRx2Freq(), LORAREG_GetAttr_DefTxPwr(), LORAREG_GetAttr_DRangeChBandT1(), LORAREG_GetAttr_DutyCycleT1(), LORAREG_GetAttr_FreeChannel1(), LORAREG_GetAttr_FreqT1(), LORAREG_GetAttr_JoinDutyCycleRemainingTime(), LORAREG_GetAttr_MacAdrAckDelay(), LORAREG_GetAttr_MacAdrAckLimit(), LORAREG_GetAttr_MacJoinAcptDelay1(), LORAREG_GetAttr_MacJoinAcptDelay2(), LORAREG_GetAttr_MacRecvDelay1(), LORAREG_GetAttr_MacRecvDelay2(), LORAREG_GetAttr_MacRetransmitTimeout(), LORAREG_GetAttr_MaxChannel(), LORAREG_GetAttr_MaxPayloadT1(), LORAREG_GetAttr_MinDutyCycleTimer(), LORAREG_GetAttr_MinMaxDr(), LORAREG_GetAttr_MinNewChIndex(), LORAREG_GetAttr_ModulationAttrT1(), LORAREG_GetAttr_NewTxChConfigT1(), LORAREG_GetAttr_RegDefTxDR(), LORAREG_GetAttr_RegDefTxPwr(), LORAREG_GetAttr_RegFeatures(), LORAREG_GetAttr_Rx1WindowparamsType1(), LORAREG_GetAttr_RxWindowOffsetT1(), LORAREG_GetAttr_RxWindowSizeT1(), LORAREG_GetAttr_SpreadFactorT1(), MAC_ADR_ACK_DELAY, MAC_ADR_ACK_LIMIT, MAC_JOIN_ACCEPT_DELAY1, MAC_JOIN_ACCEPT_DELAY2, MAC_RECEIVE_DELAY1, MAC_RECEIVE_DELAY2, MAC_RETRANSMIT_TIMEOUT, MAX_CHANNELS, MAX_PAYLOAD_SIZE, MIN_MAX_DR, MIN_NEW_CH_INDEX, MODULATION_ATTR, NEW_TX_CHANNEL_CONFIG, pGetAttr, REG_DEF_TX_DATARATE, REG_DEF_TX_POWER, RX1_WINDOW_PARAMS, RX_WINDOW_OFFSET, RX_WINDOW_SIZE, SPREADING_FACTOR_ATTR, and SUPPORTED_REGIONAL_FEATURES.
Referenced by LORAReg_InitAU().
void LORAREG_InitGetAttrFnPtrsEU | ( | void | ) |
References BANDWIDTH_ATTR, CHANNEL_ID_STATUS, CURRENT_CHANNEL_INDEX, DATA_RANGE, DATA_RANGE_CH_BAND, DEF_TX_PWR, DEFAULT_RX1_DATA_RATE, DEFAULT_RX2_DATA_RATE, DEFAULT_RX2_FREQUENCY, DL_FREQUENCY, DUTY_CYCLE, FREE_CHANNEL, FREQUENCY, JOIN_DUTY_CYCLE_TIMER, LORAREG_GetAttr_BandwidthAttrT2(), LORAREG_GetAttr_ChIdStatus(), LORAREG_GetAttr_CurChIndx(), LORAREG_GetAttr_DataRange(), LORAREG_GetAttr_DefRx1DataRate(), LORAREG_GetAttr_DefRx2DataRate(), LORAREG_GetAttr_DefRx2Freq(), LORAREG_GetAttr_DefTxPwr(), LORAREG_GetAttr_DlFrequency(), LORAREG_GetAttr_DRangeChBandT2(), LORAREG_GetAttr_DutyCycleT2(), LORAREG_GetAttr_DutyCycleTimer(), LORAREG_GetAttr_FreeChannel2(), LORAREG_GetAttr_FreqT2(), LORAREG_GetAttr_JoinDutyCycleRemainingTime(), LORAREG_GetAttr_MacAdrAckDelay(), LORAREG_GetAttr_MacAdrAckLimit(), LORAREG_GetAttr_MacJoinAcptDelay1(), LORAREG_GetAttr_MacJoinAcptDelay2(), LORAREG_GetAttr_MacRecvDelay1(), LORAREG_GetAttr_MacRecvDelay2(), LORAREG_GetAttr_MacRetransmitTimeout(), LORAREG_GetAttr_MaxChannel(), LORAREG_GetAttr_MaxPayloadT2(), LORAREG_GetAttr_MinMaxDr(), LORAREG_GetAttr_MinNewChIndex(), LORAREG_GetAttr_ModulationAttrT2(), LORAREG_GetAttr_NewTxChConfigT2(), LORAREG_GetAttr_RegDefTxDR(), LORAREG_GetAttr_RegDefTxPwr(), LORAREG_GetAttr_RegFeatures(), LORAREG_GetAttr_Rx1WindowparamsType2(), LORAREG_GetAttr_RxWindowOffsetT2(), LORAREG_GetAttr_RxWindowSizeT2(), LORAREG_GetAttr_SpreadFactorT2(), MAC_ADR_ACK_DELAY, MAC_ADR_ACK_LIMIT, MAC_JOIN_ACCEPT_DELAY1, MAC_JOIN_ACCEPT_DELAY2, MAC_RECEIVE_DELAY1, MAC_RECEIVE_DELAY2, MAC_RETRANSMIT_TIMEOUT, MAX_CHANNELS, MAX_PAYLOAD_SIZE, MIN_DUTY_CYCLE_TIMER, MIN_MAX_DR, MIN_NEW_CH_INDEX, MODULATION_ATTR, NEW_TX_CHANNEL_CONFIG, pGetAttr, REG_DEF_TX_DATARATE, REG_DEF_TX_POWER, RX1_WINDOW_PARAMS, RX_WINDOW_OFFSET, RX_WINDOW_SIZE, SPREADING_FACTOR_ATTR, and SUPPORTED_REGIONAL_FEATURES.
Referenced by LORAReg_InitEU().
void LORAREG_InitGetAttrFnPtrsIN | ( | void | ) |
References BANDWIDTH_ATTR, CHANNEL_ID_STATUS, CURRENT_CHANNEL_INDEX, DATA_RANGE, DATA_RANGE_CH_BAND, DEF_TX_PWR, DEFAULT_RX1_DATA_RATE, DEFAULT_RX2_DATA_RATE, DEFAULT_RX2_FREQUENCY, DL_FREQUENCY, FREE_CHANNEL, FREQUENCY, JOIN_DUTY_CYCLE_TIMER, LORAREG_GetAttr_BandwidthAttrT2(), LORAREG_GetAttr_ChIdStatus(), LORAREG_GetAttr_CurChIndx(), LORAREG_GetAttr_DataRange(), LORAREG_GetAttr_DefRx1DataRate(), LORAREG_GetAttr_DefRx2DataRate(), LORAREG_GetAttr_DefRx2Freq(), LORAREG_GetAttr_DefTxPwr(), LORAREG_GetAttr_DlFrequency(), LORAREG_GetAttr_DRangeChBandT2(), LORAREG_GetAttr_FreeChannel2(), LORAREG_GetAttr_FreqT2(), LORAREG_GetAttr_JoinDutyCycleRemainingTime(), LORAREG_GetAttr_MacAdrAckDelay(), LORAREG_GetAttr_MacAdrAckLimit(), LORAREG_GetAttr_MacJoinAcptDelay1(), LORAREG_GetAttr_MacJoinAcptDelay2(), LORAREG_GetAttr_MacRecvDelay1(), LORAREG_GetAttr_MacRecvDelay2(), LORAREG_GetAttr_MacRetransmitTimeout(), LORAREG_GetAttr_MaxChannel(), LORAREG_GetAttr_MaxPayloadT2(), LORAREG_GetAttr_MinMaxDr(), LORAREG_GetAttr_MinNewChIndex(), LORAREG_GetAttr_ModulationAttrT2(), LORAREG_GetAttr_NewTxChConfigT2(), LORAREG_GetAttr_RegDefTxDR(), LORAREG_GetAttr_RegDefTxPwr(), LORAREG_GetAttr_RegFeatures(), LORAREG_GetAttr_Rx1WindowparamsType3(), LORAREG_GetAttr_RxWindowOffsetT2(), LORAREG_GetAttr_RxWindowSizeT2(), LORAREG_GetAttr_SpreadFactorT2(), MAC_ADR_ACK_DELAY, MAC_ADR_ACK_LIMIT, MAC_JOIN_ACCEPT_DELAY1, MAC_JOIN_ACCEPT_DELAY2, MAC_RECEIVE_DELAY1, MAC_RECEIVE_DELAY2, MAC_RETRANSMIT_TIMEOUT, MAX_CHANNELS, MAX_PAYLOAD_SIZE, MIN_MAX_DR, MIN_NEW_CH_INDEX, MODULATION_ATTR, NEW_TX_CHANNEL_CONFIG, pGetAttr, REG_DEF_TX_DATARATE, REG_DEF_TX_POWER, RX1_WINDOW_PARAMS, RX_WINDOW_OFFSET, RX_WINDOW_SIZE, SPREADING_FACTOR_ATTR, and SUPPORTED_REGIONAL_FEATURES.
Referenced by LORAReg_InitIN().
void LORAREG_InitGetAttrFnPtrsJP | ( | void | ) |
References BANDWIDTH_ATTR, CHANNEL_ID_STATUS, CURRENT_CHANNEL_INDEX, DATA_RANGE, DATA_RANGE_CH_BAND, DEF_TX_PWR, DEFAULT_LBT_PARAMS, DEFAULT_RX1_DATA_RATE, DEFAULT_RX2_DATA_RATE, DEFAULT_RX2_FREQUENCY, DL_FREQUENCY, DUTY_CYCLE, FREE_CHANNEL, FREQUENCY, JOIN_DUTY_CYCLE_TIMER, LORAREG_GetAttr_BandwidthAttrT2(), LORAREG_GetAttr_ChIdStatus(), LORAREG_GetAttr_CurChIndx(), LORAREG_GetAttr_DataRange(), LORAREG_GetAttr_DefLBTParams(), LORAREG_GetAttr_DefRx1DataRate(), LORAREG_GetAttr_DefRx2DataRate(), LORAREG_GetAttr_DefRx2Freq(), LORAREG_GetAttr_DefTxPwr(), LORAREG_GetAttr_DlFrequency(), LORAREG_GetAttr_DRangeChBandT2(), LORAREG_GetAttr_DutyCycleT2(), LORAREG_GetAttr_DutyCycleTimer(), LORAREG_GetAttr_FreeChannel2(), LORAREG_GetAttr_FreqT3(), LORAREG_GetAttr_JoinDutyCycleRemainingTime(), LORAREG_GetAttr_MacAdrAckDelay(), LORAREG_GetAttr_MacAdrAckLimit(), LORAREG_GetAttr_MacJoinAcptDelay1(), LORAREG_GetAttr_MacJoinAcptDelay2(), LORAREG_GetAttr_MacRecvDelay1(), LORAREG_GetAttr_MacRecvDelay2(), LORAREG_GetAttr_MacRetransmitTimeout(), LORAREG_GetAttr_MaxChannel(), LORAREG_GetAttr_MaxPayloadT3(), LORAREG_GetAttr_minLBTChPauseTimer(), LORAREG_GetAttr_MinMaxDr(), LORAREG_GetAttr_MinNewChIndex(), LORAREG_GetAttr_ModulationAttrT2(), LORAREG_GetAttr_NewTxChConfigT2(), LORAREG_GetAttr_RegDefTxDR(), LORAREG_GetAttr_RegDefTxPwr(), LORAREG_GetAttr_RegFeatures(), LORAREG_GetAttr_Rx1WindowparamsType4(), LORAREG_GetAttr_RxWindowOffsetT2(), LORAREG_GetAttr_RxWindowSizeT2(), LORAREG_GetAttr_SpreadFactorT2(), MAC_ADR_ACK_DELAY, MAC_ADR_ACK_LIMIT, MAC_JOIN_ACCEPT_DELAY1, MAC_JOIN_ACCEPT_DELAY2, MAC_RECEIVE_DELAY1, MAC_RECEIVE_DELAY2, MAC_RETRANSMIT_TIMEOUT, MAX_CHANNELS, MAX_PAYLOAD_SIZE, MIN_DUTY_CYCLE_TIMER, MIN_LBT_CHANNEL_PAUSE_TIMER, MIN_MAX_DR, MIN_NEW_CH_INDEX, MODULATION_ATTR, NEW_TX_CHANNEL_CONFIG, pGetAttr, REG_DEF_TX_DATARATE, REG_DEF_TX_POWER, RX1_WINDOW_PARAMS, RX_WINDOW_OFFSET, RX_WINDOW_SIZE, SPREADING_FACTOR_ATTR, and SUPPORTED_REGIONAL_FEATURES.
Referenced by LORAReg_InitJP().
void LORAREG_InitGetAttrFnPtrsKR | ( | void | ) |
References BANDWIDTH_ATTR, CHANNEL_ID_STATUS, CURRENT_CHANNEL_INDEX, DATA_RANGE, DATA_RANGE_CH_BAND, DEF_TX_PWR, DEFAULT_LBT_PARAMS, DEFAULT_RX1_DATA_RATE, DEFAULT_RX2_DATA_RATE, DEFAULT_RX2_FREQUENCY, DL_FREQUENCY, FREE_CHANNEL, FREQUENCY, JOIN_DUTY_CYCLE_TIMER, LORAREG_GetAttr_BandwidthAttrT2(), LORAREG_GetAttr_ChIdStatus(), LORAREG_GetAttr_CurChIndx(), LORAREG_GetAttr_DataRange(), LORAREG_GetAttr_DefLBTParams(), LORAREG_GetAttr_DefRx1DataRate(), LORAREG_GetAttr_DefRx2DataRate(), LORAREG_GetAttr_DefRx2Freq(), LORAREG_GetAttr_DefTxPwr(), LORAREG_GetAttr_DlFrequency(), LORAREG_GetAttr_DRangeChBandT2(), LORAREG_GetAttr_FreeChannel2(), LORAREG_GetAttr_FreqT2(), LORAREG_GetAttr_JoinDutyCycleRemainingTime(), LORAREG_GetAttr_MacAdrAckDelay(), LORAREG_GetAttr_MacAdrAckLimit(), LORAREG_GetAttr_MacJoinAcptDelay1(), LORAREG_GetAttr_MacJoinAcptDelay2(), LORAREG_GetAttr_MacRecvDelay1(), LORAREG_GetAttr_MacRecvDelay2(), LORAREG_GetAttr_MacRetransmitTimeout(), LORAREG_GetAttr_MaxChannel(), LORAREG_GetAttr_MaxPayloadT2(), LORAREG_GetAttr_minLBTChPauseTimer(), LORAREG_GetAttr_MinMaxDr(), LORAREG_GetAttr_MinNewChIndex(), LORAREG_GetAttr_ModulationAttrT2(), LORAREG_GetAttr_NewTxChConfigT2(), LORAREG_GetAttr_RegDefTxDR(), LORAREG_GetAttr_RegDefTxPwr(), LORAREG_GetAttr_RegFeatures(), LORAREG_GetAttr_Rx1WindowparamsType2(), LORAREG_GetAttr_RxWindowOffsetT2(), LORAREG_GetAttr_RxWindowSizeT2(), LORAREG_GetAttr_SpreadFactorT2(), MAC_ADR_ACK_DELAY, MAC_ADR_ACK_LIMIT, MAC_JOIN_ACCEPT_DELAY1, MAC_JOIN_ACCEPT_DELAY2, MAC_RECEIVE_DELAY1, MAC_RECEIVE_DELAY2, MAC_RETRANSMIT_TIMEOUT, MAX_CHANNELS, MAX_PAYLOAD_SIZE, MIN_LBT_CHANNEL_PAUSE_TIMER, MIN_MAX_DR, MIN_NEW_CH_INDEX, MODULATION_ATTR, NEW_TX_CHANNEL_CONFIG, pGetAttr, REG_DEF_TX_DATARATE, REG_DEF_TX_POWER, RX1_WINDOW_PARAMS, RX_WINDOW_OFFSET, RX_WINDOW_SIZE, SPREADING_FACTOR_ATTR, and SUPPORTED_REGIONAL_FEATURES.
Referenced by LORAReg_InitKR().
void LORAREG_InitGetAttrFnPtrsNA | ( | void | ) |
References BANDWIDTH_ATTR, CHANNEL_ID_STATUS, CURRENT_CHANNEL_INDEX, DATA_RANGE, DATA_RANGE_CH_BAND, DEF_TX_PWR, DEFAULT_RX1_DATA_RATE, DEFAULT_RX2_DATA_RATE, DEFAULT_RX2_FREQUENCY, DUTY_CYCLE, FREE_CHANNEL, FREQUENCY, JOIN_DUTY_CYCLE_TIMER, LORAREG_GetAttr_BandwidthAttrT1(), LORAREG_GetAttr_ChIdStatus(), LORAREG_GetAttr_CurChIndx(), LORAREG_GetAttr_DataRange(), LORAREG_GetAttr_DefRx1DataRate(), LORAREG_GetAttr_DefRx2DataRate(), LORAREG_GetAttr_DefRx2Freq(), LORAREG_GetAttr_DefTxPwr(), LORAREG_GetAttr_DRangeChBandT1(), LORAREG_GetAttr_DutyCycleT1(), LORAREG_GetAttr_FreeChannel1(), LORAREG_GetAttr_FreqT1(), LORAREG_GetAttr_JoinDutyCycleRemainingTime(), LORAREG_GetAttr_MacAdrAckDelay(), LORAREG_GetAttr_MacAdrAckLimit(), LORAREG_GetAttr_MacJoinAcptDelay1(), LORAREG_GetAttr_MacJoinAcptDelay2(), LORAREG_GetAttr_MacRecvDelay1(), LORAREG_GetAttr_MacRecvDelay2(), LORAREG_GetAttr_MacRetransmitTimeout(), LORAREG_GetAttr_MaxChannel(), LORAREG_GetAttr_MaxPayloadT1(), LORAREG_GetAttr_MinDutyCycleTimer(), LORAREG_GetAttr_MinMaxDr(), LORAREG_GetAttr_MinNewChIndex(), LORAREG_GetAttr_ModulationAttrT1(), LORAREG_GetAttr_NewTxChConfigT1(), LORAREG_GetAttr_RegDefTxDR(), LORAREG_GetAttr_RegDefTxPwr(), LORAREG_GetAttr_RegFeatures(), LORAREG_GetAttr_Rx1WindowparamsType1(), LORAREG_GetAttr_RxWindowOffsetT1(), LORAREG_GetAttr_RxWindowSizeT1(), LORAREG_GetAttr_SpreadFactorT1(), MAC_ADR_ACK_DELAY, MAC_ADR_ACK_LIMIT, MAC_JOIN_ACCEPT_DELAY1, MAC_JOIN_ACCEPT_DELAY2, MAC_RECEIVE_DELAY1, MAC_RECEIVE_DELAY2, MAC_RETRANSMIT_TIMEOUT, MAX_CHANNELS, MAX_PAYLOAD_SIZE, MIN_DUTY_CYCLE_TIMER, MIN_MAX_DR, MIN_NEW_CH_INDEX, MODULATION_ATTR, NEW_TX_CHANNEL_CONFIG, pGetAttr, REG_DEF_TX_DATARATE, REG_DEF_TX_POWER, RX1_WINDOW_PARAMS, RX_WINDOW_OFFSET, RX_WINDOW_SIZE, SPREADING_FACTOR_ATTR, and SUPPORTED_REGIONAL_FEATURES.
Referenced by LORAReg_InitNA().
void LORAREG_InitSetAttrFnPtrsAS | ( | void | ) |
References CHANNEL_ID_STATUS, CHLIST_DEFAULTS, DATA_RANGE, DL_FREQUENCY, DUTY_CYCLE, DUTY_CYCLE_TIMER, FREQUENCY, JOIN_BACK_OFF_TIMER, JOIN_DUTY_CYCLE_TIMER, JOINBACKOFF_CNTL, NEW_CHANNELS, pSetAttr, setChannelIdStatusT3(), setChlistDefaultState(), setDataRangeT2(), setDlFrequency(), setDutyCycle(), setDutyCycleTimer(), setFrequency(), setJoinBackoffCntl(), setJoinBackOffTimer(), setJoinDutyCycleTimer(), setNewChannel(), setTxParams(), and TX_PARAMS.
Referenced by LORAReg_InitAS().
void LORAREG_InitSetAttrFnPtrsAU | ( | void | ) |
References CHANNEL_ID_STATUS, DATA_RANGE, JOIN_BACK_OFF_TIMER, JOIN_DUTY_CYCLE_TIMER, JOINBACKOFF_CNTL, NEW_CHANNELS, pSetAttr, REG_JOIN_ENABLE_ALL, REG_JOIN_SUCCESS, setChannelIdStatus(), setDataRange(), setEnableAllChs(), setJoinBackoffCntl(), setJoinBackOffTimer(), setJoinDutyCycleTimer(), setJoinSuccess(), and setNewChannelsT1().
Referenced by LORAReg_InitAU().
void LORAREG_InitSetAttrFnPtrsEU | ( | void | ) |
References CHANNEL_ID_STATUS, CHLIST_DEFAULTS, DATA_RANGE, DL_FREQUENCY, DUTY_CYCLE, DUTY_CYCLE_TIMER, FREQUENCY, JOIN_BACK_OFF_TIMER, JOIN_DUTY_CYCLE_TIMER, JOINBACKOFF_CNTL, NEW_CHANNELS, pSetAttr, setChannelIdStatusT2(), setChlistDefaultState(), setDataRangeT2(), setDlFrequency(), setDutyCycle(), setDutyCycleTimer(), setFrequency(), setJoinBackoffCntl(), setJoinBackOffTimer(), setJoinDutyCycleTimer(), and setNewChannel().
Referenced by LORAReg_InitEU().
void LORAREG_InitSetAttrFnPtrsIN | ( | void | ) |
References CHANNEL_ID_STATUS, CHLIST_DEFAULTS, DATA_RANGE, DL_FREQUENCY, FREQUENCY, JOIN_BACK_OFF_TIMER, JOIN_DUTY_CYCLE_TIMER, JOINBACKOFF_CNTL, NEW_CHANNELS, pSetAttr, setChannelIdStatusT2(), setChlistDefaultState(), setDataRangeT2(), setDlFrequency(), setFrequency(), setJoinBackoffCntl(), setJoinBackOffTimer(), setJoinDutyCycleTimer(), setNewChannel(), setTxParams(), and TX_PARAMS.
Referenced by LORAReg_InitIN().
void LORAREG_InitSetAttrFnPtrsJP | ( | void | ) |
References CHANNEL_ID_STATUS, CHLIST_DEFAULTS, DATA_RANGE, DL_FREQUENCY, DUTY_CYCLE, DUTY_CYCLE_TIMER, FREQUENCY, JOIN_BACK_OFF_TIMER, JOIN_DUTY_CYCLE_TIMER, JOINBACKOFF_CNTL, LBT_TIMER, NEW_CHANNELS, pSetAttr, setChannelIdStatusT3(), setChlistDefaultState(), setDataRangeT2(), setDlFrequency(), setDutyCycle(), setDutyCycleTimer(), setFrequency(), setJoinBackoffCntl(), setJoinBackOffTimer(), setJoinDutyCycleTimer(), setLBTTimer(), setNewChannel(), setTxParams(), and TX_PARAMS.
Referenced by LORAReg_InitJP().
void LORAREG_InitSetAttrFnPtrsKR | ( | void | ) |
References CHANNEL_ID_STATUS, CHLIST_DEFAULTS, DATA_RANGE, DL_FREQUENCY, FREQUENCY, JOIN_BACK_OFF_TIMER, JOIN_DUTY_CYCLE_TIMER, JOINBACKOFF_CNTL, LBT_TIMER, NEW_CHANNELS, pSetAttr, setChannelIdStatusT3(), setChlistDefaultState(), setDataRangeT2(), setDlFrequency(), setFrequency(), setJoinBackoffCntl(), setJoinBackOffTimer(), setJoinDutyCycleTimer(), setLBTTimer(), setNewChannel(), setTxParams(), and TX_PARAMS.
Referenced by LORAReg_InitKR().
void LORAREG_InitSetAttrFnPtrsNA | ( | void | ) |
References CHANNEL_ID_STATUS, DATA_RANGE, JOIN_BACK_OFF_TIMER, JOIN_DUTY_CYCLE_TIMER, JOINBACKOFF_CNTL, NEW_CHANNELS, pSetAttr, REG_JOIN_ENABLE_ALL, REG_JOIN_SUCCESS, setChannelIdStatus(), setDataRange(), setEnableAllChs(), setJoinBackoffCntl(), setJoinBackOffTimer(), setJoinDutyCycleTimer(), setJoinSuccess(), and setNewChannelsT1().
Referenced by LORAReg_InitNA().
void LORAREG_InitValidateAttrFnPtrsAS | ( | void | ) |
References CHANNEL_ID, CHANNEL_MASK, CHANNEL_MASK_CNTL, CHMASK_CHCNTL, DATA_RANGE, pValidateAttr, RX1_DATARATE_OFFSET, RX2_DATARATE, RX_DATARATE, RX_FREQUENCY, SUPPORTED_DR, TX_DATARATE, TX_FREQUENCY, TX_PWR, ValidateChannelIdT2(), ValidateChannelMaskCntlT2(), ValidateChannelMaskT2(), ValidateChMaskChCntlT2(), ValidateDataRangeT2(), ValidateDataRateRxT2(), ValidateDataRateTxT2(), ValidateFrequencyAS(), ValidateRx1DataRateOffset(), ValidateSupportedDr(), ValidateTxFreqT2(), and ValidateTxPower().
Referenced by LORAReg_InitAS().
void LORAREG_InitValidateAttrFnPtrsAU | ( | void | ) |
References CHANNEL_ID, CHANNEL_MASK, CHANNEL_MASK_CNTL, CHMASK_CHCNTL, DATA_RANGE, pValidateAttr, RX1_DATARATE_OFFSET, RX2_DATARATE, RX_DATARATE, RX_FREQUENCY, SUPPORTED_DR, TX_DATARATE, TX_FREQUENCY, TX_PWR, ValidateChannelId(), ValidateChannelMask(), ValidateChannelMaskCntl(), ValidateChMaskChCntl(), ValidateDataRange(), ValidateDataRateRxT1(), ValidateDataRateTxT1(), ValidateRx1DataRateOffset(), ValidateRxFreqT1(), ValidateSupportedDr(), ValidateTxFreqT1(), and ValidateTxPower().
Referenced by LORAReg_InitAU().
void LORAREG_InitValidateAttrFnPtrsEU | ( | void | ) |
References CHANNEL_ID, CHANNEL_MASK, CHANNEL_MASK_CNTL, CHMASK_CHCNTL, DATA_RANGE, pValidateAttr, RX1_DATARATE_OFFSET, RX2_DATARATE, RX_DATARATE, RX_FREQUENCY, SUPPORTED_DR, TX_DATARATE, TX_FREQUENCY, TX_PWR, ValidateChannelIdT2(), ValidateChannelMaskCntlT2(), ValidateChannelMaskT2(), ValidateChMaskChCntlT2(), ValidateDataRangeT2(), ValidateDataRate(), ValidateFreq(), ValidateRx1DataRateOffset(), ValidateSupportedDr(), ValidateTxFreqT2(), and ValidateTxPower().
Referenced by LORAReg_InitEU().
void LORAREG_InitValidateAttrFnPtrsIN | ( | void | ) |
References CHANNEL_ID, CHANNEL_MASK, CHANNEL_MASK_CNTL, CHMASK_CHCNTL, DATA_RANGE, pValidateAttr, RX1_DATARATE_OFFSET, RX2_DATARATE, RX_DATARATE, RX_FREQUENCY, SUPPORTED_DR, TX_DATARATE, TX_FREQUENCY, TX_PWR, ValidateChannelIdT2(), ValidateChannelMaskCntlT2(), ValidateChannelMaskT2(), ValidateChMaskChCntlT2(), ValidateDataRangeT2(), ValidateDataRate(), ValidateFreqIN(), ValidateRx1DataRateOffset(), ValidateSupportedDr(), ValidateTxFreqT2(), and ValidateTxPower().
Referenced by LORAReg_InitIN().
void LORAREG_InitValidateAttrFnPtrsJP | ( | void | ) |
References CHANNEL_ID, CHANNEL_MASK, CHANNEL_MASK_CNTL, CHMASK_CHCNTL, DATA_RANGE, pValidateAttr, RX1_DATARATE_OFFSET, RX2_DATARATE, RX_DATARATE, RX_FREQUENCY, SUPPORTED_DR, TX_DATARATE, TX_FREQUENCY, TX_PWR, ValidateChannelIdT2(), ValidateChannelMaskCntlT2(), ValidateChannelMaskT2(), ValidateChMaskChCntlT2(), ValidateDataRangeT2(), ValidateDataRateRxT2(), ValidateDataRateTxT2(), ValidateFreqJP(), ValidateRx1DataRateOffset(), ValidateSupportedDr(), ValidateTxFreqT2(), and ValidateTxPower().
Referenced by LORAReg_InitJP().
void LORAREG_InitValidateAttrFnPtrsKR | ( | void | ) |
References CHANNEL_ID, CHANNEL_MASK, CHANNEL_MASK_CNTL, CHMASK_CHCNTL, DATA_RANGE, pValidateAttr, RX1_DATARATE_OFFSET, RX2_DATARATE, RX_DATARATE, RX_FREQUENCY, SUPPORTED_DR, TX_DATARATE, TX_FREQUENCY, TX_PWR, ValidateChannelIdT2(), ValidateChannelMaskCntlT2(), ValidateChannelMaskT2(), ValidateChMaskChCntlT2(), ValidateDataRangeT2(), ValidateDataRate(), ValidateFreqKR(), ValidateRx1DataRateOffset(), ValidateSupportedDr(), ValidateTxFreqT2(), and ValidateTxPower().
Referenced by LORAReg_InitKR().
void LORAREG_InitValidateAttrFnPtrsNA | ( | void | ) |
References CHANNEL_ID, CHANNEL_MASK, CHANNEL_MASK_CNTL, CHMASK_CHCNTL, DATA_RANGE, pValidateAttr, RX1_DATARATE_OFFSET, RX2_DATARATE, RX_DATARATE, RX_FREQUENCY, SUPPORTED_DR, TX_DATARATE, TX_FREQUENCY, TX_PWR, ValidateChannelId(), ValidateChannelMask(), ValidateChannelMaskCntl(), ValidateChMaskChCntl(), ValidateDataRange(), ValidateDataRateRxT1(), ValidateDataRateTxT1(), ValidateRx1DataRateOffset(), ValidateRxFreqT1(), ValidateSupportedDr(), ValidateTxFreqT1(), and ValidateTxPower().
Referenced by LORAReg_InitNA().
StackRetStatus_t LORAREG_SetAttr | ( | LorawanRegionalAttributes_t | attrType, |
void * | attrInput | ||
) |
This API is used to Update the parameters to the regional parameter data base.
[in] | attrType | Type of Attribute to update in the regional module |
[in] | attrInput | Input used to update the attribute value |
LORAWAN_SUCCESS | : If Update is successful LORAWAN_INVALID_PARAMETER if the input attribute or the attribute type is invalid |
References LORAWAN_INVALID_PARAMETER, pSetAttr, REG_NUM_ATTRIBUTES, and result.
StackRetStatus_t LORAREG_SupportedBands | ( | uint16_t * | bands | ) |
This function returns the supported bands in the LoRaWAN stack ( a compile time feature)
ismBand | The Regional bands supported is updated in this parameter |
LORAWAN_SUCCESS | : If initialization is successful LORAWAN_INVALID_PARAMETER if Initialization is failed |
References ISM_ASBAND, ISM_AU915, ISM_EUBAND, ISM_IND865, ISM_JPN923, ISM_KR920, ISM_NA915, and LORAWAN_SUCCESS.
StackRetStatus_t LORAREG_UnInit | ( | void | ) |
This API is used to un-initialize the regional band parameters and stop the associated timers.
LORAWAN_INVALID_PARAMETER if the input attribute or the attribute type is invalid
References _RegParams::band, _RegPdsItems::fileid, ISM_EU868, LORAWAN_INVALID_PARAMETER, PDS_FILE_REG_EU868_12_IDX, PDS_UnRegFile(), _RegParams::regParamItems, result, and StopAllRegSoftwareTimers().
StackRetStatus_t LORAREG_ValidateAttr | ( | LorawanRegionalAttributes_t | attrType, |
void * | attrInput | ||
) |
This API is used to validate if the parameter is according to the specification defined for that band.
[in] | attrType | Type of Attribute to validate in the regional module |
[in] | attrInput | Input used to validate the attribute value |
LORAWAN_SUCCESS | : If Validate is successful LORAWAN_INVALID_PARAMETER if the input attribute or the attribute type is invalid |
References LORAWAN_INVALID_PARAMETER, pValidateAttr, REG_NUM_ATTRIBUTES, and result.
Referenced by setNewChannel().
|
static |
This function is used to select a free available channel.
[in] | transmissionType | Type of transmission - True : Data Frame ,False : Join Request |
[in] | maxChannels | Maximum number of channels to search |
[in] | currDr | : CUrrent Data rate maintained in the MAC which is used to derive the radio configuration |
[out] | channelIndex | : Index of the selected free channel |
LORAWAN_SUCCESS | : If Channel is found successfully is successful LORAWAN_NO_CHANNELS_FOUND if No free channel is available |
References _RegParams::cmnParams, _channelParams::dataRange, ENABLED, _RegParams::FeaturesSupport, i, j, JOIN_BACKOFF_SUPPORT, _RegParams::lastUsedChannelIndex, _RegParamsType1::lastUsedSB, LORAWAN_NO_CHANNELS_FOUND, LORAWAN_SUCCESS, _DataRange::max, MAX_CHANNELS_BANDWIDTH_125_AU_NA, MAX_CHANNELS_BANDWIDTH_500_AU_NA, MAX_SUBBANDS, _DataRange::min, NO_OF_CH_IN_SUBBAND, _CmnParams::paramsType1, _RegParams::pChParams, _RegParams::pJoinDutyCycleTimer, result, _channelParams::status, SwTimerIsRunning(), and _JoinDutyCycleTimer::timerId.
Referenced by GetTxChannelConfig1(), and LORAREG_GetAttr_FreeChannel1().
|
static |
This function is used to select a free available channel.
[in] | transmissionType | Type of transmission - True : Data Frame ,False : Join Request |
[in] | maxChannels | Maximum number of channels to search |
[in] | currDr | : CUrrent Data rate maintained in the MAC which is used to derive the radio configuration |
[out] | channelIndex | : Index of the selected free channel |
LORAWAN_SUCCESS | : If Channel is found successfully is successful LORAWAN_NO_CHANNELS_FOUND if No free channel is available |
References _RegParamsType2::aggregatedDutyCycleTimeout, _RegParams::band, _RegParams::cmnParams, _channelParams::dataRange, ENABLED, _RegParams::FeaturesSupport, i, ISM_ASBAND, ISM_EUBAND, ISM_JPN923, JOIN_BACKOFF_SUPPORT, _OthChannelParams::joinRequestChannel, LORAWAN_NO_CHANNELS_FOUND, LORAWAN_SUCCESS, _DataRange::max, _DataRange::min, _CmnParams::paramsType2, _RegParams::pChParams, _RegParams::pJoinDutyCycleTimer, _RegParams::pOtherChParams, _RegParams::pSubBandParams, result, _channelParams::status, _OthChannelParams::subBandId, _SubBandParams::subBandTimeout, SwTimerIsRunning(), and _JoinDutyCycleTimer::timerId.
Referenced by GetTxChannelConfig2(), and LORAREG_GetAttr_FreeChannel2().
|
static |
References CHANNEL_ID, UpdateChId_t::channelIndex, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, UpdateChId_t::statusNew, UpdateChannelIdStatus(), and ValidateChannelId().
Referenced by LORAREG_InitSetAttrFnPtrsAU(), and LORAREG_InitSetAttrFnPtrsNA().
|
static |
References ALL_CHANNELS, ValChId_t::allowedForDefaultChannels, _RegParams::band, CHANNEL_ID, ValChId_t::channelIndex, UpdateChId_t::channelIndex, ISM_IND865, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, UpdateChId_t::statusNew, UpdateChannelIdStatus(), UpdateChannelIdStatusT2(), and ValidateChannelIdT2().
Referenced by LORAREG_InitSetAttrFnPtrsEU(), and LORAREG_InitSetAttrFnPtrsIN().
|
static |
References ALL_CHANNELS, ValChId_t::allowedForDefaultChannels, _RegParams::band, CHANNEL_ID, ValChId_t::channelIndex, UpdateChId_t::channelIndex, ISM_KR920, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, UpdateChId_t::statusNew, UpdateChannelIdStatusT3(), UpdateChannelIdStatusT4(), and ValidateChannelIdT2().
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsJP(), and LORAREG_InitSetAttrFnPtrsKR().
|
static |
References DISABLED, i, _OthChannelParams::joinRequestChannel, LORAWAN_SUCCESS, _RegParams::maxChannels, _RegParams::pChParams, _RegParams::pOtherChParams, and _channelParams::status.
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsEU(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsJP(), and LORAREG_InitSetAttrFnPtrsKR().
|
static |
References _RegPdsItems::ch_param_1_item_id, CHANNEL_ID, ValUpdateDrange_t::channelIndex, DATA_RANGE, _channelParams::dataRange, ValUpdateDrange_t::dataRangeNew, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::pChParams, PDS_STORE, _RegParams::regParamItems, ValidateChannelId(), ValidateDataRange(), and _DataRange::value.
Referenced by LORAREG_InitSetAttrFnPtrsAU(), and LORAREG_InitSetAttrFnPtrsNA().
|
static |
References ALL_CHANNELS, ValChId_t::allowedForDefaultChannels, _RegPdsItems::ch_param_1_item_id, _RegPdsItems::ch_param_2_item_id, CHANNEL_ID, ValUpdateDrange_t::channelIndex, ValChId_t::channelIndex, DATA_RANGE, DATA_RANGE_DEFINED, _channelParams::dataRange, ValUpdateDrange_t::dataRangeNew, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _OthChannelParams::parametersDefined, _RegParams::pChParams, PDS_STORE, _RegParams::pOtherChParams, _RegParams::regParamItems, ValidateChannelIdT2(), ValidateDataRangeT2(), and _DataRange::value.
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsEU(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsJP(), and LORAREG_InitSetAttrFnPtrsKR().
StackRetStatus_t setDefaultTxPower | ( | IsmBand_t | ismBand | ) |
References ISM_ASBAND, ISM_AU915, ISM_EU868, ISM_JPN923, ISM_KR920, ISM_NA915, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::MacTxPower, PDS_STORE, and result.
|
static |
References ALL_CHANNELS, ValChId_t::allowedForDefaultChannels, _RegPdsItems::ch_param_2_item_id, CHANNEL_ID, ValUpdateFreqTx_t::channelIndex, ValChId_t::channelIndex, ValUpdateFreqTx_t::frequencyNew, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, PDS_STORE, _RegParams::pOtherChParams, pValidateAttr, _RegParams::regParamItems, result, _OthChannelParams::rx1Frequency, RX_FREQUENCY, and ValidateChannelIdT2().
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsEU(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsJP(), and LORAREG_InitSetAttrFnPtrsKR().
|
static |
References ALL_CHANNELS, ValChId_t::allowedForDefaultChannels, _RegPdsItems::ch_param_2_item_id, CHANNEL_ID, UpdateDutyCycle_t::channelIndex, ValChId_t::channelIndex, _RegParams::cmnParams, DUTY_CYCLE_DEFINED, UpdateDutyCycle_t::dutyCycleNew, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _OthChannelParams::parametersDefined, _CmnParams::paramsType2, PDS_STORE, _RegParams::pOtherChParams, _RegParams::pSubBandParams, _RegParams::regParamItems, result, _RegParamsType2::subBandDutyCycle, _OthChannelParams::subBandId, _SubBandParams::subBandTimeout, and ValidateChannelIdT2().
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsEU(), and LORAREG_InitSetAttrFnPtrsJP().
|
static |
References UpdateDutyCycleTimer_t::aggDutyCycle, _RegParamsType2::aggregatedDutyCycleTimeout, _RegParams::band, _RegParams::cmnParams, DutyCycleCallback(), i, ISM_JPN923, _RegParams::joinDutyCycleTimeout, UpdateDutyCycleTimer_t::joining, _DutyCycleTimer::lastTimerValue, _RegParams::lastUsedChannelIndex, LORAWAN_SUCCESS, _RegParams::maxSubBands, MS_TO_US, NULL, _CmnParams::paramsType2, _RegParams::pDutyCycleTimer, _RegParams::pOtherChParams, _RegParams::pSubBandParams, result, _RegParamsType2::subBandDutyCycle, _OthChannelParams::subBandId, _SubBandParams::subBandTimeout, SW_TIMEOUT_RELATIVE, SwTimerIsRunning(), SwTimerReadValue(), SwTimerStart(), SwTimerStop(), UpdateDutyCycleTimer_t::timeOnAir, _DutyCycleTimer::timerId, and US_TO_MS.
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsEU(), and LORAREG_InitSetAttrFnPtrsJP().
|
static |
References _RegPdsItems::ch_param_1_item_id, _RegParams::cmnParams, ENABLED, i, _RegPdsItems::lastUsedSB, _RegParamsType1::lastUsedSB, LORAWAN_SUCCESS, MAX_SUBBANDS, NO_OF_CH_IN_SUBBAND, _CmnParams::paramsType1, _RegParams::pChParams, PDS_STORE, _RegParams::regParamItems, and _channelParams::status.
Referenced by LORAREG_InitSetAttrFnPtrsAU(), and LORAREG_InitSetAttrFnPtrsNA().
|
static |
References ValChId_t::allowedForDefaultChannels, _RegParams::band, _RegPdsItems::ch_param_2_item_id, CHANNEL_ID, ValUpdateFreqTx_t::channelIndex, ValChId_t::channelIndex, FREQUENCY_DEFINED, ValUpdateFreqTx_t::frequencyNew, getSubBandId(), ISM_EUBAND, ISM_JPN923, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _OthChannelParams::parametersDefined, PDS_STORE, _RegParams::pOtherChParams, pValidateAttr, _RegParams::regParamItems, result, _OthChannelParams::rx1Frequency, RX_FREQUENCY, _OthChannelParams::subBandId, _OthChannelParams::ulfrequency, ValidateChannelIdT2(), and WITHOUT_DEFAULT_CHANNELS.
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsEU(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsJP(), and LORAREG_InitSetAttrFnPtrsKR().
|
static |
References _RegParams::FeaturesSupport, JOIN_BACKOFF_SUPPORT, LORAWAN_SUCCESS, _RegParams::pJoinBackoffTimer, _RegParams::pJoinDutyCycleTimer, result, SwTimerIsRunning(), SwTimerStop(), _JoinDutyCycleTimer::timerId, and _JoinBackoffTimer::timerId.
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsAU(), LORAREG_InitSetAttrFnPtrsEU(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsJP(), LORAREG_InitSetAttrFnPtrsKR(), and LORAREG_InitSetAttrFnPtrsNA().
|
static |
References BACKOFF_BASE_TIME_IN_MS, JoinBackoffCallback(), _RegParams::joinbccount, LORAWAN_SUCCESS, MS_TO_US, NULL, _RegParams::pJoinBackoffTimer, result, SW_TIMEOUT_RELATIVE, SwTimerStart(), SwTimerStop(), and _JoinBackoffTimer::timerId.
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsAU(), LORAREG_InitSetAttrFnPtrsEU(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsJP(), LORAREG_InitSetAttrFnPtrsKR(), and LORAREG_InitSetAttrFnPtrsNA().
|
static |
References AGGREGATEDTIME_10HR, AGGREGATEDTIME_1HR, JOIN_BACKOFF_PRESCALAR_10HR, JOIN_BACKOFF_PRESCALAR_1HR, JOIN_BACKOFF_PRESCALAR_24HR, _RegParams::joinbccount, JoinDutyCycleCallback(), _RegParams::joinDutyCycleTimeout, UpdateJoinDutyCycleTimer_t::joinreqTimeonAir, _JoinDutyCycleTimer::lastTimerInterval, LORAWAN_SUCCESS, MS_TO_US, NULL, _RegParams::pJoinDutyCycleTimer, _JoinDutyCycleTimer::remainingtime, result, UpdateJoinDutyCycleTimer_t::startJoinDutyCycleTimer, SW_TIMEOUT_RELATIVE, SWTIMER_MAX_TIMEOUT, SwTimerIsRunning(), SwTimerReadValue(), SwTimerStart(), SwTimerStop(), _JoinDutyCycleTimer::timerId, and US_TO_MS.
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsAU(), LORAREG_InitSetAttrFnPtrsEU(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsJP(), LORAREG_InitSetAttrFnPtrsKR(), and LORAREG_InitSetAttrFnPtrsNA().
|
static |
References _RegPdsItems::ch_param_1_item_id, _RegParams::cmnParams, DISABLED, i, _RegParamsType1::lastUsedSB, LORAWAN_SUCCESS, MAX_CHANNELS_BANDWIDTH_125_AU_NA, MAX_SUBBANDS, NO_OF_CH_IN_SUBBAND, _CmnParams::paramsType1, _RegParams::pChParams, PDS_STORE, _RegParams::regParamItems, and _channelParams::status.
Referenced by LORAREG_InitSetAttrFnPtrsAU(), and LORAREG_InitSetAttrFnPtrsNA().
|
static |
References _RegParamsType2::channelTimer, _RegParams::cmnParams, ENABLED, i, _LBTTimer::lastTimerValue, _RegParams::lastUsedChannelIndex, LBT_TRANSMIT_CHANNEL_PAUSE_DURATION, LBTChannelPauseCallback(), _RegParamsType2::LBTTimer, LORAWAN_SUCCESS, _RegParams::maxChannels, MS_TO_US, NULL, _CmnParams::paramsType2, _RegParams::pChParams, _channelParams::status, SW_TIMEOUT_RELATIVE, SwTimerIsRunning(), SwTimerReadValue(), SwTimerStart(), SwTimerStop(), _LBTTimer::timerId, and US_TO_MS.
Referenced by LORAREG_InitSetAttrFnPtrsJP(), and LORAREG_InitSetAttrFnPtrsKR().
|
static |
References _RegParams::band, BIT0, UpdateNewCh_t::channelMask, UpdateNewCh_t::channelMaskCntl, CHMASK_CHCNTL, ValChMaskCntl_t::chnlMask, ValChMaskCntl_t::chnlMaskCntl, DISABLED, ENABLED, i, ISM_ASBAND, ISM_IND865, ISM_JPN923, ISM_KR920, LORAREG_ValidateAttr(), LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::maxChannels, NULL, result, SHIFT1, UpdateChannelIdStatus(), UpdateChannelIdStatusT2(), UpdateChannelIdStatusT3(), and UpdateChannelIdStatusT4().
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsEU(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsJP(), and LORAREG_InitSetAttrFnPtrsKR().
|
static |
References CHANNEL_MASK_CNTL, UpdateNewCh_t::channelMask, UpdateNewCh_t::channelMaskCntl, DISABLED, EnableChannels2(), ENABLED, i, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, SHIFT4, UpdateChannelIdStatus(), and ValidateChannelMaskCntl().
Referenced by LORAREG_InitSetAttrFnPtrsAU(), and LORAREG_InitSetAttrFnPtrsNA().
|
static |
References _RegParams::cmnParams, _TxParams::downlinkDwellTime, DR0, DR2, LORAWAN_SUCCESS, _RegParams::maxDataRate, _TxParams::maxEIRP, _RegParams::maxTxPwr, _CmnParams::paramsType2, _RegParamsType2::txParams, and _TxParams::uplinkDwellTime.
Referenced by LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsJP(), and LORAREG_InitSetAttrFnPtrsKR().
void StopAllRegSoftwareTimers | ( | void | ) |
References i, REG_PARAMS_TIMERS_COUNT, regTimerId, and SwTimerStop().
Referenced by LORAREG_Init(), and LORAREG_UnInit().
|
static |
References _RegParams::band, _RegPdsItems::ch_param_1_item_id, _RegParams::cmnParams, ISM_NAAUBAND, _RegParams::maxChannels, _RegParamsType2::minNonDefChId, _CmnParams::paramsType2, _RegParams::pChParams, PDS_STORE, _RegParams::regParamItems, and _channelParams::status.
Referenced by EnableChannels2(), setChannelIdStatus(), setChannelIdStatusT2(), setNewChannel(), and setNewChannelsT1().
|
static |
References _RegParams::band, _RegPdsItems::ch_param_1_item_id, _RegParams::cmnParams, DATA_RANGE_DEFINED, DISABLED, ENABLED, FREQUENCY_DEFINED, i, ISM_EUBAND, _RegParams::maxChannels, _RegParamsType2::minNonDefChId, _OthChannelParams::parametersDefined, _CmnParams::paramsType2, _RegParams::pChParams, PDS_STORE, _RegParams::pOtherChParams, _RegParams::pSubBandParams, _RegParams::regParamItems, _channelParams::status, _OthChannelParams::subBandId, and _SubBandParams::subBandTimeout.
Referenced by setChannelIdStatusT2(), and setNewChannel().
|
static |
References _RegParams::band, _RegPdsItems::ch_param_1_item_id, _RegPdsItems::ch_param_2_item_id, _RegParamsType2::channelTimer, _RegParams::cmnParams, ISM_JPN923, _CmnParams::paramsType2, _RegParams::pChParams, PDS_STORE, _RegParams::regParamItems, and _channelParams::status.
Referenced by setChannelIdStatusT3(), and setNewChannel().
|
static |
References _RegPdsItems::ch_param_1_item_id, _RegPdsItems::ch_param_2_item_id, DEFAULT_EIRP_KR_HF, DEFAULT_EIRP_KR_LF, ENABLED, FREQ_922100KHZ, _OthChannelParams::maxEIRP, _RegParams::pChParams, PDS_STORE, _RegParams::pOtherChParams, _RegParams::regParamItems, _channelParams::status, and _OthChannelParams::ulfrequency.
Referenced by setChannelIdStatusT3(), and setNewChannel().
|
static |
References _RegParams::band, _RegParams::cmnParams, _channelParams::dataRange, DR2, ENABLED, i, ISM_ASBAND, ISM_JPN923, _DataRange::max, _RegParams::maxChannels, _RegParams::maxDataRate, MinMaxDr_t::maxDr, _DataRange::min, _RegParams::minDataRate, MinMaxDr_t::minDr, _CmnParams::paramsType2, _RegParams::pChParams, _channelParams::status, _RegParamsType2::txParams, and _TxParams::uplinkDwellTime.
Referenced by LORAREG_GetAttr_MinMaxDr().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::maxChannels, and result.
Referenced by LORAREG_InitValidateAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsNA(), setChannelIdStatus(), and setDataRange().
|
static |
References ValChId_t::allowedForDefaultChannels, ValChId_t::channelIndex, _RegParams::cmnParams, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::maxChannels, _RegParamsType2::minNonDefChId, _CmnParams::paramsType2, and WITHOUT_DEFAULT_CHANNELS.
Referenced by LORAREG_GetAttr_DutyCycleT2(), LORAREG_InitValidateAttrFnPtrsAS(), LORAREG_InitValidateAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsJP(), LORAREG_InitValidateAttrFnPtrsKR(), setChannelIdStatusT2(), setChannelIdStatusT3(), setDataRangeT2(), setDlFrequency(), setDutyCycle(), and setFrequency().
|
static |
References LORAWAN_SUCCESS.
Referenced by LORAREG_InitValidateAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsNA(), and ValidateChMaskChCntl().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, and result.
Referenced by LORAREG_GetAttr_DRangeChBandT1(), LORAREG_InitValidateAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsNA(), setNewChannelsT1(), and ValidateChMaskChCntl().
|
static |
|
static |
References BIT0, DATA_RANGE_DEFINED, FREQUENCY_DEFINED, i, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::maxChannels, _OthChannelParams::parametersDefined, _RegParams::pOtherChParams, and SHIFT1.
Referenced by LORAREG_InitValidateAttrFnPtrsAS(), LORAREG_InitValidateAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsJP(), LORAREG_InitValidateAttrFnPtrsKR(), and ValidateChMaskChCntlT2().
|
static |
|
static |
References CHANNEL_MASK, CHANNEL_MASK_CNTL, ValChMaskCntl_t::chnlMask, ValChMaskCntl_t::chnlMaskCntl, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, ValidateChannelMaskCntlT2(), and ValidateChannelMaskT2().
Referenced by LORAREG_InitValidateAttrFnPtrsAS(), LORAREG_InitValidateAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsJP(), and LORAREG_InitValidateAttrFnPtrsKR().
|
static |
References ValUpdateDrange_t::channelIndex, _RegParams::cmnParams, ValUpdateDrange_t::dataRangeNew, FIRST_NIBBLE, LAST_NIBBLE, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParamsType1::Max_125khzChan, _RegParams::maxChannels, _RegParamsType1::maxTxDR, _CmnParams::paramsType1, SHIFT4, TX_DATARATE, and ValidateDataRateTxT1().
Referenced by LORAREG_InitValidateAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsNA(), and setDataRange().
|
static |
References ValUpdateDrange_t::dataRangeNew, FIRST_NIBBLE, LAST_NIBBLE, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, RX_DATARATE, SHIFT4, and ValidateDataRate().
Referenced by LORAREG_InitValidateAttrFnPtrsAS(), LORAREG_InitValidateAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsJP(), LORAREG_InitValidateAttrFnPtrsKR(), and setDataRangeT2().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::minDataRate, and result.
Referenced by LORAREG_GetAttr_BandwidthAttrT2(), LORAREG_GetAttr_MaxPayloadT2(), LORAREG_GetAttr_MaxPayloadT3(), LORAREG_GetAttr_ModulationAttrT2(), LORAREG_GetAttr_NewTxChConfigT2(), LORAREG_GetAttr_RxWindowOffsetT2(), LORAREG_GetAttr_RxWindowSizeT2(), LORAREG_GetAttr_SpreadFactorT2(), LORAREG_InitValidateAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsKR(), and ValidateDataRangeT2().
|
static |
References _RegParams::cmnParams, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParamsType1::maxRxDR, _RegParamsType1::minRxDR, _CmnParams::paramsType1, and result.
Referenced by LORAREG_GetAttr_BandwidthAttrT1(), LORAREG_GetAttr_MaxPayloadT1(), LORAREG_GetAttr_ModulationAttrT1(), LORAREG_GetAttr_RxWindowOffsetT1(), LORAREG_GetAttr_RxWindowSizeT1(), LORAREG_GetAttr_SpreadFactorT1(), LORAREG_InitValidateAttrFnPtrsAU(), and LORAREG_InitValidateAttrFnPtrsNA().
|
static |
References _RegParams::cmnParams, _RegParams::DefRx1DataRate, _TxParams::downlinkDwellTime, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::minDataRate, _CmnParams::paramsType2, result, and _RegParamsType2::txParams.
Referenced by LORAREG_InitValidateAttrFnPtrsAS(), and LORAREG_InitValidateAttrFnPtrsJP().
|
static |
References _RegParams::cmnParams, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParamsType1::maxTxDR, _CmnParams::paramsType1, and result.
Referenced by LORAREG_GetAttr_BandwidthAttrT1(), LORAREG_GetAttr_MaxPayloadT1(), LORAREG_GetAttr_ModulationAttrT1(), LORAREG_GetAttr_NewTxChConfigT1(), LORAREG_GetAttr_RxWindowOffsetT1(), LORAREG_GetAttr_RxWindowSizeT1(), LORAREG_GetAttr_SpreadFactorT1(), LORAREG_InitValidateAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsNA(), and ValidateDataRange().
|
static |
References _RegParams::cmnParams, _RegParams::DefRx1DataRate, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::minDataRate, _CmnParams::paramsType2, result, _RegParamsType2::txParams, and _TxParams::uplinkDwellTime.
Referenced by LORAREG_InitValidateAttrFnPtrsAS(), and LORAREG_InitValidateAttrFnPtrsJP().
|
static |
References getSubBandId(), LORAWAN_INVALID_PARAMETER, and LORAWAN_SUCCESS.
Referenced by LORAREG_InitValidateAttrFnPtrsEU().
|
static |
References FREQ_865000KHZ, FREQ_867000KHZ, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, and result.
Referenced by LORAREG_InitValidateAttrFnPtrsIN().
|
static |
References FREQ_920000KHZ, FREQ_928000KHZ, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, and result.
Referenced by LORAREG_InitValidateAttrFnPtrsJP().
|
static |
References FREQ_920900KHZ, FREQ_923300KHZ, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, and result.
Referenced by LORAREG_InitValidateAttrFnPtrsKR().
|
static |
References _RegParams::band, FREQ_915000KHZ, FREQ_920000KHZ, FREQ_922000KHZ, FREQ_923000KHZ, FREQ_925000KHZ, FREQ_928000KHZ, ISM_BRN923, ISM_CMB923, ISM_INS923, ISM_LAOS923, ISM_NZ923, ISM_SP923, ISM_THAI923, ISM_TWN923, ISM_VTM923, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, and result.
Referenced by LORAREG_InitValidateAttrFnPtrsAS().
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, and _RegParams::Rx1DrOffset.
Referenced by LORAREG_InitValidateAttrFnPtrsAS(), LORAREG_InitValidateAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsJP(), LORAREG_InitValidateAttrFnPtrsKR(), and LORAREG_InitValidateAttrFnPtrsNA().
|
static |
References FREQ_600KHZ, FREQ_923300KHZ, FREQ_927500KHZ, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, and result.
Referenced by LORAREG_InitValidateAttrFnPtrsAU(), and LORAREG_InitValidateAttrFnPtrsNA().
|
static |
References _channelParams::dataRange, ENABLED, i, LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _DataRange::max, _RegParams::maxChannels, _DataRange::min, _RegParams::pChParams, result, and _channelParams::status.
Referenced by LORAREG_InitValidateAttrFnPtrsAS(), LORAREG_InitValidateAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsJP(), LORAREG_InitValidateAttrFnPtrsKR(), and LORAREG_InitValidateAttrFnPtrsNA().
|
static |
|
static |
|
static |
References LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, _RegParams::maxTxPwrIndx, and result.
Referenced by LORAREG_GetAttr_NewTxChConfigT1(), LORAREG_GetAttr_NewTxChConfigT2(), LORAREG_InitValidateAttrFnPtrsAS(), LORAREG_InitValidateAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsJP(), LORAREG_InitValidateAttrFnPtrsKR(), and LORAREG_InitValidateAttrFnPtrsNA().
|
static |
|
static |
|
static |
Referenced by LORAREG_GetAttr_ChIdStatus(), LORAREG_GetAttr_DataRange(), LORAREG_Init(), LORAREG_InitValidateAttrFnPtrsAS(), LORAREG_InitValidateAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsJP(), LORAREG_InitValidateAttrFnPtrsKR(), LORAREG_InitValidateAttrFnPtrsNA(), LORAREG_ValidateAttr(), setDlFrequency(), setFrequency(), and ValidateTxFreqT2().
RegParams_t RegParams |
Referenced by InitDefault433Channels(), InitDefault865Channels(), InitDefault868Channels(), InitDefault915Channels(), InitDefault915ChannelsAU(), InitDefault920Channels(), InitDefault920ChannelsKR(), InitDefault923Channels(), LORAReg_InitAS(), LORAReg_InitAU(), LORAReg_InitEU(), LORAReg_InitIN(), LORAReg_InitJP(), LORAReg_InitKR(), and LORAReg_InitNA().
uint8_t regTimerId[REG_PARAMS_TIMERS_COUNT] |