|
LoRaMAC
4.4.5
Documentation of the API
|
Go to the documentation of this file.
37 #ifndef __REGION_AU915_H__
38 #define __REGION_AU915_H__
50 #define AU915_MAX_NB_CHANNELS 72
55 #define AU915_TX_MIN_DATARATE DR_0
60 #define AU915_TX_MAX_DATARATE DR_6
65 #define AU915_RX_MIN_DATARATE DR_8
70 #define AU915_RX_MAX_DATARATE DR_13
75 #define AU915_DEFAULT_DATARATE DR_2
81 #define AU915_DWELL_LIMIT_DATARATE DR_2
86 #define AU915_MIN_RX1_DR_OFFSET 0
91 #define AU915_MAX_RX1_DR_OFFSET 6
96 #define AU915_MIN_TX_POWER TX_POWER_14
101 #define AU915_MAX_TX_POWER TX_POWER_0
106 #define AU915_DEFAULT_TX_POWER TX_POWER_0
111 #define AU915_DEFAULT_UPLINK_DWELL_TIME 1
116 #define AU915_DEFAULT_MAX_EIRP 30.0f
121 #define AU915_DEFAULT_ANTENNA_GAIN 2.15f
126 #define AU915_DUTY_CYCLE_ENABLED 0
131 #define AU915_MAX_RX_WINDOW 3000
136 #define AU915_RX_WND_2_FREQ 923300000
141 #define AU915_RX_WND_2_DR DR_8
149 #define AU915_BEACON_CHANNEL_FREQ 923300000
154 #define AU915_BEACON_CHANNEL_STEPWIDTH 600000
159 #define AU915_PING_SLOT_CHANNEL_FREQ 923300000
164 #define AU915_BEACON_NB_CHANNELS 8
169 #define AU915_BEACON_SIZE 23
174 #define AU915_RFU1_SIZE 5
179 #define AU915_RFU2_SIZE 3
184 #define AU915_BEACON_CHANNEL_DR DR_8
189 #define AU915_BEACON_CHANNEL_BW 2
194 #define AU915_PING_SLOT_CHANNEL_DR DR_8
199 #define AU915_MAX_NB_BANDS 1
205 #define AU915_BAND0 { 1, AU915_MAX_TX_POWER, 0, 0, 0, 0, 0 } // 100.0 %
210 #define AU915_FIRST_RX1_CHANNEL ( (uint32_t) 923300000 )
215 #define AU915_LAST_RX1_CHANNEL ( (uint32_t) 927500000 )
220 #define AU915_STEPWIDTH_RX1_CHANNEL ( (uint32_t) 600000 )
225 static const uint8_t DataratesAU915[] = { 12, 11, 10, 9, 8, 7, 8, 0, 12, 11, 10, 9, 8, 7, 0, 0 };
230 static const uint32_t BandwidthsAU915[] = { 125000, 125000, 125000, 125000, 125000, 125000, 500000, 0, 500000, 500000, 500000, 500000, 500000, 500000, 0, 0 };
235 static const int8_t DatarateOffsetsAU915[7][6] =
250 static const uint8_t MaxPayloadOfDatarateDwell0AU915[] = { 51, 51, 51, 115, 242, 242, 242, 0, 53, 129, 242, 242, 242, 242 };
256 static const uint8_t MaxPayloadOfDatarateDwell1AU915[] = { 0, 0, 11, 53, 125, 242, 242, 0, 53, 129, 242, 242, 242, 242 };
478 #endif // __REGION_AU915_H__
AlternateDrType_t
Definition: Region.h:1264
bool RegionAU915ChannelsRemove(ChannelRemoveParams_t *channelRemove)
Removes a channel.
#define DR_8
Definition: Region.h:223
LoRaMacStatus_t
Definition: LoRaMac.h:2153
Definition: Region.h:1064
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.
Definition: Region.h:1344
Definition: Region.h:1279
Definition: Region.h:1375
void RegionAU915ComputeRxWindowParameters(int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams)
uint8_t RegionAU915DlChannelReq(DlChannelReqParams_t *dlChannelReq)
The function processes a DlChannel Request.
void * RegionAU915GetNvmCtx(GetNvmCtxParams_t *params)
Returns a pointer to the internal context and its size.
void RegionAU915InitDefaults(InitDefaultsParams_t *params)
Initializes the channels masks and the channels.
#define DR_13
Definition: Region.h:303
Definition: Region.h:1215
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:1230
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:239
PhyAttribute_t
Definition: Region.h:589
Definition: Region.h:1000
#define DR_10
Definition: Region.h:255
#define DR_11
Definition: Region.h:271
Definition: Region.h:1318
int8_t RegionAU915AlternateDr(int8_t currentDr, AlternateDrType_t type)
Alternates the datarate of the channel for the join request.
LoRaMacStatus_t RegionAU915NextChannel(NextChanParams_t *nextChanParams, uint8_t *channel, TimerTime_t *time, TimerTime_t *aggregatedTimeOff)
Searches and set the next random available channel.
Definition: Region.h:1157
Definition: Region.h:1079
void RegionAU915RxBeaconSetup(RxBeaconSetup_t *rxBeaconSetup, uint8_t *outDr)
Sets the radio into beacon reception mode.
Definition: Region.h:1049
void RegionAU915SetContinuousWave(ContinuousWaveParams_t *continuousWave)
Sets the radio into continuous wave mode.
Definition: Region.h:1249
LoRaMacStatus_t RegionAU915ChannelAdd(ChannelAddParams_t *channelAdd)
Adds a channel.
Definition: Region.h:1126
uint8_t RegionAU915RxParamSetupReq(RxParamSetupReqParams_t *rxParamSetupReq)
The function processes a RX Parameter Setup Request.
PhyParam_t RegionAU915GetPhyParam(GetPhyParams_t *getPhy)
The function gets a value of a specific phy attribute.
bool RegionAU915RxConfig(RxConfigParams_t *rxConfig, int8_t *datarate)
Configuration of the RX windows.
Definition: Region.h:1196
Definition: Region.h:1012
bool RegionAU915Verify(VerifyParams_t *verify, PhyAttribute_t phyAttribute)
Verifies a parameter.
#define DR_12
Definition: Region.h:287
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.
Definition: Region.h:1333