|
LoRaMAC
4.6.0
Documentation of the API
|
Go to the documentation of this file.
33 #ifndef __REGION_CN470_B20_H__
34 #define __REGION_CN470_B20_H__
47 #define CN470_B20_CHANNELS_MASK_SIZE 4
53 #define CN470_B20_JOIN_ACCEPT_LIST_SIZE 4
60 #define CN470_B20_BEACON_NB_CHANNELS 1
67 #define CN470_B20_PING_SLOT_NB_CHANNELS 32
73 #define CN470_B20_FIRST_RX1_CHANNEL 476900000
79 #define CN470_B20_LAST_RX1_CHANNEL 483100000
86 #define CN470_B20_STEPWIDTH_RX1_CHANNEL 200000
92 #define CN470_B20_FIRST_RX2_CHANNEL 496900000
98 #define CN470_B20_LAST_RX2_CHANNEL 503100000
105 #define CN470_B20_STEPWIDTH_RX2_CHANNEL 200000
111 #define CN470_B20_FIRST_TX1_CHANNEL CN470_B20_FIRST_RX1_CHANNEL
117 #define CN470_B20_LAST_TX1_CHANNEL CN470_B20_LAST_RX1_CHANNEL
124 #define CN470_B20_STEPWIDTH_TX1_CHANNEL CN470_B20_STEPWIDTH_RX1_CHANNEL
130 #define CN470_B20_FIRST_TX2_CHANNEL CN470_B20_FIRST_RX2_CHANNEL
136 #define CN470_B20_LAST_TX2_CHANNEL CN470_B20_LAST_RX2_CHANNEL
143 #define CN470_B20_STEPWIDTH_TX2_CHANNEL CN470_B20_STEPWIDTH_RX2_CHANNEL
150 #define CN470_B20_RX_WND_2_FREQ_ABP 498300000
157 #define CN470_B20_RX_WND_2_FREQ_OTAA { 478300000, 498300000 }
253 #endif // __REGION_CN470_B20_H__
uint32_t RegionCN470B20GetDownlinkFrequency(uint8_t channel, uint8_t joinChannelIndex, bool isPingSlot)
Calculation of the beacon frequency.
void RegionCN470B20InitializeChannelsMask(uint16_t *channelsDefaultMask)
Initializes the channels default mask for the Channel plan type B, 20MHz.
uint8_t RegionCN470B20LinkAdrChMaskUpdate(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 B,...
Definition: LoRaMacTypes.h:1220
uint8_t RegionCN470B20GetBeaconChannelOffset(uint8_t joinChannelIndex)
Performs the update of the channelsMask based on the input parameters for the Channel plan type B,...
void RegionCN470B20InitializeChannels(ChannelParams_t *channels)
Initializes all channels, datarates, frequencies and bands for the Channel plan type B,...
uint32_t RegionCN470B20GetRx1Frequency(uint8_t channel)
Computes the frequency for the RX1 window for the Channel plan type B, 20MHz.
bool RegionCN470B20VerifyRfFreq(uint32_t frequency)
Verifies if the frequency provided is valid for the Channel plan type B, 20MHz.
uint32_t RegionCN470B20GetRx2Frequency(uint8_t joinChannelIndex, bool isOtaaDevice)
Computes the frequency for the RX2 window for the Channel plan type B, 20MHz.