|
LoRaMAC
4.6.0
Documentation of the API
|
Go to the documentation of this file.
33 #ifndef __REGION_CN470_A20_H__
34 #define __REGION_CN470_A20_H__
47 #define CN470_A20_CHANNELS_MASK_SIZE 4
53 #define CN470_A20_JOIN_ACCEPT_LIST_SIZE 4
60 #define CN470_A20_BEACON_NB_CHANNELS 8
67 #define CN470_A20_PING_SLOT_NB_CHANNELS 8
73 #define CN470_A20_FIRST_RX_CHANNEL 483900000
79 #define CN470_A20_LAST_RX_CHANNEL 496500000
86 #define CN470_A20_STEPWIDTH_RX_CHANNEL 200000
92 #define CN470_A20_FIRST_TX1_CHANNEL 470300000
99 #define CN470_A20_STEPWIDTH_TX1_CHANNEL 200000
105 #define CN470_A20_FIRST_TX2_CHANNEL 503500000
111 #define CN470_A20_LAST_TX2_CHANNEL 509700000
118 #define CN470_A20_STEPWIDTH_TX2_CHANNEL 200000
125 #define CN470_A20_RX_WND_2_FREQ_ABP 486900000
132 #define CN470_A20_RX_WND_2_FREQ_OTAA { 485300000, 486900000, 488500000, 490100000, \
133 491700000, 493300000, 494000000, 496500000 }
229 #endif // __REGION_CN470_A20_H__
uint32_t RegionCN470A20GetRx2Frequency(uint8_t joinChannelIndex, bool isOtaaDevice)
Computes the frequency for the RX2 window for the channel plan type A, 20MHz.
void RegionCN470A20InitializeChannelsMask(uint16_t *channelsDefaultMask)
Initializes the channels default mask for the channel plan type A, 20MHz.
uint8_t RegionCN470A20LinkAdrChMaskUpdate(uint16_t *channelsMask, uint8_t chMaskCntl, uint16_t chanMask, ChannelParams_t *channels)
Performs the update of the channelsMask based on the input parameters for the channel plan type A,...
uint8_t RegionCN470A20GetBeaconChannelOffset(uint8_t joinChannelIndex)
Performs the update of the channelsMask based on the input parameters for the channel plan type A,...
uint32_t RegionCN470A20GetDownlinkFrequency(uint8_t channel, uint8_t joinChannelIndex, bool isPingSlot)
Calculation of the beacon frequency.
uint32_t RegionCN470A20GetRx1Frequency(uint8_t channel)
Computes the frequency for the RX1 window for the channel plan type A, 20MHz.
bool RegionCN470A20VerifyRfFreq(uint32_t frequency)
Verifies if the frequency provided is valid for the channel plan type A, 20MHz.
Definition: LoRaMacTypes.h:1220
void RegionCN470A20InitializeChannels(ChannelParams_t *channels)
Initializes all channels, datarates, frequencies and bands for the channel plan type A,...