 |
SX126x-Arduino
1.3.0
|
Go to the documentation of this file.
35 #ifndef __REGION_AU915_H__
36 #define __REGION_AU915_H__
44 #define AU915_MAX_NB_CHANNELS 72
49 #define AU915_TX_MIN_DATARATE DR_0
54 #define AU915_TX_MAX_DATARATE DR_13
59 #define AU915_RX_MIN_DATARATE DR_8
64 #define AU915_RX_MAX_DATARATE DR_13
69 #define AU915_DEFAULT_DATARATE DR_2
74 #define AU915_MIN_RX1_DR_OFFSET 0
79 #define AU915_MAX_RX1_DR_OFFSET 6
84 #define AU915_DEFAULT_RX1_DR_OFFSET 0
89 #define AU915_MIN_TX_POWER TX_POWER_14
94 #define AU915_MAX_TX_POWER TX_POWER_0
99 #define AU915_DEFAULT_TX_POWER TX_POWER_0
104 #define AU915_DEFAULT_MAX_EIRP 30.0f
109 #define AU915_DEFAULT_ANTENNA_GAIN 2.15f
114 #define AU915_ADR_ACK_LIMIT 64
119 #define AU915_ADR_ACK_DELAY 32
124 #define AU915_DUTY_CYCLE_ENABLED 0
129 #define AU915_MAX_RX_WINDOW 3000
134 #define AU915_RECEIVE_DELAY1 1000
139 #define AU915_RECEIVE_DELAY2 2000
144 #define AU915_JOIN_ACCEPT_DELAY1 5000
149 #define AU915_JOIN_ACCEPT_DELAY2 6000
154 #define AU915_MAX_FCNT_GAP 16384
159 #define AU915_ACKTIMEOUT 2000
164 #define AU915_ACK_TIMEOUT_RND 1000
169 #define AU915_RX_WND_2_FREQ 923300000
174 #define AU915_RX_WND_2_DR DR_8
179 #define AU915_MAX_NB_BANDS 1
185 #define AU915_BAND0 \
187 1, AU915_MAX_TX_POWER, 0, 0 \
193 #define AU915_FIRST_RX1_CHANNEL ((uint32_t)923300000)
198 #define AU915_LAST_RX1_CHANNEL ((uint32_t)927500000)
203 #define AU915_STEPWIDTH_RX1_CHANNEL ((uint32_t)600000)
208 static const uint8_t
DataratesAU915[] = {12, 11, 10, 9, 8, 7, 8, 0, 12, 11, 10, 9, 8, 7, 0, 0};
213 static const uint32_t
BandwidthsAU915[] = {125000, 125000, 125000, 125000, 125000, 125000, 500000, 0, 500000, 500000, 500000, 500000, 500000, 500000, 0, 0};
232 static const uint8_t
MaxPayloadOfDatarateAU915[] = {51, 51, 51, 115, 242, 242, 242, 0, 53, 129, 242, 242, 242, 242};
237 static const uint8_t
MaxPayloadOfDatarateRepeaterAU915[] = {0, 0, 11, 53, 125, 242, 242, 0, 53, 129, 242, 242, 242, 242};
471 #endif // __REGION_AU915_H__
bool RegionAU915ChannelsRemove(ChannelRemoveParams_t *channelRemove)
Removes a channel.
void RegionAU915CalcBackOff(CalcBackOffParams_t *calcBackOff)
Calculates the back-off time.
Definition: Region.h:1134
#define DR_8
Definition: Region.h:207
enum eLoRaMacStatus LoRaMacStatus_t
enum eInitType InitType_t
Definition: Region.h:1050
Definition: Region.h:1001
uint8_t RegionAU915ApplyDrOffset(uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset)
Computes new datarate according to the given offset.
uint8_t RegionAU915NewChannelReq(NewChannelReqParams_t *newChannelReq)
The function processes a Channel Request.
void RegionAU915ComputeRxWindowParameters(int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams)
Definition: Region.h:1145
uint8_t RegionAU915DlChannelReq(DlChannelReqParams_t *dlChannelReq)
The function processes a DlChannel Request.
int8_t RegionAU915AlternateDr(AlternateDrParams_t *alternateDr)
Alternates the datarate of the channel for the join request.
static const int8_t DatarateOffsetsAU915[7][6]
Definition: RegionAU915.h:218
Definition: Region.h:1061
#define DR_13
Definition: Region.h:287
void RegionAU915InitDefaults(InitType_t type)
Initializes the channels masks and the channels.
void RegionAU915SetBandTxDone(SetBandTxDoneParams_t *txDone)
Updates the last TX done parameters of the current channel.
bool RegionAU915TxConfig(TxConfigParams_t *txConfig, int8_t *txPower, TimerTime_t *txTimeOnAir)
TX configuration.
bool RegionAU915ChanMaskSet(ChanMaskSetParams_t *chanMaskSet)
Sets a channels mask.
int8_t RegionAU915TxParamSetupReq(TxParamSetupReqParams_t *txParamSetupReq)
The function processes a TX ParamSetup Request.
Definition: Region.h:1016
void RegionAU915ApplyCFList(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
#define DR_10
Definition: Region.h:239
#define DR_11
Definition: Region.h:255
static const uint8_t MaxPayloadOfDatarateRepeaterAU915[]
Definition: RegionAU915.h:237
Definition: Region.h:1092
void RegionAU915SetContinuousWave(ContinuousWaveParams_t *continuousWave)
Sets the radio into continuous wave mode.
static const uint8_t MaxPayloadOfDatarateAU915[]
Definition: RegionAU915.h:232
LoRaMacStatus_t RegionAU915ChannelAdd(ChannelAddParams_t *channelAdd)
Adds a channel.
uint8_t RegionAU915RxParamSetupReq(RxParamSetupReqParams_t *rxParamSetupReq)
The function processes a RX Parameter Setup Request.
Definition: Region.h:1119
PhyParam_t RegionAU915GetPhyParam(GetPhyParams_t *getPhy)
The function gets a value of a specific phy attribute.
bool RegionAU915NextChannel(NextChanParams_t *nextChanParams, uint8_t *channel, TimerTime_t *time, TimerTime_t *aggregatedTimeOff)
Searches and set the next random available channel.
static const uint8_t DataratesAU915[]
Definition: RegionAU915.h:208
Definition: Region.h:1035
bool RegionAU915RxConfig(RxConfigParams_t *rxConfig, int8_t *datarate)
Configuration of the RX windows.
bool RegionAU915AdrNext(AdrNextParams_t *adrNext, int8_t *drOut, int8_t *txPowOut, uint32_t *adrAckCounter)
Calculates the next datarate to set, when ADR is on or off.
static const uint32_t BandwidthsAU915[]
Definition: RegionAU915.h:213
bool RegionAU915Verify(VerifyParams_t *verify, PhyAttribute_t phyAttribute)
Verifies a parameter.
enum ePhyAttribute PhyAttribute_t
uint32_t TimerTime_t
Timer time variable definition.
Definition: timer.h:68
#define DR_12
Definition: Region.h:271
uint8_t RegionAU915LinkAdrReq(LinkAdrReqParams_t *linkAdrReq, int8_t *drOut, int8_t *txPowOut, uint8_t *nbRepOut, uint8_t *nbBytesParsed)
The function processes a Link ADR Request.