Microchip® Advanced Software Framework

lorawan_mband_eu.c File Reference

Macros

#define PDS_REG_EU868_CH_PARAM_1_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.chParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
 
#define PDS_REG_EU868_CH_PARAM_1_OFFSET   (PDS_FILE_START_OFFSET)
 
#define PDS_REG_EU868_CH_PARAM_1_SIZE   sizeof(RegParams.cmnParams.paramsType2.chParams)
 
#define PDS_REG_EU868_CH_PARAM_2_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.othChParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
 
#define PDS_REG_EU868_CH_PARAM_2_OFFSET   (PDS_FILE_START_OFFSET)
 
#define PDS_REG_EU868_CH_PARAM_2_SIZE   sizeof(RegParams.cmnParams.paramsType2.othChParams)
 

Functions

void InitDefault433Channels (void)
 
void InitDefault868Channels (void)
 
StackRetStatus_t LORAReg_InitEU (IsmBand_t ismBand)
 
void LorawanReg_EU868_Pds_Cb (void)
 

Variables

static const OthChannelParams_t AdvChannels433 []
 
static const OthChannelParams_t AdvChannels868 []
 
PdsOperations_t aRegEu868Fid1PdsOps [PDS_REG_EU868_FID1_MAX_VALUE]
 
PdsOperations_t aRegEu868Fid2PdsOps [PDS_REG_EU868_FID2_MAX_VALUE]
 
static const ChannelParams_t DefaultChannels433 []
 
static const ChannelParams_t DefaultChannels868 []
 
static const DRParams_t DefaultDrparamsEU []
 
const ItemMap_t pds_reg_eu868_fid1_item_list []
 
const ItemMap_t pds_reg_eu868_fid2_item_list []
 
static const uint16_t SubBandDutyCycle868 []
 
static const SubBandParams_t SubBandParams433 []
 
static const SubBandParams_t SubBandParams868 []
 

#define PDS_REG_EU868_CH_PARAM_1_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.chParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
#define PDS_REG_EU868_CH_PARAM_1_OFFSET   (PDS_FILE_START_OFFSET)
#define PDS_REG_EU868_CH_PARAM_1_SIZE   sizeof(RegParams.cmnParams.paramsType2.chParams)
#define PDS_REG_EU868_CH_PARAM_2_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.othChParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
#define PDS_REG_EU868_CH_PARAM_2_OFFSET   (PDS_FILE_START_OFFSET)
#define PDS_REG_EU868_CH_PARAM_2_SIZE   sizeof(RegParams.cmnParams.paramsType2.othChParams)

StackRetStatus_t LORAReg_InitEU ( IsmBand_t  ismBand)

References aRegEu868Fid1PdsOps, aRegEu868Fid2PdsOps, _RegParams::band, _RegPdsItems::band_item_id, _RegPdsItems::ch_param_1_item_id, _RegPdsItems::ch_param_2_item_id, _RegParamsType2::chParams, _RegParams::cmnParams, DEFAULT_EIRP_EU, _RegParams::DefRx1DataRate, _RegParams::DefRx2DataRate, _RegParams::DefRx2Freq, _RegParams::defTxPwrIndx, _RegParamsType2::DRParams, _RegParamsType2::DutyCycleTimer, _RegParams::FeaturesSupport, _PdsFileMarks::fIDcb, _RegPdsItems::fileid, _PdsFileMarks::fileMarkListAddr, InitDefault433Channels(), InitDefault868Channels(), ISM_EU433, ISM_EU868, _PdsFileMarks::itemListAddr, _RegParams::joinBackoffTimer, _RegParams::joinbccount, _RegParams::joinDutyCycleTimeout, _RegParams::joinDutyCycleTimer, _RegPdsItems::lastUsedSB, LORAREG_InitGetAttrFnPtrsEU(), LORAREG_InitSetAttrFnPtrsEU(), LORAREG_InitValidateAttrFnPtrsEU(), LORAWAN_SUCCESS, LorawanReg_EU868_Pds_Cb(), MAC_433_RX1_WINDOW_DATARATE, MAC_433_RX2_WINDOW_DATARATE, MAC_433_RX2_WINDOW_FREQ, MAC_868_RX1_WINDOW_DATARATE, MAC_868_RX2_WINDOW_DATARATE, MAC_868_RX2_WINDOW_FREQ, _RegParams::MacTxPower, MAX_CHANNELS_T2, MAX_NUM_SUBBANDS_EU, _RegParams::maxChannels, _RegParams::maxDataRate, _RegParams::maxSubBands, _RegParams::maxTxPwr, _RegParams::maxTxPwrIndx, _RegParams::minDataRate, _RegParams::MinNewChIndex, _RegParamsType2::minNonDefChId, _PdsFileMarks::numItems, _RegParamsType2::othChParams, _CmnParams::paramsType2, _RegParams::pChParams, _RegParams::pDrParams, PDS_FILE_REG_EU868_04_IDX, PDS_FILE_REG_EU868_12_IDX, PDS_REG_EU868_CH_PARAM_1, PDS_REG_EU868_CH_PARAM_2, PDS_REG_EU868_FID1_MAX_VALUE, PDS_REG_EU868_FID2_MAX_VALUE, PDS_RegFile(), _RegParams::pDutyCycleTimer, _RegParams::pJoinBackoffTimer, _RegParams::pJoinDutyCycleTimer, _RegParams::pOtherChParams, _RegParams::pSubBandParams, _RegParams::regParamItems, RegParams, regTimerId, _JoinDutyCycleTimer::remainingtime, _RegParams::Rx1DrOffset, _RegParamsType2::SubBands, _DutyCycleTimer::timerId, _JoinDutyCycleTimer::timerId, _JoinBackoffTimer::timerId, _RegParams::TxCurDataRate, and UNSUPPORTED_BAND.

