 |
SX126x-Arduino
1.2.1
|
Go to the documentation of this file.
35 #ifndef __REGION_US915_HYBRID_H__
36 #define __REGION_US915_HYBRID_H__
44 #define US915_HYBRID_MAX_NB_CHANNELS 72
49 #define US915_HYBRID_TX_MIN_DATARATE DR_0
54 #define US915_HYBRID_TX_MAX_DATARATE DR_4
59 #define US915_HYBRID_RX_MIN_DATARATE DR_8
64 #define US915_HYBRID_RX_MAX_DATARATE DR_13
69 #define US915_HYBRID_DEFAULT_DATARATE DR_0
74 #define US915_HYBRID_MIN_RX1_DR_OFFSET 0
79 #define US915_HYBRID_MAX_RX1_DR_OFFSET 3
84 #define US915_HYBRID_DEFAULT_RX1_DR_OFFSET 0
89 #define US915_HYBRID_MIN_TX_POWER TX_POWER_10
94 #define US915_HYBRID_MAX_TX_POWER TX_POWER_0
99 #define US915_HYBRID_DEFAULT_TX_POWER TX_POWER_0
104 #define US915_HYBRID_DEFAULT_MAX_ERP 30.0f
109 #define US915_HYBRID_ADR_ACK_LIMIT 64
114 #define US915_HYBRID_ADR_ACK_DELAY 32
119 #define US915_HYBRID_DUTY_CYCLE_ENABLED 0
124 #define US915_HYBRID_MAX_RX_WINDOW 3000
129 #define US915_HYBRID_RECEIVE_DELAY1 1000
134 #define US915_HYBRID_RECEIVE_DELAY2 2000
139 #define US915_HYBRID_JOIN_ACCEPT_DELAY1 5000
144 #define US915_HYBRID_JOIN_ACCEPT_DELAY2 6000
149 #define US915_HYBRID_MAX_FCNT_GAP 16384
154 #define US915_HYBRID_ACKTIMEOUT 2000
159 #define US915_HYBRID_ACK_TIMEOUT_RND 1000
164 #define US915_HYBRID_RX_WND_2_FREQ 923300000
169 #define US915_HYBRID_RX_WND_2_DR DR_8
174 #define US915_HYBRID_MAX_NB_BANDS 1
180 #define US915_HYBRID_BAND0 \
182 1, US915_HYBRID_MAX_TX_POWER, 0, 0 \
188 #define US915_HYBRID_FIRST_RX1_CHANNEL ((uint32_t)923300000)
193 #define US915_HYBRID_LAST_RX1_CHANNEL ((uint32_t)927500000)
198 #define US915_HYBRID_STEPWIDTH_RX1_CHANNEL ((uint32_t)600000)
203 static const uint8_t
DataratesUS915_HYBRID[] = {10, 9, 8, 7, 8, 0, 0, 0, 12, 11, 10, 9, 8, 7, 0, 0};
208 static const uint32_t
BandwidthsUS915_HYBRID[] = {125000, 125000, 125000, 125000, 500000, 0, 0, 0, 500000, 500000, 500000, 500000, 500000, 500000, 0, 0};
225 static const uint8_t
MaxPayloadOfDatarateUS915_HYBRID[] = {11, 53, 125, 242, 242, 0, 0, 0, 53, 129, 242, 242, 242, 242, 0, 0};
230 static const uint8_t
MaxPayloadOfDatarateRepeaterUS915_HYBRID[] = {11, 53, 125, 242, 242, 0, 0, 0, 33, 109, 222, 222, 222, 222, 0, 0};
464 #endif // __REGION_US915_HYBRID_H__
uint8_t RegionUS915HybridLinkAdrReq(LinkAdrReqParams_t *linkAdrReq, int8_t *drOut, int8_t *txPowOut, uint8_t *nbRepOut, uint8_t *nbBytesParsed)
The function processes a Link ADR Request.
int8_t RegionUS915HybridTxParamSetupReq(TxParamSetupReqParams_t *txParamSetupReq)
The function processes a TX ParamSetup Request.
Definition: Region.h:1134
void RegionUS915HybridComputeRxWindowParameters(int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams)
int8_t RegionUS915HybridAlternateDr(AlternateDrParams_t *alternateDr)
Alternates the datarate of the channel for the join request.
#define DR_8
Definition: Region.h:207
enum eLoRaMacStatus LoRaMacStatus_t
enum eInitType InitType_t
static const int8_t DatarateOffsetsUS915_HYBRID[5][4]
Definition: RegionUS915-Hybrid.h:213
bool RegionUS915HybridChannelsRemove(ChannelRemoveParams_t *channelRemove)
Removes a channel.
Definition: Region.h:1050
Definition: Region.h:1001
void RegionUS915HybridCalcBackOff(CalcBackOffParams_t *calcBackOff)
Calculates the back-off time.
Definition: Region.h:1145
bool RegionUS915HybridTxConfig(TxConfigParams_t *txConfig, int8_t *txPower, TimerTime_t *txTimeOnAir)
TX configuration.
Definition: Region.h:1061
#define DR_13
Definition: Region.h:287
static const uint8_t DataratesUS915_HYBRID[]
Definition: RegionUS915-Hybrid.h:203
bool RegionUS915HybridRxConfig(RxConfigParams_t *rxConfig, int8_t *datarate)
Configuration of the RX windows.
void RegionUS915HybridInitDefaults(InitType_t type)
Initializes the channels masks and the channels.
Definition: Region.h:1016
void RegionUS915HybridApplyCFList(ApplyCFListParams_t *applyCFList)
The function parses the input buffer and sets up the channels of the CF list.
#define DR_9
Definition: Region.h:223
bool RegionUS915HybridChanMaskSet(ChanMaskSetParams_t *chanMaskSet)
Sets a channels mask.
bool RegionUS915HybridNextChannel(NextChanParams_t *nextChanParams, uint8_t *channel, TimerTime_t *time, TimerTime_t *aggregatedTimeOff)
Searches and set the next random available channel.
#define DR_10
Definition: Region.h:239
#define DR_11
Definition: Region.h:255
uint8_t RegionUS915HybridRxParamSetupReq(RxParamSetupReqParams_t *rxParamSetupReq)
The function processes a RX Parameter Setup Request.
uint8_t RegionUS915HybridNewChannelReq(NewChannelReqParams_t *newChannelReq)
The function processes a Channel Request.
uint8_t RegionUS915HybridApplyDrOffset(uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset)
Computes new datarate according to the given offset.
Definition: Region.h:1092
static const uint8_t MaxPayloadOfDatarateUS915_HYBRID[]
Definition: RegionUS915-Hybrid.h:225
bool RegionUS915HybridAdrNext(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.h:1119
bool RegionUS915HybridVerify(VerifyParams_t *verify, PhyAttribute_t phyAttribute)
Verifies a parameter.
uint8_t RegionUS915HybridDlChannelReq(DlChannelReqParams_t *dlChannelReq)
The function processes a DlChannel Request.
static const uint8_t MaxPayloadOfDatarateRepeaterUS915_HYBRID[]
Definition: RegionUS915-Hybrid.h:230
Definition: Region.h:1035
LoRaMacStatus_t RegionUS915HybridChannelAdd(ChannelAddParams_t *channelAdd)
Adds a channel.
void RegionUS915HybridSetBandTxDone(SetBandTxDoneParams_t *txDone)
Updates the last TX done parameters of the current channel.
void RegionUS915HybridSetContinuousWave(ContinuousWaveParams_t *continuousWave)
Sets the radio into continuous wave mode.
enum ePhyAttribute PhyAttribute_t
uint32_t TimerTime_t
Timer time variable definition.
Definition: timer.h:68
PhyParam_t RegionUS915HybridGetPhyParam(GetPhyParams_t *getPhy)
The function gets a value of a specific phy attribute.
#define DR_12
Definition: Region.h:271
static const uint32_t BandwidthsUS915_HYBRID[]
Definition: RegionUS915-Hybrid.h:208