LoRaMAC  4.4.5
Documentation of the API
Region.h
Go to the documentation of this file.
1 
52 #ifndef __REGION_H__
53 #define __REGION_H__
54 
55 #ifdef __cplusplus
56 extern "C"
57 {
58 #endif
59 
60 #include <stdint.h>
61 #include <stdbool.h>
62 #include "utilities.h"
63 #include "LoRaMac.h"
64 #include "timer.h"
65 #include "RegionCommon.h"
66 
70 #define LC( channelIndex ) ( uint16_t )( 1 << ( channelIndex - 1 ) )
71 
72 #ifndef REGION_VERSION
73 
76 #define REGION_VERSION 0x00010003
77 #endif
78 
79 
80 
95 #define DR_0 0
96 
111 #define DR_1 1
112 
127 #define DR_2 2
128 
143 #define DR_3 3
144 
159 #define DR_4 4
160 
175 #define DR_5 5
176 
191 #define DR_6 6
192 
207 #define DR_7 7
208 
223 #define DR_8 8
224 
239 #define DR_9 9
240 
255 #define DR_10 10
256 
271 #define DR_11 11
272 
287 #define DR_12 12
288 
303 #define DR_13 13
304 
319 #define DR_14 14
320 
335 #define DR_15 15
336 
337 
338 
353 #define TX_POWER_0 0
354 
369 #define TX_POWER_1 1
370 
385 #define TX_POWER_2 2
386 
401 #define TX_POWER_3 3
402 
417 #define TX_POWER_4 4
418 
433 #define TX_POWER_5 5
434 
449 #define TX_POWER_6 6
450 
465 #define TX_POWER_7 7
466 
481 #define TX_POWER_8 8
482 
497 #define TX_POWER_9 9
498 
513 #define TX_POWER_10 10
514 
529 #define TX_POWER_11 11
530 
545 #define TX_POWER_12 12
546 
561 #define TX_POWER_13 13
562 
577 #define TX_POWER_14 14
578 
582 #define TX_POWER_15 15
583 
584 
585 
589 typedef enum ePhyAttribute
590 {
827 
831 typedef enum eInitType
832 {
854 }InitType_t;
855 
856 typedef enum eChannelsMask
857 {
867 
871 typedef struct sBeaconFormat
872 {
876  uint8_t BeaconSize;
880  uint8_t Rfu1Size;
884  uint8_t Rfu2Size;
886 
890 typedef union uPhyParam
891 {
895  uint32_t Value;
899  float fValue;
903  uint16_t* ChannelsMask;
915  TimerTime_t DutyCycleTimePeriod;
916 }PhyParam_t;
917 
921 typedef struct sGetPhyParams
922 {
932  int8_t Datarate;
952  uint8_t Channel;
954 
958 typedef struct sSetBandTxDoneParams
959 {
963  uint8_t Channel;
967  bool Joined;
971  TimerTime_t LastTxDoneTime;
975  TimerTime_t LastTxAirTime;
981 
985 typedef struct sInitDefaultsParams
986 {
990  void* NvmCtx;
996 
1000 typedef struct sGetNvmCtxParams
1001 {
1005  size_t nvmCtxSize;
1007 
1008 
1012 typedef union uVerifyParams
1013 {
1017  uint32_t Frequency;
1021  int8_t TxPower;
1030  {
1034  int8_t Datarate;
1043  }DatarateParams;
1045 
1049 typedef struct sApplyCFListParams
1050 {
1054  uint8_t* Payload;
1058  uint8_t Size;
1060 
1064 typedef struct sChanMaskSetParams
1065 {
1069  uint16_t* ChannelsMaskIn;
1075 
1079 typedef struct sRxConfigParams
1080 {
1084  uint8_t Channel;
1088  int8_t Datarate;
1092  uint8_t Bandwidth;
1096  int8_t DrOffset;
1100  uint32_t Frequency;
1104  uint32_t WindowTimeout;
1108  int32_t WindowOffset;
1122 
1126 typedef struct sTxConfigParams
1127 {
1131  uint8_t Channel;
1135  int8_t Datarate;
1139  int8_t TxPower;
1143  float MaxEirp;
1151  uint16_t PktLen;
1153 
1157 typedef struct sLinkAdrReqParams
1158 {
1162  Version_t Version;
1166  uint8_t* Payload;
1170  uint8_t PayloadSize;
1190  uint8_t CurrentNbRep;
1192 
1196 typedef struct sRxParamSetupReqParams
1197 {
1201  int8_t Datarate;
1205  int8_t DrOffset;
1209  uint32_t Frequency;
1211 
1215 typedef struct sNewChannelReqParams
1216 {
1224  int8_t ChannelId;
1226 
1230 typedef struct sTxParamSetupReqParams
1231 {
1243  uint8_t MaxEirp;
1245 
1249 typedef struct sDlChannelReqParams
1250 {
1254  uint8_t ChannelId;
1258  uint32_t Rx1Frequency;
1260 
1264 typedef enum eAlternateDrType
1265 {
1275 
1279 typedef struct sNextChanParams
1280 {
1284  TimerTime_t AggrTimeOff;
1288  TimerTime_t LastAggrTx;
1292  int8_t Datarate;
1296  bool Joined;
1312  uint16_t PktLen;
1314 
1318 typedef struct sChannelAddParams
1319 {
1327  uint8_t ChannelId;
1329 
1333 typedef struct sChannelRemoveParams
1334 {
1338  uint8_t ChannelId;
1340 
1344 typedef struct sContinuousWaveParams
1345 {
1349  uint8_t Channel;
1353  int8_t Datarate;
1357  int8_t TxPower;
1361  float MaxEirp;
1369  uint16_t Timeout;
1371 
1375 typedef struct sRxBeaconSetupParams
1376 {
1380  uint16_t SymbolTimeout;
1384  uint32_t RxTime;
1388  uint32_t Frequency;
1390 
1391 
1392 
1401 bool RegionIsActive( LoRaMacRegion_t region );
1402 
1413 
1422 
1431 
1441 void* RegionGetNvmCtx( LoRaMacRegion_t region, GetNvmCtxParams_t* params );
1442 
1454 bool RegionVerify( LoRaMacRegion_t region, VerifyParams_t* verify, PhyAttribute_t phyAttribute );
1455 
1464 void RegionApplyCFList( LoRaMacRegion_t region, ApplyCFListParams_t* applyCFList );
1465 
1475 bool RegionChanMaskSet( LoRaMacRegion_t region, ChanMaskSetParams_t* chanMaskSet );
1476 
1488 bool RegionRxConfig( LoRaMacRegion_t region, RxConfigParams_t* rxConfig, int8_t* datarate );
1489 
1490 /*
1491  * Rx window precise timing
1492  *
1493  * For more details please consult the following document, chapter 3.1.2.
1494  * https://www.semtech.com/uploads/documents/SX1272_settings_for_LoRaWAN_v2.0.pdf
1495  * or
1496  * https://www.semtech.com/uploads/documents/SX1276_settings_for_LoRaWAN_v2.0.pdf
1497  *
1498  * Downlink start: T = Tx + 1s (+/- 20 us)
1499  * |
1500  * TRxEarly | TRxLate
1501  * | | |
1502  * | | +---+---+---+---+---+---+---+---+
1503  * | | | Latest Rx window |
1504  * | | +---+---+---+---+---+---+---+---+
1505  * | | |
1506  * +---+---+---+---+---+---+---+---+
1507  * | Earliest Rx window |
1508  * +---+---+---+---+---+---+---+---+
1509  * |
1510  * +---+---+---+---+---+---+---+---+
1511  *Downlink preamble 8 symbols | | | | | | | | |
1512  * +---+---+---+---+---+---+---+---+
1513  *
1514  * Worst case Rx window timings
1515  *
1516  * TRxLate = DEFAULT_MIN_RX_SYMBOLS * tSymbol - RADIO_WAKEUP_TIME
1517  * TRxEarly = 8 - DEFAULT_MIN_RX_SYMBOLS * tSymbol - RxWindowTimeout - RADIO_WAKEUP_TIME
1518  *
1519  * TRxLate - TRxEarly = 2 * DEFAULT_SYSTEM_MAX_RX_ERROR
1520  *
1521  * RxOffset = ( TRxLate + TRxEarly ) / 2
1522  *
1523  * RxWindowTimeout = ( 2 * DEFAULT_MIN_RX_SYMBOLS - 8 ) * tSymbol + 2 * DEFAULT_SYSTEM_MAX_RX_ERROR
1524  * RxOffset = 4 * tSymbol - RxWindowTimeout / 2 - RADIO_WAKE_UP_TIME
1525  *
1526  * Minimal value of RxWindowTimeout must be 5 symbols which implies that the system always tolerates at least an error of 1.5 * tSymbol
1527  */
1543 void RegionComputeRxWindowParameters( LoRaMacRegion_t region, int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams );
1544 
1558 bool RegionTxConfig( LoRaMacRegion_t region, TxConfigParams_t* txConfig, int8_t* txPower, TimerTime_t* txTimeOnAir );
1559 
1577 uint8_t RegionLinkAdrReq( LoRaMacRegion_t region, LinkAdrReqParams_t* linkAdrReq, int8_t* drOut, int8_t* txPowOut, uint8_t* nbRepOut, uint8_t* nbBytesParsed );
1578 
1588 uint8_t RegionRxParamSetupReq( LoRaMacRegion_t region, RxParamSetupReqParams_t* rxParamSetupReq );
1589 
1599 uint8_t RegionNewChannelReq( LoRaMacRegion_t region, NewChannelReqParams_t* newChannelReq );
1600 
1612 int8_t RegionTxParamSetupReq( LoRaMacRegion_t region, TxParamSetupReqParams_t* txParamSetupReq );
1613 
1623 uint8_t RegionDlChannelReq( LoRaMacRegion_t region, DlChannelReqParams_t* dlChannelReq );
1624 
1636 int8_t RegionAlternateDr( LoRaMacRegion_t region, int8_t currentDr, AlternateDrType_t type );
1637 
1652 LoRaMacStatus_t RegionNextChannel( LoRaMacRegion_t region, NextChanParams_t* nextChanParams, uint8_t* channel, TimerTime_t* time, TimerTime_t* aggregatedTimeOff );
1653 
1664 
1674 bool RegionChannelsRemove( LoRaMacRegion_t region, ChannelRemoveParams_t* channelRemove );
1675 
1683 void RegionSetContinuousWave( LoRaMacRegion_t region, ContinuousWaveParams_t* continuousWave );
1684 
1696 uint8_t RegionApplyDrOffset( LoRaMacRegion_t region, uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset );
1697 
1705 void RegionRxBeaconSetup( LoRaMacRegion_t region, RxBeaconSetup_t* rxBeaconSetup, uint8_t* outDr );
1706 
1712 Version_t RegionGetVersion( void );
1713 
1716 #ifdef __cplusplus
1717 }
1718 #endif
1719 
1720 #endif // __REGION_H__
AlternateDrType_t
AlternateDrType_t
Definition: Region.h:1264
ApplyCFListParams_t::Size
uint8_t Size
Definition: Region.h:1058
RxBeaconSetup_t::RxTime
uint32_t RxTime
Definition: Region.h:1384
PhyParam_t::BeaconFormat
BeaconFormat_t BeaconFormat
Definition: Region.h:911
NextChanParams_t::DutyCycleEnabled
bool DutyCycleEnabled
Definition: Region.h:1300
NextChanParams_t::LastAggrTx
TimerTime_t LastAggrTx
Definition: Region.h:1288
PHY_NEXT_LOWER_TX_DR
Definition: Region.h:731
PHY_PING_SLOT_WINDOW
Definition: Region.h:755
PHY_BEACON_CHANNEL_OFFSET
Definition: Region.h:805
GetPhyParams_t
Definition: Region.h:921
PHY_DEF_RX2_FREQUENCY
Definition: Region.h:691
PHY_MIN_TX_DR
Definition: Region.h:603
PHY_DEF_MAX_EIRP
Definition: Region.h:723
SetBandTxDoneParams_t::ElapsedTimeSinceStartUp
SysTime_t ElapsedTimeSinceStartUp
Definition: Region.h:979
NewChannelReqParams_t::NewChannel
ChannelParams_t * NewChannel
Definition: Region.h:1220
LoRaMacStatus_t
LoRaMacStatus_t
Definition: LoRaMac.h:2153
RxConfigParams_t::WindowOffset
int32_t WindowOffset
Definition: Region.h:1108
PHY_DEF_ADR_ACK_DELAY
Definition: Region.h:647
LinkAdrReqParams_t::CurrentNbRep
uint8_t CurrentNbRep
Definition: Region.h:1190
RegionApplyDrOffset
uint8_t RegionApplyDrOffset(LoRaMacRegion_t region, uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset)
Computes new datarate according to the given offset.
PHY_BEACON_WINDOW
Definition: Region.h:747
RegionGetNvmCtx
void * RegionGetNvmCtx(LoRaMacRegion_t region, GetNvmCtxParams_t *params)
Returns a pointer to the internal context and its size.
PHY_FREQUENCY
Definition: Region.h:595
INIT_TYPE_RESTORE_CTX
Definition: Region.h:853
RegionTxConfig
bool RegionTxConfig(LoRaMacRegion_t region, TxConfigParams_t *txConfig, int8_t *txPower, TimerTime_t *txTimeOnAir)
TX configuration.
CHANNELS_MASK
Definition: Region.h:861
PHY_BEACON_CHANNEL_FREQ
Definition: Region.h:789
PHY_DEF_TX_DR
Definition: Region.h:621
PHY_MAX_RX_WINDOW
Definition: Region.h:659
INIT_TYPE_DEFAULTS
Definition: Region.h:839
RxConfigParams_t::DrOffset
int8_t DrOffset
Definition: Region.h:1096
ALTERNATE_DR_RESTORE
Definition: Region.h:1273
PHY_BEACON_SYMBOL_TO_EXPANSION_FACTOR
Definition: Region.h:772
GetPhyParams_t::DownlinkDwellTime
uint8_t DownlinkDwellTime
Definition: Region.h:946
ChannelParams_t
Definition: LoRaMac.h:217
PHY_CHANNELS_MASK
Definition: Region.h:699
RegionTxParamSetupReq
int8_t RegionTxParamSetupReq(LoRaMacRegion_t region, TxParamSetupReqParams_t *txParamSetupReq)
The function processes a TX ParamSetup Request.
PHY_BEACON_INTERVAL
Definition: Region.h:735
ContinuousWaveParams_t::Timeout
uint16_t Timeout
Definition: Region.h:1369
PHY_RECEIVE_DELAY2
Definition: Region.h:667
ChanMaskSetParams_t
Definition: Region.h:1064
GetPhyParams_t::Datarate
int8_t Datarate
Definition: Region.h:932
LinkAdrReqParams_t::CurrentTxPower
int8_t CurrentTxPower
Definition: Region.h:1186
PhyParam_t::Channels
ChannelParams_t * Channels
Definition: Region.h:907
BeaconFormat_t::Rfu2Size
uint8_t Rfu2Size
Definition: Region.h:884
PHY_ACK_TIMEOUT
Definition: Region.h:683
LinkAdrReqParams_t::PayloadSize
uint8_t PayloadSize
Definition: Region.h:1170
ContinuousWaveParams_t
Definition: Region.h:1344
NextChanParams_t
Definition: Region.h:1279
INIT_TYPE_ACTIVATE_DEFAULT_CHANNELS
Definition: Region.h:849
RxBeaconSetup_t
Definition: Region.h:1375
GetPhyParams_t::Channel
uint8_t Channel
Definition: Region.h:952
RegionGetVersion
Version_t RegionGetVersion(void)
Gets the version of the regional parameters implementation.
RegionGetPhyParam
PhyParam_t RegionGetPhyParam(LoRaMacRegion_t region, GetPhyParams_t *getPhy)
The function gets a value of a specific phy attribute.
TxConfigParams_t::MaxEirp
float MaxEirp
Definition: Region.h:1143
PHY_PING_SLOT_NB_CHANNELS
Definition: Region.h:817
LoRaMacRegion_t
LoRaMacRegion_t
Definition: LoRaMac.h:2268
PHY_MIN_RX_DR
Definition: Region.h:599
GetPhyParams_t::UplinkDwellTime
uint8_t UplinkDwellTime
Definition: Region.h:939
RegionChannelsRemove
bool RegionChannelsRemove(LoRaMacRegion_t region, ChannelRemoveParams_t *channelRemove)
Removes a channel.
InitType_t
InitType_t
Definition: Region.h:831
VerifyParams_t::DutyCycle
bool DutyCycle
Definition: Region.h:1025
PHY_DEF_ANTENNA_GAIN
Definition: Region.h:727
CHANNELS_DEFAULT_MASK
Definition: Region.h:865
PHY_PING_SLOT_SYMBOL_TO_EXPANSION_MAX
Definition: Region.h:767
PHY_MAX_FCNT_GAP
Definition: Region.h:679
PHY_BEACON_NB_CHANNELS
Definition: Region.h:801
RegionChannelAdd
LoRaMacStatus_t RegionChannelAdd(LoRaMacRegion_t region, ChannelAddParams_t *channelAdd)
Adds a channel.
NewChannelReqParams_t
Definition: Region.h:1215
TxConfigParams_t::PktLen
uint16_t PktLen
Definition: Region.h:1151
PHY_TX_DR
Definition: Region.h:617
InitDefaultsParams_t::Type
InitType_t Type
Definition: Region.h:994
PHY_BEACON_DELAY_BEACON_TIMING_ANS
Definition: Region.h:785
PHY_BEACON_WINDOW_SLOTS
Definition: Region.h:751
TxParamSetupReqParams_t
Definition: Region.h:1230
VerifyParams_t::Frequency
uint32_t Frequency
Definition: Region.h:1017
DlChannelReqParams_t::ChannelId
uint8_t ChannelId
Definition: Region.h:1254
PHY_PING_SLOT_SYMBOL_TO_EXPANSION_FACTOR
Definition: Region.h:777
RegionComputeRxWindowParameters
void RegionComputeRxWindowParameters(LoRaMacRegion_t region, int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams)
DlChannelReqParams_t::Rx1Frequency
uint32_t Rx1Frequency
Definition: Region.h:1258
BeaconFormat_t::Rfu1Size
uint8_t Rfu1Size
Definition: Region.h:880
GetPhyParams_t::Attribute
PhyAttribute_t Attribute
Definition: Region.h:926
BeaconFormat_t
Definition: Region.h:871
RegionRxBeaconSetup
void RegionRxBeaconSetup(LoRaMacRegion_t region, RxBeaconSetup_t *rxBeaconSetup, uint8_t *outDr)
Sets the radio into beacon reception mode.
RegionDlChannelReq
uint8_t RegionDlChannelReq(LoRaMacRegion_t region, DlChannelReqParams_t *dlChannelReq)
The function processes a DlChannel Request.
PHY_CHANNELS_DEFAULT_MASK
Definition: Region.h:703
PHY_PING_SLOT_CHANNEL_FREQ
Definition: Region.h:809
PhyAttribute_t
PhyAttribute_t
Definition: Region.h:589
NextChanParams_t::LastTxIsJoinRequest
bool LastTxIsJoinRequest
Definition: Region.h:1308
LinkAdrReqParams_t::Version
Version_t Version
Definition: Region.h:1162
PHY_JOIN_ACCEPT_DELAY1
Definition: Region.h:671
RegionVerify
bool RegionVerify(LoRaMacRegion_t region, VerifyParams_t *verify, PhyAttribute_t phyAttribute)
Verifies a parameter.
PHY_SF_FROM_DR
Definition: Region.h:821
PHY_DEF_UPLINK_DWELL_TIME
Definition: Region.h:715
VerifyParams_t::TxPower
int8_t TxPower
Definition: Region.h:1021
PHY_MAX_PAYLOAD
Definition: Region.h:651
RegionRxConfig
bool RegionRxConfig(LoRaMacRegion_t region, RxConfigParams_t *rxConfig, int8_t *datarate)
Configuration of the RX windows.
GetNvmCtxParams_t
Definition: Region.h:1000
PHY_PING_SLOT_CHANNEL_DR
Definition: Region.h:813
SetBandTxDoneParams_t::LastTxDoneTime
TimerTime_t LastTxDoneTime
Definition: Region.h:971
VerifyParams_t::sDatarateParams
Definition: Region.h:1029
RegionChanMaskSet
bool RegionChanMaskSet(LoRaMacRegion_t region, ChanMaskSetParams_t *chanMaskSet)
Sets a channels mask.
RegionInitDefaults
void RegionInitDefaults(LoRaMacRegion_t region, InitDefaultsParams_t *params)
Initializes the channels masks and the channels.
InitDefaultsParams_t::NvmCtx
void * NvmCtx
Definition: Region.h:990
PhyParam_t::DutyCycleTimePeriod
TimerTime_t DutyCycleTimePeriod
Definition: Region.h:915
ChannelAddParams_t
Definition: Region.h:1318
PHY_BEACON_SYMBOL_TO_DEFAULT
Definition: Region.h:759
RegionAlternateDr
int8_t RegionAlternateDr(LoRaMacRegion_t region, int8_t currentDr, AlternateDrType_t type)
Alternates the datarate of the channel for the join request.
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.
RxConfigParams_t::WindowTimeout
uint32_t WindowTimeout
Definition: Region.h:1104
RxConfigParams_t
Definition: Region.h:1079
LoRaMac.h
LoRa MAC layer implementation.
TxParamSetupReqParams_t::MaxEirp
uint8_t MaxEirp
Definition: Region.h:1243
RegionSetBandTxDone
void RegionSetBandTxDone(LoRaMacRegion_t region, SetBandTxDoneParams_t *txDone)
Updates the last TX done parameters of the current channel.
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.
ApplyCFListParams_t
Definition: Region.h:1049
BeaconFormat_t::BeaconSize
uint8_t BeaconSize
Definition: Region.h:876
DlChannelReqParams_t
Definition: Region.h:1249
PHY_BEACON_GUARD
Definition: Region.h:743
ChannelsMask_t
ChannelsMask_t
Definition: Region.h:856
PHY_JOIN_ACCEPT_DELAY2
Definition: Region.h:675
PHY_TX_POWER
Definition: Region.h:635
RegionSetContinuousWave
void RegionSetContinuousWave(LoRaMacRegion_t region, ContinuousWaveParams_t *continuousWave)
Sets the radio into continuous wave mode.
PHY_RECEIVE_DELAY1
Definition: Region.h:663
TxConfigParams_t
Definition: Region.h:1126
TxConfigParams_t::AntennaGain
float AntennaGain
Definition: Region.h:1147
NextChanParams_t::AggrTimeOff
TimerTime_t AggrTimeOff
Definition: Region.h:1284
PHY_DEF_RX2_DR
Definition: Region.h:695
PhyParam_t::Value
uint32_t Value
Definition: Region.h:895
PHY_MAX_TX_POWER
Definition: Region.h:630
PhyParam_t::ChannelsMask
uint16_t * ChannelsMask
Definition: Region.h:903
PHY_CHANNELS
Definition: Region.h:711
PhyParam_t::fValue
float fValue
Definition: Region.h:899
SetBandTxDoneParams_t::Joined
bool Joined
Definition: Region.h:967
RxBeaconSetup_t::SymbolTimeout
uint16_t SymbolTimeout
Definition: Region.h:1380
PHY_MAX_RX_DR
Definition: Region.h:607
RxConfigParams_t::Bandwidth
uint8_t Bandwidth
Definition: Region.h:1092
ApplyCFListParams_t::Payload
uint8_t * Payload
Definition: Region.h:1054
RegionNextChannel
LoRaMacStatus_t RegionNextChannel(LoRaMacRegion_t region, NextChanParams_t *nextChanParams, uint8_t *channel, TimerTime_t *time, TimerTime_t *aggregatedTimeOff)
Searches and set the next random available channel.
PHY_DEF_ADR_ACK_LIMIT
Definition: Region.h:643
PHY_MAX_NB_CHANNELS
Definition: Region.h:707
INIT_TYPE_RESET_TO_DEFAULT_CHANNELS
Definition: Region.h:844
ChanMaskSetParams_t::ChannelsMaskIn
uint16_t * ChannelsMaskIn
Definition: Region.h:1069
PHY_MAX_TX_DR
Definition: Region.h:611
InitDefaultsParams_t
Definition: Region.h:985
PHY_RX_DR
Definition: Region.h:626
SetBandTxDoneParams_t
Definition: Region.h:958
PHY_DEF_TX_POWER
Definition: Region.h:639
RxConfigParams_t::RxContinuous
bool RxContinuous
Definition: Region.h:1116
PHY_DUTY_CYCLE
Definition: Region.h:655
RxParamSetupReqParams_t
Definition: Region.h:1196
VerifyParams_t
Definition: Region.h:1012
PhyParam_t
Definition: Region.h:890
NewChannelReqParams_t::ChannelId
int8_t ChannelId
Definition: Region.h:1224
LoRaMacRxSlot_t
LoRaMacRxSlot_t
Definition: LoRaMac.h:259
GetNvmCtxParams_t::nvmCtxSize
size_t nvmCtxSize
Definition: Region.h:1005
PHY_DEF_DOWNLINK_DWELL_TIME
Definition: Region.h:719
LinkAdrReqParams_t::AdrEnabled
bool AdrEnabled
Definition: Region.h:1178
PHY_BEACON_CHANNEL_DR
Definition: Region.h:797
RegionNewChannelReq
uint8_t RegionNewChannelReq(LoRaMacRegion_t region, NewChannelReqParams_t *newChannelReq)
The function processes a New Channel Request.
PHY_MAX_BEACON_LESS_PERIOD
Definition: Region.h:781
PHY_BEACON_FORMAT
Definition: Region.h:793
PHY_BEACON_SYMBOL_TO_EXPANSION_MAX
Definition: Region.h:763
LinkAdrReqParams_t::CurrentDatarate
int8_t CurrentDatarate
Definition: Region.h:1182
RxConfigParams_t::RxSlot
LoRaMacRxSlot_t RxSlot
Definition: Region.h:1120
PHY_BEACON_RESERVED
Definition: Region.h:739
SetBandTxDoneParams_t::LastTxAirTime
TimerTime_t LastTxAirTime
Definition: Region.h:975
RegionRxParamSetupReq
uint8_t RegionRxParamSetupReq(LoRaMacRegion_t region, RxParamSetupReqParams_t *rxParamSetupReq)
The function processes a RX Parameter Setup Request.
RegionCommon.h
Region independent implementations which are common to all regions.
ALTERNATE_DR
Definition: Region.h:1269
PHY_DEF_DR1_OFFSET
Definition: Region.h:687
RegionApplyCFList
void RegionApplyCFList(LoRaMacRegion_t region, ApplyCFListParams_t *applyCFList)
The function parses the input buffer and sets up the channels of the CF list.
PHY_BW_FROM_DR
Definition: Region.h:825
ChannelRemoveParams_t
Definition: Region.h:1333
ChanMaskSetParams_t::ChannelsMaskType
ChannelsMask_t ChannelsMaskType
Definition: Region.h:1073