Referenced by LORAREG_Init().

void LorawanReg_EU868_Pds_Cb ( void  )

Referenced by LORAReg_InitEU().

const OthChannelParams_t AdvChannels433[]
static
Initial value:
=
{
}
#define Adv_LC1_433
Definition: lorawan_multiband.h:306
#define Adv_LC0_433
Definition: lorawan_multiband.h:305
#define Adv_LC2_433
Definition: lorawan_multiband.h:307
const OthChannelParams_t AdvChannels868[]
static
Initial value:
=
{
}
#define Adv_LC0_868
Definition: lorawan_multiband.h:300
#define Adv_LC1_868
Definition: lorawan_multiband.h:301
#define Adv_LC2_868
Definition: lorawan_multiband.h:302

Referenced by LORAReg_InitEU().

Referenced by LORAReg_InitEU().

const ChannelParams_t DefaultChannels433[]
static
Initial value:
=
{
}
#define LC1_433
Definition: lorawan_multiband.h:296
#define LC2_433
Definition: lorawan_multiband.h:297
#define LC0_433
Definition: lorawan_multiband.h:295
const ChannelParams_t DefaultChannels868[]
static
Initial value:
=
{
}
#define LC2_868
Definition: lorawan_multiband.h:292
#define LC1_868
Definition: lorawan_multiband.h:291
#define LC0_868
Definition: lorawan_multiband.h:290
const DRParams_t DefaultDrparamsEU[]
static
Initial value:
=
{
}
#define DR5_PARAMS_EU
Definition: lorawan_multiband.h:323
#define DR0_PARAMS_EU
Definition: lorawan_multiband.h:318
#define DR6_PARAMS_EU
Definition: lorawan_multiband.h:324
#define DR2_PARAMS_EU
Definition: lorawan_multiband.h:320
#define DR3_PARAMS_EU
Definition: lorawan_multiband.h:321
#define DR7_PARAMS_EU
Definition: lorawan_multiband.h:325
#define DR4_PARAMS_EU
Definition: lorawan_multiband.h:322
#define DR1_PARAMS_EU
Definition: lorawan_multiband.h:319
const ItemMap_t pds_reg_eu868_fid1_item_list[]
Initial value:
= {
}
#define PDS_REG_EU868_CH_PARAM_1_ADDR
Definition: lorawan_mband_eu.c:110
#define DECLARE_ITEM(RAMADDR, FILEID, ITEMID, SIZE, MEMOFFSET)
Definition: pds_interface.h:50
Definition: lorawan_multiband.h:632
#define PDS_REG_EU868_CH_PARAM_1_SIZE
Definition: lorawan_mband_eu.c:113
#define PDS_REG_EU868_CH_PARAM_1_OFFSET
Definition: lorawan_mband_eu.c:116
Definition: pds_interface.h:109
const ItemMap_t pds_reg_eu868_fid2_item_list[]
Initial value:
= {
}
#define PDS_REG_EU868_CH_PARAM_2_SIZE
Definition: lorawan_mband_eu.c:114
#define DECLARE_ITEM(RAMADDR, FILEID, ITEMID, SIZE, MEMOFFSET)
Definition: pds_interface.h:50
Definition: lorawan_multiband.h:639
#define PDS_REG_EU868_CH_PARAM_2_ADDR
Definition: lorawan_mband_eu.c:111
Definition: pds_interface.h:117
#define PDS_REG_EU868_CH_PARAM_2_OFFSET
Definition: lorawan_mband_eu.c:117
const uint16_t SubBandDutyCycle868[]
static
Initial value:
=
{
}
#define SB3_DT
Definition: lorawan_multiband.h:280
#define SB4_DT
Definition: lorawan_multiband.h:281
#define SB2_DT
Definition: lorawan_multiband.h:279
#define SB0_DT
Definition: lorawan_multiband.h:277
#define SB5_DT
Definition: lorawan_multiband.h:282
#define SB1_DT
Definition: lorawan_multiband.h:278

Referenced by InitDefault868Channels().

const SubBandParams_t SubBandParams433[]
static
Initial value:
=
{
}
#define SB0_433
Definition: lorawan_multiband.h:314
const SubBandParams_t SubBandParams868[]
static
Initial value:
=
{
}
#define SB2_868
Definition: lorawan_multiband.h:272
#define SB4_868
Definition: lorawan_multiband.h:274
#define SB1_868
Definition: lorawan_multiband.h:271
#define SB5_868
Definition: lorawan_multiband.h:275
#define SB3_868
Definition: lorawan_multiband.h:273
#define SB0_868
Definition: lorawan_multiband.h:270