 |
SX126x-Arduino
|
Go to the documentation of this file.
35 #ifndef __REGION_CN470_H__
36 #define __REGION_CN470_H__
44 #define CN470_MAX_NB_CHANNELS 96
49 #define CN470_TX_MIN_DATARATE DR_0
54 #define CN470_TX_MAX_DATARATE DR_5
59 #define CN470_RX_MIN_DATARATE DR_0
64 #define CN470_RX_MAX_DATARATE DR_5
69 #define CN470_DEFAULT_DATARATE DR_0
74 #define CN470_MIN_RX1_DR_OFFSET 0
79 #define CN470_MAX_RX1_DR_OFFSET 3
84 #define CN470_DEFAULT_RX1_DR_OFFSET 0
89 #define CN470_MIN_TX_POWER TX_POWER_7
94 #define CN470_MAX_TX_POWER TX_POWER_0
99 #define CN470_DEFAULT_TX_POWER TX_POWER_0
104 #define CN470_DEFAULT_MAX_EIRP 19.15f
109 #define CN470_DEFAULT_ANTENNA_GAIN 2.15f
114 #define CN470_ADR_ACK_LIMIT 64
119 #define CN470_ADR_ACK_DELAY 32
124 #define CN470_DUTY_CYCLE_ENABLED 0
129 #define CN470_MAX_RX_WINDOW 3000
134 #define CN470_RECEIVE_DELAY1 1000
139 #define CN470_RECEIVE_DELAY2 2000
144 #define CN470_JOIN_ACCEPT_DELAY1 5000
149 #define CN470_JOIN_ACCEPT_DELAY2 6000
154 #define CN470_MAX_FCNT_GAP 16384
159 #define CN470_ACKTIMEOUT 2000
164 #define CN470_ACK_TIMEOUT_RND 1000
169 #define CN470_RX_WND_2_FREQ 505300000
174 #define CN470_RX_WND_2_DR DR_0
179 #define CN470_MAX_NB_BANDS 1
185 #define CN470_BAND0 \
187 1, CN470_MAX_TX_POWER, 0, 0 \
193 #define CN470_FIRST_RX1_CHANNEL ((uint32_t)500300000)
198 #define CN470_LAST_RX1_CHANNEL ((uint32_t)509700000)
203 #define CN470_STEPWIDTH_RX1_CHANNEL ((uint32_t)200000)
213 static const uint32_t
BandwidthsCN470[] = {125000, 125000, 125000, 125000, 125000, 125000};
457 #endif // __REGION_CN470_H__
void RegionCN470ComputeRxWindowParameters(int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams)
static const uint32_t BandwidthsCN470[]
Definition: RegionCN470.h:213
Definition: Region.h:1134
enum eLoRaMacStatus LoRaMacStatus_t
enum eInitType InitType_t
int8_t RegionCN470TxParamSetupReq(TxParamSetupReqParams_t *txParamSetupReq)
The function processes a TX ParamSetup Request.
void RegionCN470SetBandTxDone(SetBandTxDoneParams_t *txDone)
Updates the last TX done parameters of the current channel.
Definition: Region.h:1050
uint8_t RegionCN470NewChannelReq(NewChannelReqParams_t *newChannelReq)
The function processes a Channel Request.
Definition: Region.h:1001
Definition: Region.h:1145
bool RegionCN470ChanMaskSet(ChanMaskSetParams_t *chanMaskSet)
Sets a channels mask.
void RegionCN470SetContinuousWave(ContinuousWaveParams_t *continuousWave)
Sets the radio into continuous wave mode.
Definition: Region.h:1061
void RegionCN470CalcBackOff(CalcBackOffParams_t *calcBackOff)
Calculates the back-off time.
bool RegionCN470Verify(VerifyParams_t *verify, PhyAttribute_t phyAttribute)
Verifies a parameter.
uint8_t RegionCN470RxParamSetupReq(RxParamSetupReqParams_t *rxParamSetupReq)
The function processes a RX Parameter Setup Request.
static const uint8_t DataratesCN470[]
Definition: RegionCN470.h:208
Definition: Region.h:1016
static const uint8_t MaxPayloadOfDatarateRepeaterCN470[]
Definition: RegionCN470.h:223
LoRaMacStatus_t RegionCN470ChannelAdd(ChannelAddParams_t *channelAdd)
Adds a channel.
bool RegionCN470NextChannel(NextChanParams_t *nextChanParams, uint8_t *channel, TimerTime_t *time, TimerTime_t *aggregatedTimeOff)
Searches and set the next random available channel.
bool RegionCN470AdrNext(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 uint8_t MaxPayloadOfDatarateCN470[]
Definition: RegionCN470.h:218
bool RegionCN470TxConfig(TxConfigParams_t *txConfig, int8_t *txPower, TimerTime_t *txTimeOnAir)
TX configuration.
int8_t RegionCN470AlternateDr(AlternateDrParams_t *alternateDr)
Alternates the datarate of the channel for the join request.
uint8_t RegionCN470DlChannelReq(DlChannelReqParams_t *dlChannelReq)
The function processes a DlChannel Request.
uint8_t RegionCN470LinkAdrReq(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:1092
void RegionCN470ApplyCFList(ApplyCFListParams_t *applyCFList)
The function parses the input buffer and sets up the channels of the CF list.
void RegionCN470InitDefaults(InitType_t type)
Initializes the channels masks and the channels.
PhyParam_t RegionCN470GetPhyParam(GetPhyParams_t *getPhy)
The function gets a value of a specific phy attribute.
Definition: Region.h:1119
Definition: Region.h:1035
bool RegionCN470RxConfig(RxConfigParams_t *rxConfig, int8_t *datarate)
Configuration of the RX windows.
enum ePhyAttribute PhyAttribute_t
uint8_t RegionCN470ApplyDrOffset(uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset)
Computes new datarate according to the given offset.
uint32_t TimerTime_t
Timer time variable definition.
Definition: timer.h:68
bool RegionCN470ChannelsRemove(ChannelRemoveParams_t *channelRemove)
Removes a channel.