SX126x-Arduino
Region.h
Go to the documentation of this file.
1 
52 #ifndef __REGION_H__
53 #define __REGION_H__
54 
55 extern "C"
56 {
57 
58 #include "mac/Commissioning.h"
59 
63 #define LC(channelIndex) (uint16_t)(1 << (channelIndex - 1))
64 
79 #define DR_0 0
80 
95 #define DR_1 1
96 
111 #define DR_2 2
112 
127 #define DR_3 3
128 
143 #define DR_4 4
144 
159 #define DR_5 5
160 
175 #define DR_6 6
176 
191 #define DR_7 7
192 
207 #define DR_8 8
208 
223 #define DR_9 9
224 
239 #define DR_10 10
240 
255 #define DR_11 11
256 
271 #define DR_12 12
272 
287 #define DR_13 13
288 
303 #define DR_14 14
304 
319 #define DR_15 15
320 
335 #define TX_POWER_0 0
336 
351 #define TX_POWER_1 1
352 
367 #define TX_POWER_2 2
368 
383 #define TX_POWER_3 3
384 
399 #define TX_POWER_4 4
400 
415 #define TX_POWER_5 5
416 
431 #define TX_POWER_6 6
432 
447 #define TX_POWER_7 7
448 
463 #define TX_POWER_8 8
464 
479 #define TX_POWER_9 9
480 
495 #define TX_POWER_10 10
496 
500 #define TX_POWER_11 11
501 
505 #define TX_POWER_12 12
506 
510 #define TX_POWER_13 13
511 
515 #define TX_POWER_14 14
516 
520 #define TX_POWER_15 15
521 
525  typedef enum ePhyAttribute
526  {
660 
664  typedef enum eInitType
665  {
681 
682  typedef enum eChannelsMask
683  {
693 
697  typedef union uPhyParam {
701  uint32_t Value;
705  float fValue;
709  uint16_t *ChannelsMask;
715 
719  typedef struct sGetPhyParams
720  {
730  int8_t Datarate;
744 
748  typedef struct sSetBandTxDoneParams
749  {
753  uint8_t Channel;
757  bool Joined;
763 
767  typedef union uVerifyParams {
771  int8_t TxPower;
775  bool DutyCycle;
779  uint8_t NbJoinTrials;
784  {
788  int8_t Datarate;
799 
803  typedef struct sApplyCFListParams
804  {
808  uint8_t *Payload;
812  uint8_t Size;
814 
818  typedef struct sChanMaskSetParams
819  {
823  uint16_t *ChannelsMaskIn;
829 
833  typedef struct sAdrNextParams
834  {
846  uint32_t AdrAckCounter;
850  int8_t Datarate;
854  int8_t TxPower;
860 
864  typedef struct sRxConfigParams
865  {
869  uint8_t Channel;
873  int8_t Datarate;
877  uint8_t Bandwidth;
881  int8_t DrOffset;
885  uint32_t Frequency;
889  uint32_t WindowTimeout;
893  int32_t WindowOffset;
909  bool Window;
911 
915  typedef struct sTxConfigParams
916  {
920  uint8_t Channel;
924  int8_t Datarate;
928  int8_t TxPower;
932  float MaxEirp;
936  float AntennaGain;
940  uint16_t PktLen;
942 
946  typedef struct sLinkAdrReqParams
947  {
951  uint8_t *Payload;
955  uint8_t PayloadSize;
975  uint8_t CurrentNbRep;
977 
981  typedef struct sRxParamSetupReqParams
982  {
986  int8_t Datarate;
990  int8_t DrOffset;
994  uint32_t Frequency;
996 
1000  typedef struct sNewChannelReqParams
1001  {
1009  int8_t ChannelId;
1011 
1015  typedef struct sTxParamSetupReqParams
1016  {
1028  uint8_t MaxEirp;
1030 
1034  typedef struct sDlChannelReqParams
1035  {
1039  uint8_t ChannelId;
1043  uint32_t Rx1Frequency;
1045 
1049  typedef struct sAlternateDrParams
1050  {
1054  uint16_t NbTrials;
1056 
1060  typedef struct sCalcBackOffParams
1061  {
1065  bool Joined;
1077  uint8_t Channel;
1087 
1091  typedef struct sNextChanParams
1092  {
1104  int8_t Datarate;
1108  bool Joined;
1114 
1118  typedef struct sChannelAddParams
1119  {
1127  uint8_t ChannelId;
1129 
1133  typedef struct sChannelRemoveParams
1134  {
1138  uint8_t ChannelId;
1140 
1144  typedef struct sContinuousWaveParams
1145  {
1149  uint8_t Channel;
1153  int8_t Datarate;
1157  int8_t TxPower;
1161  float MaxEirp;
1169  uint16_t Timeout;
1171 
1180  bool RegionIsActive(LoRaMacRegion_t region);
1181 
1192 
1201 
1209  void RegionInitDefaults(LoRaMacRegion_t region, InitType_t type);
1210 
1222  bool RegionVerify(LoRaMacRegion_t region, VerifyParams_t *verify, PhyAttribute_t phyAttribute);
1223 
1232  void RegionApplyCFList(LoRaMacRegion_t region, ApplyCFListParams_t *applyCFList);
1233 
1243  bool RegionChanMaskSet(LoRaMacRegion_t region, ChanMaskSetParams_t *chanMaskSet);
1244 
1260  bool RegionAdrNext(LoRaMacRegion_t region, AdrNextParams_t *adrNext, int8_t *drOut, int8_t *txPowOut, uint32_t *adrAckCounter);
1261 
1273  bool RegionRxConfig(LoRaMacRegion_t region, RxConfigParams_t *rxConfig, int8_t *datarate);
1274 
1275  /*
1276  * Rx window precise timing
1277  *
1278  * For more details please consult the following document, chapter 3.1.2.
1279  * http://www.semtech.com/images/datasheet/SX1272_settings_for_LoRaWAN_v2.0.pdf
1280  * or
1281  * http://www.semtech.com/images/datasheet/SX1276_settings_for_LoRaWAN_v2.0.pdf
1282  *
1283  * Downlink start: T = Tx + 1s (+/- 20 us)
1284  * |
1285  * TRxEarly | TRxLate
1286  * | | |
1287  * | | +---+---+---+---+---+---+---+---+
1288  * | | | Latest Rx window |
1289  * | | +---+---+---+---+---+---+---+---+
1290  * | | |
1291  * +---+---+---+---+---+---+---+---+
1292  * | Earliest Rx window |
1293  * +---+---+---+---+---+---+---+---+
1294  * |
1295  * +---+---+---+---+---+---+---+---+
1296  *Downlink preamble 8 symbols | | | | | | | | |
1297  * +---+---+---+---+---+---+---+---+
1298  *
1299  * Worst case Rx window timings
1300  *
1301  * TRxLate = DEFAULT_MIN_RX_SYMBOLS * tSymbol - RADIO_WAKEUP_TIME
1302  * TRxEarly = 8 - DEFAULT_MIN_RX_SYMBOLS * tSymbol - RxWindowTimeout - RADIO_WAKEUP_TIME
1303  *
1304  * TRxLate - TRxEarly = 2 * DEFAULT_SYSTEM_MAX_RX_ERROR
1305  *
1306  * RxOffset = ( TRxLate + TRxEarly ) / 2
1307  *
1308  * RxWindowTimeout = ( 2 * DEFAULT_MIN_RX_SYMBOLS - 8 ) * tSymbol + 2 * DEFAULT_SYSTEM_MAX_RX_ERROR
1309  * RxOffset = 4 * tSymbol - RxWindowTimeout / 2 - RADIO_WAKE_UP_TIME
1310  *
1311  * Minimal value of RxWindowTimeout must be 5 symbols which implies that the system always tolerates at least an error of 1.5 * tSymbol
1312  */
1328  void RegionComputeRxWindowParameters(LoRaMacRegion_t region, int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams);
1329 
1343  bool RegionTxConfig(LoRaMacRegion_t region, TxConfigParams_t *txConfig, int8_t *txPower, TimerTime_t *txTimeOnAir);
1344 
1362  uint8_t RegionLinkAdrReq(LoRaMacRegion_t region, LinkAdrReqParams_t *linkAdrReq, int8_t *drOut, int8_t *txPowOut, uint8_t *nbRepOut, uint8_t *nbBytesParsed);
1363 
1373  uint8_t RegionRxParamSetupReq(LoRaMacRegion_t region, RxParamSetupReqParams_t *rxParamSetupReq);
1374 
1384  uint8_t RegionNewChannelReq(LoRaMacRegion_t region, NewChannelReqParams_t *newChannelReq);
1385 
1397  int8_t RegionTxParamSetupReq(LoRaMacRegion_t region, TxParamSetupReqParams_t *txParamSetupReq);
1398 
1408  uint8_t RegionDlChannelReq(LoRaMacRegion_t region, DlChannelReqParams_t *dlChannelReq);
1409 
1419  int8_t RegionAlternateDr(LoRaMacRegion_t region, AlternateDrParams_t *alternateDr);
1420 
1428  void RegionCalcBackOff(LoRaMacRegion_t region, CalcBackOffParams_t *calcBackOff);
1429 
1446  bool RegionNextChannel(LoRaMacRegion_t region, NextChanParams_t *nextChanParams, uint8_t *channel, TimerTime_t *time, TimerTime_t *aggregatedTimeOff);
1447 
1458 
1468  bool RegionChannelsRemove(LoRaMacRegion_t region, ChannelRemoveParams_t *channelRemove);
1469 
1477  void RegionSetContinuousWave(LoRaMacRegion_t region, ContinuousWaveParams_t *continuousWave);
1478 
1492  uint8_t RegionApplyDrOffset(LoRaMacRegion_t region, uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset);
1493 
1495 };
1496 #endif // __REGION_H__
sGetPhyParams::DownlinkDwellTime
uint8_t DownlinkDwellTime
Definition: Region.h:742
sAdrNextParams::AdrAckCounter
uint32_t AdrAckCounter
Definition: Region.h:846
eChannelsMask
eChannelsMask
Definition: Region.h:683
AdrNextParams_t
struct sAdrNextParams AdrNextParams_t
sChannelRemoveParams
Definition: Region.h:1134
sContinuousWaveParams::Datarate
int8_t Datarate
Definition: Region.h:1153
sTxParamSetupReqParams::MaxEirp
uint8_t MaxEirp
Definition: Region.h:1028
PHY_MAX_NB_CHANNELS
@ PHY_MAX_NB_CHANNELS
Definition: Region.h:626
sAdrNextParams::Datarate
int8_t Datarate
Definition: Region.h:850
CHANNELS_DEFAULT_MASK
@ CHANNELS_DEFAULT_MASK
Definition: Region.h:691
sChannelAddParams::ChannelId
uint8_t ChannelId
Definition: Region.h:1127
LoRaMacStatus_t
enum eLoRaMacStatus LoRaMacStatus_t
GetPhyParams_t
struct sGetPhyParams GetPhyParams_t
sTxConfigParams
Definition: Region.h:916
sContinuousWaveParams::AntennaGain
float AntennaGain
Definition: Region.h:1165
InitType_t
enum eInitType InitType_t
sSetBandTxDoneParams
Definition: Region.h:749
uVerifyParams::NbJoinTrials
uint8_t NbJoinTrials
Definition: Region.h:779
RegionApplyDrOffset
uint8_t RegionApplyDrOffset(LoRaMacRegion_t region, uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset)
Computes new datarate according to the given offset.
Definition: Region.cpp:1487
sCalcBackOffParams::LastTxIsJoinRequest
bool LastTxIsJoinRequest
Definition: Region.h:1069
sRxParamSetupReqParams
Definition: Region.h:982
sTxParamSetupReqParams::UplinkDwellTime
uint8_t UplinkDwellTime
Definition: Region.h:1020
INIT_TYPE_INIT
@ INIT_TYPE_INIT
Definition: Region.h:670
RegionTxConfig
bool RegionTxConfig(LoRaMacRegion_t region, TxConfigParams_t *txConfig, int8_t *txPower, TimerTime_t *txTimeOnAir)
TX configuration.
Definition: Region.cpp:1235
sRxConfigParams::Frequency
uint32_t Frequency
Definition: Region.h:885
PHY_DEF_DR1_OFFSET
@ PHY_DEF_DR1_OFFSET
Definition: Region.h:606
uVerifyParams
Definition: Region.h:767
sRxConfigParams::Window
bool Window
Definition: Region.h:909
PHY_MAX_PAYLOAD_REPEATER
@ PHY_MAX_PAYLOAD_REPEATER
Definition: Region.h:570
sRxConfigParams
Definition: Region.h:865
PHY_RECEIVE_DELAY2
@ PHY_RECEIVE_DELAY2
Definition: Region.h:586
PHY_MAX_PAYLOAD
@ PHY_MAX_PAYLOAD
Definition: Region.h:566
sAdrNextParams::UpdateChanMask
bool UpdateChanMask
Definition: Region.h:838
sRxConfigParams::RepeaterSupport
bool RepeaterSupport
Definition: Region.h:901
RegionTxParamSetupReq
int8_t RegionTxParamSetupReq(LoRaMacRegion_t region, TxParamSetupReqParams_t *txParamSetupReq)
The function processes a TX ParamSetup Request.
Definition: Region.cpp:1319
sTxConfigParams::MaxEirp
float MaxEirp
Definition: Region.h:932
sAlternateDrParams
Definition: Region.h:1050
sNewChannelReqParams
Definition: Region.h:1001
NextChanParams_t
struct sNextChanParams NextChanParams_t
sTxParamSetupReqParams::DownlinkDwellTime
uint8_t DownlinkDwellTime
Definition: Region.h:1024
sChannelParams
Definition: LoRaMac.h:170
PHY_CHANNELS
@ PHY_CHANNELS
Definition: Region.h:630
LinkAdrReqParams_t
struct sLinkAdrReqParams LinkAdrReqParams_t
uVerifyParams::DatarateParams
struct uVerifyParams::sDatarateParams DatarateParams
PHY_JOIN_ACCEPT_DELAY2
@ PHY_JOIN_ACCEPT_DELAY2
Definition: Region.h:594
Commissioning.h
sGetPhyParams::UplinkDwellTime
uint8_t UplinkDwellTime
Definition: Region.h:736
sContinuousWaveParams
Definition: Region.h:1145
PHY_MAX_RX_DR
@ PHY_MAX_RX_DR
Definition: Region.h:538
RegionAdrNext
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.
Definition: Region.cpp:1172
sRxConfigParams::DrOffset
int8_t DrOffset
Definition: Region.h:881
sAdrNextParams
Definition: Region.h:834
RegionGetPhyParam
PhyParam_t RegionGetPhyParam(LoRaMacRegion_t region, GetPhyParams_t *getPhy)
The function gets a value of a specific phy attribute.
Definition: Region.cpp:1045
sCalcBackOffParams::DutyCycleEnabled
bool DutyCycleEnabled
Definition: Region.h:1073
sAdrNextParams::UplinkDwellTime
uint8_t UplinkDwellTime
Definition: Region.h:858
PHY_MAX_TX_DR
@ PHY_MAX_TX_DR
Definition: Region.h:542
sRxConfigParams::WindowTimeout
uint32_t WindowTimeout
Definition: Region.h:889
sNextChanParams::LastAggrTx
TimerTime_t LastAggrTx
Definition: Region.h:1100
CalcBackOffParams_t
struct sCalcBackOffParams CalcBackOffParams_t
sTxConfigParams::Datarate
int8_t Datarate
Definition: Region.h:924
sRxConfigParams::DownlinkDwellTime
uint8_t DownlinkDwellTime
Definition: Region.h:897
sContinuousWaveParams::TxPower
int8_t TxPower
Definition: Region.h:1157
RegionChannelsRemove
bool RegionChannelsRemove(LoRaMacRegion_t region, ChannelRemoveParams_t *channelRemove)
Removes a channel.
Definition: Region.cpp:1445
sSetBandTxDoneParams::Joined
bool Joined
Definition: Region.h:757
PhyParam_t
union uPhyParam PhyParam_t
sNextChanParams::DutyCycleEnabled
bool DutyCycleEnabled
Definition: Region.h:1112
sCalcBackOffParams
Definition: Region.h:1061
uPhyParam::Channels
ChannelParams_t * Channels
Definition: Region.h:713
RegionChannelAdd
LoRaMacStatus_t RegionChannelAdd(LoRaMacRegion_t region, ChannelAddParams_t *channelAdd)
Adds a channel.
Definition: Region.cpp:1424
PHY_ACK_TIMEOUT
@ PHY_ACK_TIMEOUT
Definition: Region.h:602
PHY_MAX_RX_WINDOW
@ PHY_MAX_RX_WINDOW
Definition: Region.h:578
sDlChannelReqParams::ChannelId
uint8_t ChannelId
Definition: Region.h:1039
RegionInitDefaults
void RegionInitDefaults(LoRaMacRegion_t region, InitType_t type)
Initializes the channels masks and the channels.
Definition: Region.cpp:1088
sApplyCFListParams
Definition: Region.h:804
PHY_TX_POWER
@ PHY_TX_POWER
Definition: Region.h:558
sTxParamSetupReqParams
Definition: Region.h:1016
sContinuousWaveParams::Timeout
uint16_t Timeout
Definition: Region.h:1169
PHY_MIN_RX_DR
@ PHY_MIN_RX_DR
Definition: Region.h:530
RegionCalcBackOff
void RegionCalcBackOff(LoRaMacRegion_t region, CalcBackOffParams_t *calcBackOff)
Calculates the back-off time.
Definition: Region.cpp:1382
sApplyCFListParams::Payload
uint8_t * Payload
Definition: Region.h:808
uVerifyParams::DutyCycle
bool DutyCycle
Definition: Region.h:775
PHY_RX_DR
@ PHY_RX_DR
Definition: Region.h:554
RegionAlternateDr
int8_t RegionAlternateDr(LoRaMacRegion_t region, AlternateDrParams_t *alternateDr)
Alternates the datarate of the channel for the join request.
Definition: Region.cpp:1361
RegionComputeRxWindowParameters
void RegionComputeRxWindowParameters(LoRaMacRegion_t region, int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams)
Definition: Region.cpp:1193
ePhyAttribute
ePhyAttribute
Definition: Region.h:526
uPhyParam::ChannelsMask
uint16_t * ChannelsMask
Definition: Region.h:709
sNextChanParams::Joined
bool Joined
Definition: Region.h:1108
sChanMaskSetParams
Definition: Region.h:819
sGetPhyParams::Attribute
PhyAttribute_t Attribute
Definition: Region.h:724
PHY_DUTY_CYCLE
@ PHY_DUTY_CYCLE
Definition: Region.h:574
sRxConfigParams::WindowOffset
int32_t WindowOffset
Definition: Region.h:893
sAdrNextParams::AdrEnabled
bool AdrEnabled
Definition: Region.h:842
RegionDlChannelReq
uint8_t RegionDlChannelReq(LoRaMacRegion_t region, DlChannelReqParams_t *dlChannelReq)
The function processes a DlChannel Request.
Definition: Region.cpp:1340
DlChannelReqParams_t
struct sDlChannelReqParams DlChannelReqParams_t
RegionVerify
bool RegionVerify(LoRaMacRegion_t region, VerifyParams_t *verify, PhyAttribute_t phyAttribute)
Verifies a parameter.
Definition: Region.cpp:1109
sTxConfigParams::AntennaGain
float AntennaGain
Definition: Region.h:936
RxParamSetupReqParams_t
struct sRxParamSetupReqParams RxParamSetupReqParams_t
sTxConfigParams::PktLen
uint16_t PktLen
Definition: Region.h:940
PHY_DEF_DOWNLINK_DWELL_TIME
@ PHY_DEF_DOWNLINK_DWELL_TIME
Definition: Region.h:638
sDlChannelReqParams::Rx1Frequency
uint32_t Rx1Frequency
Definition: Region.h:1043
PHY_MAX_FCNT_GAP
@ PHY_MAX_FCNT_GAP
Definition: Region.h:598
sNextChanParams::AggrTimeOff
TimerTime_t AggrTimeOff
Definition: Region.h:1096
CHANNELS_MASK
@ CHANNELS_MASK
Definition: Region.h:687
PHY_RECEIVE_DELAY1
@ PHY_RECEIVE_DELAY1
Definition: Region.h:582
RegionRxConfig
bool RegionRxConfig(LoRaMacRegion_t region, RxConfigParams_t *rxConfig, int8_t *datarate)
Configuration of the RX windows.
Definition: Region.cpp:1214
ChannelAddParams_t
struct sChannelAddParams ChannelAddParams_t
ChannelRemoveParams_t
struct sChannelRemoveParams ChannelRemoveParams_t
TxParamSetupReqParams_t
struct sTxParamSetupReqParams TxParamSetupReqParams_t
ChanMaskSetParams_t
struct sChanMaskSetParams ChanMaskSetParams_t
RegionChanMaskSet
bool RegionChanMaskSet(LoRaMacRegion_t region, ChanMaskSetParams_t *chanMaskSet)
Sets a channels mask.
Definition: Region.cpp:1151
PHY_DEF_UPLINK_DWELL_TIME
@ PHY_DEF_UPLINK_DWELL_TIME
Definition: Region.h:634
PHY_DEF_RX2_FREQUENCY
@ PHY_DEF_RX2_FREQUENCY
Definition: Region.h:610
PHY_CHANNELS_MASK
@ PHY_CHANNELS_MASK
Definition: Region.h:618
PHY_DEF_NB_JOIN_TRIALS
@ PHY_DEF_NB_JOIN_TRIALS
Definition: Region.h:654
sRxConfigParams::Bandwidth
uint8_t Bandwidth
Definition: Region.h:877
ApplyCFListParams_t
struct sApplyCFListParams ApplyCFListParams_t
PHY_DEF_TX_DR
@ PHY_DEF_TX_DR
Definition: Region.h:550
PHY_TX_DR
@ PHY_TX_DR
Definition: Region.h:546
sChannelRemoveParams::ChannelId
uint8_t ChannelId
Definition: Region.h:1138
uVerifyParams::sDatarateParams::DownlinkDwellTime
uint8_t DownlinkDwellTime
Definition: Region.h:792
RegionLinkAdrReq
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.
Definition: Region.cpp:1256
PHY_DEF_MAX_EIRP
@ PHY_DEF_MAX_EIRP
Definition: Region.h:642
VerifyParams_t
union uVerifyParams VerifyParams_t
sNextChanParams
Definition: Region.h:1092
SetBandTxDoneParams_t
struct sSetBandTxDoneParams SetBandTxDoneParams_t
sSetBandTxDoneParams::LastTxDoneTime
TimerTime_t LastTxDoneTime
Definition: Region.h:761
uPhyParam
Definition: Region.h:697
uVerifyParams::TxPower
int8_t TxPower
Definition: Region.h:771
RegionSetBandTxDone
void RegionSetBandTxDone(LoRaMacRegion_t region, SetBandTxDoneParams_t *txDone)
Updates the last TX done parameters of the current channel.
Definition: Region.cpp:1067
RegionIsActive
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.
Definition: Region.cpp:1024
sRxParamSetupReqParams::Frequency
uint32_t Frequency
Definition: Region.h:994
sChanMaskSetParams::ChannelsMaskType
ChannelsMask_t ChannelsMaskType
Definition: Region.h:827
sTxConfigParams::TxPower
int8_t TxPower
Definition: Region.h:928
PHY_NEXT_LOWER_TX_DR
@ PHY_NEXT_LOWER_TX_DR
Definition: Region.h:658
uVerifyParams::sDatarateParams::Datarate
int8_t Datarate
Definition: Region.h:788
AlternateDrParams_t
struct sAlternateDrParams AlternateDrParams_t
ChannelsMask_t
enum eChannelsMask ChannelsMask_t
uVerifyParams::sDatarateParams::UplinkDwellTime
uint8_t UplinkDwellTime
Definition: Region.h:796
RegionSetContinuousWave
void RegionSetContinuousWave(LoRaMacRegion_t region, ContinuousWaveParams_t *continuousWave)
Sets the radio into continuous wave mode.
Definition: Region.cpp:1466
INIT_TYPE_RESTORE
@ INIT_TYPE_RESTORE
Definition: Region.h:674
PHY_NB_JOIN_TRIALS
@ PHY_NB_JOIN_TRIALS
Definition: Region.h:650
sChannelAddParams
Definition: Region.h:1119
sRxConfigParams::Datarate
int8_t Datarate
Definition: Region.h:873
RxConfigParams_t
struct sRxConfigParams RxConfigParams_t
sContinuousWaveParams::Channel
uint8_t Channel
Definition: Region.h:1149
RegionNextChannel
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.
Definition: Region.cpp:1403
NewChannelReqParams_t
struct sNewChannelReqParams NewChannelReqParams_t
sNewChannelReqParams::ChannelId
int8_t ChannelId
Definition: Region.h:1009
ContinuousWaveParams_t
struct sContinuousWaveParams ContinuousWaveParams_t
uPhyParam::Value
uint32_t Value
Definition: Region.h:701
sTxConfigParams::Channel
uint8_t Channel
Definition: Region.h:920
sRxConfigParams::RxContinuous
bool RxContinuous
Definition: Region.h:905
uVerifyParams::sDatarateParams
Definition: Region.h:784
sCalcBackOffParams::ElapsedTime
TimerTime_t ElapsedTime
Definition: Region.h:1081
sDlChannelReqParams
Definition: Region.h:1035
sGetPhyParams
Definition: Region.h:720
INIT_TYPE_APP_DEFAULTS
@ INIT_TYPE_APP_DEFAULTS
Definition: Region.h:679
PHY_DEF_RX2_DR
@ PHY_DEF_RX2_DR
Definition: Region.h:614
sCalcBackOffParams::Joined
bool Joined
Definition: Region.h:1065
PHY_JOIN_ACCEPT_DELAY1
@ PHY_JOIN_ACCEPT_DELAY1
Definition: Region.h:590
sSetBandTxDoneParams::Channel
uint8_t Channel
Definition: Region.h:753
uPhyParam::fValue
float fValue
Definition: Region.h:705
sGetPhyParams::Datarate
int8_t Datarate
Definition: Region.h:730
sNewChannelReqParams::NewChannel
ChannelParams_t * NewChannel
Definition: Region.h:1005
PHY_DEF_ANTENNA_GAIN
@ PHY_DEF_ANTENNA_GAIN
Definition: Region.h:646
sRxParamSetupReqParams::Datarate
int8_t Datarate
Definition: Region.h:986
sNextChanParams::Datarate
int8_t Datarate
Definition: Region.h:1104
TxConfigParams_t
struct sTxConfigParams TxConfigParams_t
sRxParamSetupReqParams::DrOffset
int8_t DrOffset
Definition: Region.h:990
sContinuousWaveParams::MaxEirp
float MaxEirp
Definition: Region.h:1161
sApplyCFListParams::Size
uint8_t Size
Definition: Region.h:812
sRxConfigParams::Channel
uint8_t Channel
Definition: Region.h:869
RegionNewChannelReq
uint8_t RegionNewChannelReq(LoRaMacRegion_t region, NewChannelReqParams_t *newChannelReq)
The function processes a New Channel Request.
Definition: Region.cpp:1298
sCalcBackOffParams::TxTimeOnAir
TimerTime_t TxTimeOnAir
Definition: Region.h:1085
sCalcBackOffParams::Channel
uint8_t Channel
Definition: Region.h:1077
PHY_CHANNELS_DEFAULT_MASK
@ PHY_CHANNELS_DEFAULT_MASK
Definition: Region.h:622
sAlternateDrParams::NbTrials
uint16_t NbTrials
Definition: Region.h:1054
PhyAttribute_t
enum ePhyAttribute PhyAttribute_t
sChanMaskSetParams::ChannelsMaskIn
uint16_t * ChannelsMaskIn
Definition: Region.h:823
RegionRxParamSetupReq
uint8_t RegionRxParamSetupReq(LoRaMacRegion_t region, RxParamSetupReqParams_t *rxParamSetupReq)
The function processes a RX Parameter Setup Request.
Definition: Region.cpp:1277
TimerTime_t
uint32_t TimerTime_t
Timer time variable definition.
Definition: timer.h:68
LoRaMacRegion_t
enum eLoRaMacRegion_t LoRaMacRegion_t
PHY_DEF_TX_POWER
@ PHY_DEF_TX_POWER
Definition: Region.h:562
sAdrNextParams::TxPower
int8_t TxPower
Definition: Region.h:854
PHY_MIN_TX_DR
@ PHY_MIN_TX_DR
Definition: Region.h:534
RegionApplyCFList
void RegionApplyCFList(LoRaMacRegion_t region, ApplyCFListParams_t *applyCFList)
The function parses the input buffer and sets up the channels of the CF list.
Definition: Region.cpp:1130
sChannelAddParams::NewChannel
ChannelParams_t * NewChannel
Definition: Region.h:1123
eInitType
eInitType
Definition: Region.h:665