|
LoRaMAC
4.6.0
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_13
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 5
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 4
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 };
462 #endif // __REGION_AU915_H__
AlternateDrType_t
Definition: Region.h:756
bool RegionAU915ChannelsRemove(ChannelRemoveParams_t *channelRemove)
Removes a channel.
#define DR_8
Definition: LoRaMacTypes.h:205
LoRaMacStatus_t
Definition: LoRaMac.h:2345
uint8_t RegionAU915ApplyDrOffset(uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset)
Computes new datarate according to the given offset.
void RegionAU915ComputeRxWindowParameters(int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams)
#define DR_13
Definition: LoRaMacTypes.h:285
void RegionAU915InitDefaults(InitDefaultsParams_t *params)
Initializes the channels masks and the channels.
int8_t RegionAU915DlChannelReq(DlChannelReqParams_t *dlChannelReq)
The function processes a DlChannel Request.
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.
#define DR_12
Definition: LoRaMacTypes.h:269
void RegionAU915ApplyCFList(ApplyCFListParams_t *applyCFList)
The function parses the input buffer and sets up the channels of the CF list.
PhyAttribute_t
Definition: Region.h:85
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.
int8_t RegionAU915NewChannelReq(NewChannelReqParams_t *newChannelReq)
The function processes a Channel Request.
void RegionAU915RxBeaconSetup(RxBeaconSetup_t *rxBeaconSetup, uint8_t *outDr)
Sets the radio into beacon reception mode.
LoRaMacStatus_t RegionAU915ChannelAdd(ChannelAddParams_t *channelAdd)
Adds a channel.
uint8_t RegionAU915RxParamSetupReq(RxParamSetupReqParams_t *rxParamSetupReq)
The function processes a RX Parameter Setup Request.
#define DR_9
Definition: LoRaMacTypes.h:221
PhyParam_t RegionAU915GetPhyParam(GetPhyParams_t *getPhy)
The function gets a value of a specific phy attribute.
#define DR_10
Definition: LoRaMacTypes.h:237
#define DR_11
Definition: LoRaMacTypes.h:253
bool RegionAU915RxConfig(RxConfigParams_t *rxConfig, int8_t *datarate)
Configuration of the RX windows.
bool RegionAU915Verify(VerifyParams_t *verify, PhyAttribute_t phyAttribute)
Verifies a parameter.
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.