LoRaMAC  4.6.0
Documentation of the API
RegionCN470A26.h
Go to the documentation of this file.
1 
33 #ifndef __REGION_CN470_A26_H__
34 #define __REGION_CN470_A26_H__
35 
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40 
41 #include "region/Region.h"
42 
47 #define CN470_A26_CHANNELS_MASK_SIZE 3
48 
53 #define CN470_A26_JOIN_ACCEPT_LIST_SIZE 3
54 
59 #define CN470_A26_BEACON_NB_CHANNELS 1
60 
65 #define CN470_A26_PING_SLOT_NB_CHANNELS 1
66 
71 #define CN470_A26_FIRST_RX_CHANNEL 490100000
72 
77 #define CN470_A26_LAST_RX_CHANNEL 494700000
78 
84 #define CN470_A26_STEPWIDTH_RX_CHANNEL 200000
85 
90 #define CN470_A26_FIRST_TX_CHANNEL 470300000
91 
96 #define CN470_A26_LAST_TX_CHANNEL 479700000
97 
103 #define CN470_A26_STEPWIDTH_TX_CHANNEL 200000
104 
109 #define CN470_A26_RX_WND_2_FREQ 492500000
110 
115 #define CN470_A26_BEACON_FREQ 494900000
116 
128 uint32_t RegionCN470A26GetDownlinkFrequency( uint8_t channel, uint8_t joinChannelIndex, bool isPingSlot );
129 
138 uint8_t RegionCN470A26GetBeaconChannelOffset( uint8_t joinChannelIndex );
139 
154 uint8_t RegionCN470A26LinkAdrChMaskUpdate( uint16_t* channelsMask, uint8_t chMaskCntl,
155  uint16_t chanMask, ChannelParams_t* channels );
156 
165 bool RegionCN470A26VerifyRfFreq( uint32_t frequency );
166 
174 
181 void RegionCN470A26InitializeChannelsMask( uint16_t* channelsDefaultMask );
182 
191 uint32_t RegionCN470A26GetRx1Frequency( uint8_t channel );
192 
203 uint32_t RegionCN470A26GetRx2Frequency( uint8_t joinChannelIndex, bool isOtaaDevice );
204 
207 #ifdef __cplusplus
208 }
209 #endif
210 
211 #endif // __REGION_CN470_A26_H__
Region.h
Region implementation.
RegionCN470A26LinkAdrChMaskUpdate
uint8_t RegionCN470A26LinkAdrChMaskUpdate(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,...
RegionCN470A26InitializeChannelsMask
void RegionCN470A26InitializeChannelsMask(uint16_t *channelsDefaultMask)
Initializes the channels default mask for the Channel plan type A, 26MHz.
RegionCN470A26GetRx1Frequency
uint32_t RegionCN470A26GetRx1Frequency(uint8_t channel)
Computes the frequency for the RX1 window for the Channel plan type A, 26MHz.
RegionCN470A26VerifyRfFreq
bool RegionCN470A26VerifyRfFreq(uint32_t frequency)
Verifies if the frequency provided is valid for the Channel plan type A, 26MHz.
RegionCN470A26GetDownlinkFrequency
uint32_t RegionCN470A26GetDownlinkFrequency(uint8_t channel, uint8_t joinChannelIndex, bool isPingSlot)
Calculation of the beacon frequency.
ChannelParams_t
Definition: LoRaMacTypes.h:1220
RegionCN470A26GetBeaconChannelOffset
uint8_t RegionCN470A26GetBeaconChannelOffset(uint8_t joinChannelIndex)
Performs the update of the channelsMask based on the input parameters for the Channel plan type A,...
RegionCN470A26GetRx2Frequency
uint32_t RegionCN470A26GetRx2Frequency(uint8_t joinChannelIndex, bool isOtaaDevice)
Computes the frequency for the RX2 window for the Channel plan type A, 26MHz.
RegionCN470A26InitializeChannels
void RegionCN470A26InitializeChannels(ChannelParams_t *channels)
Initializes all channels, datarates, frequencies and bands for the Channel plan type A,...