LoRaMAC  4.6.0
Documentation of the API
RegionCN470B20.h File Reference

Specific implementations of Channel plan type B, 20MHz. More...

#include "region/Region.h"

Go to the source code of this file.

Macros

#define CN470_B20_CHANNELS_MASK_SIZE   4
 
#define CN470_B20_JOIN_ACCEPT_LIST_SIZE   4
 
#define CN470_B20_BEACON_NB_CHANNELS   1
 
#define CN470_B20_PING_SLOT_NB_CHANNELS   32
 
#define CN470_B20_FIRST_RX1_CHANNEL   476900000
 
#define CN470_B20_LAST_RX1_CHANNEL   483100000
 
#define CN470_B20_STEPWIDTH_RX1_CHANNEL   200000
 
#define CN470_B20_FIRST_RX2_CHANNEL   496900000
 
#define CN470_B20_LAST_RX2_CHANNEL   503100000
 
#define CN470_B20_STEPWIDTH_RX2_CHANNEL   200000
 
#define CN470_B20_FIRST_TX1_CHANNEL   CN470_B20_FIRST_RX1_CHANNEL
 
#define CN470_B20_LAST_TX1_CHANNEL   CN470_B20_LAST_RX1_CHANNEL
 
#define CN470_B20_STEPWIDTH_TX1_CHANNEL   CN470_B20_STEPWIDTH_RX1_CHANNEL
 
#define CN470_B20_FIRST_TX2_CHANNEL   CN470_B20_FIRST_RX2_CHANNEL
 
#define CN470_B20_LAST_TX2_CHANNEL   CN470_B20_LAST_RX2_CHANNEL
 
#define CN470_B20_STEPWIDTH_TX2_CHANNEL   CN470_B20_STEPWIDTH_RX2_CHANNEL
 
#define CN470_B20_RX_WND_2_FREQ_ABP   498300000
 
#define CN470_B20_RX_WND_2_FREQ_OTAA   { 478300000, 498300000 }
 

Functions

uint32_t RegionCN470B20GetDownlinkFrequency (uint8_t channel, uint8_t joinChannelIndex, bool isPingSlot)
 Calculation of the beacon frequency. More...
 
uint8_t RegionCN470B20GetBeaconChannelOffset (uint8_t joinChannelIndex)
 Performs the update of the channelsMask based on the input parameters for the Channel plan type B, 20MHz. More...
 
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, 20MHz. More...
 
bool RegionCN470B20VerifyRfFreq (uint32_t frequency)
 Verifies if the frequency provided is valid for the Channel plan type B, 20MHz. More...
 
void RegionCN470B20InitializeChannels (ChannelParams_t *channels)
 Initializes all channels, datarates, frequencies and bands for the Channel plan type B, 20MHz. More...
 
void RegionCN470B20InitializeChannelsMask (uint16_t *channelsDefaultMask)
 Initializes the channels default mask for the Channel plan type B, 20MHz. More...
 
uint32_t RegionCN470B20GetRx1Frequency (uint8_t channel)
 Computes the frequency for the RX1 window for the Channel plan type B, 20MHz. More...
 
uint32_t RegionCN470B20GetRx2Frequency (uint8_t joinChannelIndex, bool isOtaaDevice)
 Computes the frequency for the RX2 window for the Channel plan type B, 20MHz. More...
 

Detailed Description

Specific implementations of Channel plan type B, 20MHz.

______ _
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013-2017 Semtech
___ _____ _ ___ _ _____ ___ ___ ___ ___
/ __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
\__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
|___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
embedded.connectivity.solutions===============
Author
Miguel Luis ( Semtech )
Daniel Jaeckle ( STACKFORCE )