Microchip® Advanced Software Framework

lorawan_mband_na.c File Reference

Macros

#define PDS_REG_NA_CH_PARAM_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType1.chParams[MAX_CHANNELS_T1 - MAX_CHANNELS_T1]))
 
#define PDS_REG_NA_CH_PARAM_OFFSET   (PDS_FILE_START_OFFSET)
 
#define PDS_REG_NA_CH_PARAM_SIZE   sizeof(RegParams.cmnParams.paramsType1.chParams)
 
#define PDS_REG_NA_LAST_USED_SB_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType1.lastUsedSB))
 
#define PDS_REG_NA_LAST_USED_SB_OFFSET   (PDS_REG_NA_CH_PARAM_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_NA_CH_PARAM_SIZE)
 
#define PDS_REG_NA_LAST_USED_SB_SIZE   sizeof(RegParams.cmnParams.paramsType1.lastUsedSB)
 

Functions

static void InitDefault915Channels (void)
 
StackRetStatus_t LORAReg_InitNA (IsmBand_t ismBand)
 
void LorawanReg_NA_Pds_Cb (void)
 

Variables

PdsOperations_t aRegNaPdsOps [PDS_REG_NA_MAX_VALUE]
 
static const ChannelParams_t DefaultChannels915 [MAX_CHANNELS_T1]
 
static const DRParams_t DefaultDrParamsNA []
 
const ItemMap_t pds_reg_na_item_list []
 

#define PDS_REG_NA_CH_PARAM_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType1.chParams[MAX_CHANNELS_T1 - MAX_CHANNELS_T1]))
#define PDS_REG_NA_CH_PARAM_OFFSET   (PDS_FILE_START_OFFSET)
#define PDS_REG_NA_CH_PARAM_SIZE   sizeof(RegParams.cmnParams.paramsType1.chParams)
#define PDS_REG_NA_LAST_USED_SB_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType1.lastUsedSB))
#define PDS_REG_NA_LAST_USED_SB_OFFSET   (PDS_REG_NA_CH_PARAM_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_NA_CH_PARAM_SIZE)
#define PDS_REG_NA_LAST_USED_SB_SIZE   sizeof(RegParams.cmnParams.paramsType1.lastUsedSB)

static void InitDefault915Channels ( void  )
static

References _RegParams::pChParams, and RegParams.

Referenced by LORAReg_InitNA().

StackRetStatus_t LORAReg_InitNA ( IsmBand_t  ismBand)

References _RegParamsType1::alternativeChannel, aRegNaPdsOps, _RegParams::band, _RegPdsItems::band_item_id, _RegPdsItems::ch_param_1_item_id, _RegPdsItems::ch_param_2_item_id, _RegParamsType1::chParams, _RegParams::cmnParams, DEFAULT_EIRP_NA, _RegParams::DefRx1DataRate, _RegParams::DefRx2DataRate, _RegParams::DefRx2Freq, _RegParams::defTxPwrIndx, DOWNSTREAM_CH0_NA, _RegParamsType1::DownStreamCh0Freq, DR0, DR13, DR4, DR8, _RegParamsType1::DRParams, _RegParams::FeaturesSupport, _PdsFileMarks::fIDcb, _RegPdsItems::fileid, _PdsFileMarks::fileMarkListAddr, InitDefault915Channels(), _PdsFileMarks::itemListAddr, _RegParams::joinBackoffTimer, _RegParams::joinbccount, _RegParams::joinDutyCycleTimeout, _RegParams::joinDutyCycleTimer, _RegPdsItems::lastUsedSB, _RegParamsType1::lastUsedSB, LORAREG_InitGetAttrFnPtrsNA(), LORAREG_InitSetAttrFnPtrsNA(), LORAREG_InitValidateAttrFnPtrsNA(), LORAWAN_SUCCESS, LorawanReg_NA_Pds_Cb(), MAC_RX1_WINDOW_DATARATE_NA, MAC_RX2_WINDOW_DATARATE_NA, MAC_RX2_WINDOW_FREQ_NA, _RegParams::MacTxPower, _RegParamsType1::Max_125khzChan, _RegParamsType1::Max_500khzChan, MAX_CHANNELS_BANDWIDTH_125_AU_NA, MAX_CHANNELS_BANDWIDTH_500_AU_NA, MAX_CHANNELS_T1, _RegParams::maxChannels, _RegParams::maxDataRate, _RegParamsType1::maxRxDR, _RegParamsType1::maxTxDR, _RegParams::maxTxPwr, _RegParams::maxTxPwrIndx, _RegParams::minDataRate, _RegParams::MinNewChIndex, _RegParamsType1::minRxDR, _RegParamsType1::minTxDR, _PdsFileMarks::numItems, _CmnParams::paramsType1, _RegParams::pChParams, _RegParams::pDrParams, PDS_FILE_REG_NA_03_IDX, PDS_REG_NA_CH_PARAM, PDS_REG_NA_LAST_USED_SB, PDS_REG_NA_MAX_VALUE, PDS_RegFile(), _RegParams::pJoinBackoffTimer, _RegParams::pJoinDutyCycleTimer, _RegParams::regParamItems, RegParams, regTimerId, _JoinDutyCycleTimer::remainingtime, result, _RegParams::Rx1DrOffset, _RegParamsType1::RxParamWindowOffset1, _JoinDutyCycleTimer::timerId, _JoinBackoffTimer::timerId, _RegParams::TxCurDataRate, UNSUPPORTED_BAND, UPSTREAM_CH0_NA, UPSTREAM_CH64_NA, _RegParamsType1::UpStreamCh0Freq, and _RegParamsType1::UpStreamCh64Freq.

