|
LoRaMAC
4.4.5
Documentation of the API
|
Go to the documentation of this file.
37 #ifndef __REGION_US915_H__
38 #define __REGION_US915_H__
50 #define US915_MAX_NB_CHANNELS 72
55 #define US915_TX_MIN_DATARATE DR_0
60 #define US915_TX_MAX_DATARATE DR_4
65 #define US915_RX_MIN_DATARATE DR_8
70 #define US915_RX_MAX_DATARATE DR_13
75 #define US915_DEFAULT_DATARATE DR_0
80 #define US915_MIN_RX1_DR_OFFSET 0
85 #define US915_MAX_RX1_DR_OFFSET 3
90 #define US915_MIN_TX_POWER TX_POWER_14
95 #define US915_MAX_TX_POWER TX_POWER_0
100 #define US915_DEFAULT_TX_POWER TX_POWER_0
105 #define US915_DEFAULT_MAX_ERP 30.0f
110 #define US915_DUTY_CYCLE_ENABLED 0
115 #define US915_MAX_RX_WINDOW 3000
120 #define US915_RX_WND_2_FREQ 923300000
125 #define US915_RX_WND_2_DR DR_8
130 #define US915_DEFAULT_UPLINK_DWELL_TIME 0
138 #define US915_BEACON_CHANNEL_FREQ 923300000
143 #define US915_BEACON_CHANNEL_STEPWIDTH 600000
148 #define US915_PING_SLOT_CHANNEL_FREQ 923300000
153 #define US915_BEACON_NB_CHANNELS 8
158 #define US915_BEACON_SIZE 23
163 #define US915_RFU1_SIZE 5
168 #define US915_RFU2_SIZE 3
173 #define US915_BEACON_CHANNEL_DR DR_8
178 #define US915_BEACON_CHANNEL_BW 2
183 #define US915_PING_SLOT_CHANNEL_DR DR_8
188 #define US915_MAX_NB_BANDS 1
194 #define US915_BAND0 { 1, US915_MAX_TX_POWER, 0, 0, 0, 0, 0 } // 100.0 %
199 #define US915_FIRST_RX1_CHANNEL ( (uint32_t) 923300000 )
204 #define US915_LAST_RX1_CHANNEL ( (uint32_t) 927500000 )
209 #define US915_STEPWIDTH_RX1_CHANNEL ( (uint32_t) 600000 )
214 static const uint8_t DataratesUS915[] = { 10, 9, 8, 7, 8, 0, 0, 0, 12, 11, 10, 9, 8, 7, 0, 0 };
219 static const uint32_t BandwidthsUS915[] = { 125000, 125000, 125000, 125000, 500000, 0, 0, 0, 500000, 500000, 500000, 500000, 500000, 500000, 0, 0 };
224 static const int8_t DatarateOffsetsUS915[5][4] =
236 static const uint8_t MaxPayloadOfDatarateUS915[] = { 11, 53, 125, 242, 242, 0, 0, 0, 53, 129, 242, 242, 242, 242, 0, 0 };
460 #endif // __REGION_US915_H__
uint8_t RegionUS915RxParamSetupReq(RxParamSetupReqParams_t *rxParamSetupReq)
The function processes a RX Parameter Setup Request.
void RegionUS915RxBeaconSetup(RxBeaconSetup_t *rxBeaconSetup, uint8_t *outDr)
Sets the radio into beacon reception mode.
AlternateDrType_t
Definition: Region.h:1264
void RegionUS915InitDefaults(InitDefaultsParams_t *params)
Initializes the channels masks and the channels.
#define DR_8
Definition: Region.h:223
LoRaMacStatus_t
Definition: LoRaMac.h:2153
PhyParam_t RegionUS915GetPhyParam(GetPhyParams_t *getPhy)
The function gets a value of a specific phy attribute.
void RegionUS915ApplyCFList(ApplyCFListParams_t *applyCFList)
The function parses the input buffer and sets up the channels of the CF list.
LoRaMacStatus_t RegionUS915ChannelAdd(ChannelAddParams_t *channelAdd)
Adds a channel.
Definition: Region.h:1064
Definition: Region.h:1344
Definition: Region.h:1279
Definition: Region.h:1375
bool RegionUS915ChanMaskSet(ChanMaskSetParams_t *chanMaskSet)
Sets a channels mask.
#define DR_13
Definition: Region.h:303
Definition: Region.h:1215
void RegionUS915SetContinuousWave(ContinuousWaveParams_t *continuousWave)
Sets the radio into continuous wave mode.
int8_t RegionUS915TxParamSetupReq(TxParamSetupReqParams_t *txParamSetupReq)
The function processes a TX ParamSetup Request.
bool RegionUS915ChannelsRemove(ChannelRemoveParams_t *channelRemove)
Removes a channel.
Definition: Region.h:1230
#define DR_9
Definition: Region.h:239
uint8_t RegionUS915ApplyDrOffset(uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset)
Computes new datarate according to the given offset.
PhyAttribute_t
Definition: Region.h:589
Definition: Region.h:1000
#define DR_10
Definition: Region.h:255
#define DR_11
Definition: Region.h:271
uint8_t RegionUS915LinkAdrReq(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:1318
void RegionUS915SetBandTxDone(SetBandTxDoneParams_t *txDone)
Updates the last TX done parameters of the current channel.
Definition: Region.h:1157
Definition: Region.h:1079
Definition: Region.h:1049
bool RegionUS915TxConfig(TxConfigParams_t *txConfig, int8_t *txPower, TimerTime_t *txTimeOnAir)
TX configuration.
Definition: Region.h:1249
Definition: Region.h:1126
bool RegionUS915Verify(VerifyParams_t *verify, PhyAttribute_t phyAttribute)
Verifies a parameter.
LoRaMacStatus_t RegionUS915NextChannel(NextChanParams_t *nextChanParams, uint8_t *channel, TimerTime_t *time, TimerTime_t *aggregatedTimeOff)
Searches and set the next random available channel.
uint8_t RegionUS915DlChannelReq(DlChannelReqParams_t *dlChannelReq)
The function processes a DlChannel Request.
uint8_t RegionUS915NewChannelReq(NewChannelReqParams_t *newChannelReq)
The function processes a Channel Request.
Definition: Region.h:1196
Definition: Region.h:1012
void RegionUS915ComputeRxWindowParameters(int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams)
bool RegionUS915RxConfig(RxConfigParams_t *rxConfig, int8_t *datarate)
Configuration of the RX windows.
int8_t RegionUS915AlternateDr(int8_t currentDr, AlternateDrType_t type)
Alternates the datarate of the channel for the join request.
void * RegionUS915GetNvmCtx(GetNvmCtxParams_t *params)
Returns a pointer to the internal context and its size.
#define DR_12
Definition: Region.h:287
Definition: Region.h:1333