 |
SX126x-Arduino
1.2.1
|
Go to the documentation of this file.
35 #ifndef __REGION_IN865_H__
36 #define __REGION_IN865_H__
44 #define IN865_MAX_NB_CHANNELS 16
49 #define IN865_NUMB_DEFAULT_CHANNELS 3
54 #define IN865_NUMB_CHANNELS_CF_LIST 5
59 #define IN865_TX_MIN_DATARATE DR_0
64 #define IN865_TX_MAX_DATARATE DR_7
69 #define IN865_RX_MIN_DATARATE DR_0
74 #define IN865_RX_MAX_DATARATE DR_7
79 #define IN865_DEFAULT_DATARATE DR_0
84 #define IN865_MIN_RX1_DR_OFFSET 0
89 #define IN865_MAX_RX1_DR_OFFSET 7
94 #define IN865_DEFAULT_RX1_DR_OFFSET 0
99 #define IN865_MIN_TX_POWER TX_POWER_10
104 #define IN865_MAX_TX_POWER TX_POWER_0
109 #define IN865_DEFAULT_TX_POWER TX_POWER_0
114 #define IN865_DEFAULT_MAX_EIRP 30.0f
119 #define IN865_DEFAULT_ANTENNA_GAIN 2.15f
124 #define IN865_ADR_ACK_LIMIT 64
129 #define IN865_ADR_ACK_DELAY 32
134 #define IN865_DUTY_CYCLE_ENABLED 1
139 #define IN865_MAX_RX_WINDOW 3000
144 #define IN865_RECEIVE_DELAY1 1000
149 #define IN865_RECEIVE_DELAY2 2000
154 #define IN865_JOIN_ACCEPT_DELAY1 5000
159 #define IN865_JOIN_ACCEPT_DELAY2 6000
164 #define IN865_MAX_FCNT_GAP 16384
169 #define IN865_ACKTIMEOUT 2000
174 #define IN865_ACK_TIMEOUT_RND 1000
176 #if (IN865_DEFAULT_DATARATE > DR_5)
177 #error "A default DR higher than DR_5 may lead to connectivity loss."
183 #define IN865_RX_WND_2_FREQ 866550000
188 #define IN865_RX_WND_2_DR DR_2
193 #define IN865_MAX_NB_BANDS 1
199 #define IN865_BAND0 \
201 1, IN865_MAX_TX_POWER, 0, 0 \
210 865062500, 0, {((DR_5 << 4) | DR_0)}, 0 \
219 865402500, 0, {((DR_5 << 4) | DR_0)}, 0 \
228 865985000, 0, {((DR_5 << 4) | DR_0)}, 0 \
234 #define IN865_JOIN_CHANNELS (uint16_t)(LC(1) | LC(2) | LC(3))
244 static const uint32_t
BandwidthsIN865[] = {125000, 125000, 125000, 125000, 125000, 125000, 250000, 0};
493 #endif // __REGION_IN865_H__
uint8_t RegionIN865DlChannelReq(DlChannelReqParams_t *dlChannelReq)
The function processes a DlChannel Request.
void RegionIN865CalcBackOff(CalcBackOffParams_t *calcBackOff)
Calculates the back-off time.
Definition: Region.h:1134
static const uint8_t MaxPayloadOfDatarateIN865[]
Definition: RegionIN865.h:249
enum eLoRaMacStatus LoRaMacStatus_t
enum eInitType InitType_t
uint8_t RegionIN865LinkAdrReq(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:1050
Definition: Region.h:1001
LoRaMacStatus_t RegionIN865ChannelAdd(ChannelAddParams_t *channelAdd)
Adds a channel.
Definition: Region.h:1145
bool RegionIN865ChanMaskSet(ChanMaskSetParams_t *chanMaskSet)
Sets a channels mask.
Definition: Region.h:1061
void RegionIN865InitDefaults(InitType_t type)
Initializes the channels masks and the channels.
Definition: Region.h:1016
PhyParam_t RegionIN865GetPhyParam(GetPhyParams_t *getPhy)
The function gets a value of a specific phy attribute.
bool RegionIN865NextChannel(NextChanParams_t *nextChanParams, uint8_t *channel, TimerTime_t *time, TimerTime_t *aggregatedTimeOff)
Searches and set the next random available channel.
void RegionIN865SetBandTxDone(SetBandTxDoneParams_t *txDone)
Updates the last TX done parameters of the current channel.
bool RegionIN865AdrNext(AdrNextParams_t *adrNext, int8_t *drOut, int8_t *txPowOut, uint32_t *adrAckCounter)
Calculates the next datarate to set, when ADR is on or off.
uint8_t RegionIN865NewChannelReq(NewChannelReqParams_t *newChannelReq)
The function processes a Channel Request.
int8_t RegionIN865TxParamSetupReq(TxParamSetupReqParams_t *txParamSetupReq)
The function processes a TX ParamSetup Request.
Definition: Region.h:1092
void RegionIN865SetContinuousWave(ContinuousWaveParams_t *continuousWave)
Sets the radio into continuous wave mode.
uint8_t RegionIN865RxParamSetupReq(RxParamSetupReqParams_t *rxParamSetupReq)
The function processes a RX Parameter Setup Request.
Definition: Region.h:1119
void RegionIN865ComputeRxWindowParameters(int8_t datarate, uint8_t minRxSymbols, uint32_t rxError, RxConfigParams_t *rxConfigParams)
bool RegionIN865TxConfig(TxConfigParams_t *txConfig, int8_t *txPower, TimerTime_t *txTimeOnAir)
TX configuration.
void RegionIN865ApplyCFList(ApplyCFListParams_t *applyCFList)
The function parses the input buffer and sets up the channels of the CF list.
Definition: Region.h:1035
bool RegionIN865Verify(VerifyParams_t *verify, PhyAttribute_t phyAttribute)
Verifies a parameter.
static const uint8_t MaxPayloadOfDatarateRepeaterIN865[]
Definition: RegionIN865.h:254
uint8_t RegionIN865ApplyDrOffset(uint8_t downlinkDwellTime, int8_t dr, int8_t drOffset)
Computes new datarate according to the given offset.
bool RegionIN865ChannelsRemove(ChannelRemoveParams_t *channelRemove)
Removes a channel.
static const uint8_t DataratesIN865[]
Definition: RegionIN865.h:239
bool RegionIN865RxConfig(RxConfigParams_t *rxConfig, int8_t *datarate)
Configuration of the RX windows.
static const int8_t EffectiveRx1DrOffsetIN865[]
Definition: RegionIN865.h:259
int8_t RegionIN865AlternateDr(AlternateDrParams_t *alternateDr)
Alternates the datarate of the channel for the join request.
enum ePhyAttribute PhyAttribute_t
uint32_t TimerTime_t
Timer time variable definition.
Definition: timer.h:68
static const uint32_t BandwidthsIN865[]
Definition: RegionIN865.h:244