Referenced by LORAREG_Init().

void LorawanReg_NA_Pds_Cb ( void  )

Referenced by LORAReg_InitNA().

const ChannelParams_t DefaultChannels915[MAX_CHANNELS_T1]
static
Initial value:
#define LC9_915_NA
Definition: lorawan_multiband.h:511
#define LC67_915_NA
Definition: lorawan_multiband.h:569
#define LC47_915_NA
Definition: lorawan_multiband.h:549
#define LC7_915_NA
Definition: lorawan_multiband.h:509
#define LC25_915_NA
Definition: lorawan_multiband.h:527
#define LC30_915_NA
Definition: lorawan_multiband.h:532
#define LC20_915_NA
Definition: lorawan_multiband.h:522
#define LC69_915_NA
Definition: lorawan_multiband.h:571
#define LC10_915_NA
Definition: lorawan_multiband.h:512
#define LC59_915_NA
Definition: lorawan_multiband.h:561
#define LC50_915_NA
Definition: lorawan_multiband.h:552
#define LC58_915_NA
Definition: lorawan_multiband.h:560
#define LC35_915_NA
Definition: lorawan_multiband.h:537
#define LC34_915_NA
Definition: lorawan_multiband.h:536
#define LC16_915_NA
Definition: lorawan_multiband.h:518
#define LC49_915_NA
Definition: lorawan_multiband.h:551
#define LC17_915_NA
Definition: lorawan_multiband.h:519
#define LC36_915_NA
Definition: lorawan_multiband.h:538
#define LC43_915_NA
Definition: lorawan_multiband.h:545
#define LC22_915_NA
Definition: lorawan_multiband.h:524
#define LC31_915_NA
Definition: lorawan_multiband.h:533
#define LC60_915_NA
Definition: lorawan_multiband.h:562
#define LC68_915_NA
Definition: lorawan_multiband.h:570
#define LC46_915_NA
Definition: lorawan_multiband.h:548
#define LC0_915_NA
Definition: lorawan_multiband.h:502
#define LC4_915_NA
Definition: lorawan_multiband.h:506
#define LC27_915_NA
Definition: lorawan_multiband.h:529
#define LC3_915_NA
Definition: lorawan_multiband.h:505
#define LC1_915_NA
Definition: lorawan_multiband.h:503
#define LC70_915_NA
Definition: lorawan_multiband.h:572
#define LC42_915_NA
Definition: lorawan_multiband.h:544
#define LC64_915_NA
Definition: lorawan_multiband.h:566
#define LC5_915_NA
Definition: lorawan_multiband.h:507
#define LC53_915_NA
Definition: lorawan_multiband.h:555
#define LC41_915_NA
Definition: lorawan_multiband.h:543
#define LC52_915_NA
Definition: lorawan_multiband.h:554
#define LC48_915_NA
Definition: lorawan_multiband.h:550
#define LC13_915_NA
Definition: lorawan_multiband.h:515
#define LC24_915_NA
Definition: lorawan_multiband.h:526
#define LC71_915_NA
Definition: lorawan_multiband.h:573
#define LC21_915_NA
Definition: lorawan_multiband.h:523
#define LC38_915_NA
Definition: lorawan_multiband.h:540
#define LC56_915_NA
Definition: lorawan_multiband.h:558
#define LC62_915_NA
Definition: lorawan_multiband.h:564
#define LC32_915_NA
Definition: lorawan_multiband.h:534
#define LC28_915_NA
Definition: lorawan_multiband.h:530
#define LC39_915_NA
Definition: lorawan_multiband.h:541
#define LC14_915_NA
Definition: lorawan_multiband.h:516
#define LC6_915_NA
Definition: lorawan_multiband.h:508
#define LC57_915_NA
Definition: lorawan_multiband.h:559
#define LC40_915_NA
Definition: lorawan_multiband.h:542
#define LC37_915_NA
Definition: lorawan_multiband.h:539
#define LC15_915_NA
Definition: lorawan_multiband.h:517
#define LC2_915_NA
Definition: lorawan_multiband.h:504
#define LC55_915_NA
Definition: lorawan_multiband.h:557
#define LC54_915_NA
Definition: lorawan_multiband.h:556
#define LC11_915_NA
Definition: lorawan_multiband.h:513
#define LC51_915_NA
Definition: lorawan_multiband.h:553
#define LC33_915_NA
Definition: lorawan_multiband.h:535
#define LC66_915_NA
Definition: lorawan_multiband.h:568
#define LC8_915_NA
Definition: lorawan_multiband.h:510
#define LC45_915_NA
Definition: lorawan_multiband.h:547
#define LC18_915_NA
Definition: lorawan_multiband.h:520
#define LC12_915_NA
Definition: lorawan_multiband.h:514
#define LC63_915_NA
Definition: lorawan_multiband.h:565
#define LC44_915_NA
Definition: lorawan_multiband.h:546
#define LC19_915_NA
Definition: lorawan_multiband.h:521
#define LC23_915_NA
Definition: lorawan_multiband.h:525
#define LC65_915_NA
Definition: lorawan_multiband.h:567
#define LC61_915_NA
Definition: lorawan_multiband.h:563
#define LC26_915_NA
Definition: lorawan_multiband.h:528
#define LC29_915_NA
Definition: lorawan_multiband.h:531
const DRParams_t DefaultDrParamsNA[]
static
Initial value:
= {
}
#define DR10_PARAMS_NA
Definition: lorawan_multiband.h:588
#define DR5_PARAMS_NA
Definition: lorawan_multiband.h:583
#define DR4_PARAMS_NA
Definition: lorawan_multiband.h:582
#define DR13_PARAMS_NA
Definition: lorawan_multiband.h:591
#define DR12_PARAMS_NA
Definition: lorawan_multiband.h:590
#define DR8_PARAMS_NA
Definition: lorawan_multiband.h:586
#define DR3_PARAMS_NA
Definition: lorawan_multiband.h:581
#define DR11_PARAMS_NA
Definition: lorawan_multiband.h:589
#define DR7_PARAMS_NA
Definition: lorawan_multiband.h:585
#define DR9_PARAMS_NA
Definition: lorawan_multiband.h:587
#define DR6_PARAMS_NA
Definition: lorawan_multiband.h:584
#define DR0_PARAMS_NA
Definition: lorawan_multiband.h:578
#define DR2_PARAMS_NA
Definition: lorawan_multiband.h:580
#define DR1_PARAMS_NA
Definition: lorawan_multiband.h:579
const ItemMap_t pds_reg_na_item_list[]
Initial value:
= {
}
#define PDS_REG_NA_LAST_USED_SB_SIZE
Definition: lorawan_mband_na.c:82
Definition: lorawan_multiband.h:617
#define PDS_REG_NA_CH_PARAM_SIZE
Definition: lorawan_mband_na.c:81
#define PDS_REG_NA_CH_PARAM_OFFSET
Definition: lorawan_mband_na.c:84
#define PDS_REG_NA_CH_PARAM_ADDR
Definition: lorawan_mband_na.c:78
#define PDS_REG_NA_LAST_USED_SB_OFFSET
Definition: lorawan_mband_na.c:85
#define DECLARE_ITEM(RAMADDR, FILEID, ITEMID, SIZE, MEMOFFSET)
Definition: pds_interface.h:50
Definition: lorawan_multiband.h:618
Definition: pds_interface.h:108
#define PDS_REG_NA_LAST_USED_SB_ADDR
Definition: lorawan_mband_na.c:79