Microchip® Advanced Software Framework

lorawan_mband_kr.c File Reference

Macros

#define PDS_REG_KR_CH_PARAM_1_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.chParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
 
#define PDS_REG_KR_CH_PARAM_1_OFFSET   (PDS_FILE_START_OFFSET)
 
#define PDS_REG_KR_CH_PARAM_1_SIZE   sizeof(RegParams.cmnParams.paramsType2.chParams)
 
#define PDS_REG_KR_CH_PARAM_2_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.othChParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
 
#define PDS_REG_KR_CH_PARAM_2_OFFSET   (PDS_REG_KR_CH_PARAM_1_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_KR_CH_PARAM_1_SIZE)
 
#define PDS_REG_KR_CH_PARAM_2_SIZE   sizeof(RegParams.cmnParams.paramsType2.othChParams)
 

Functions

void InitDefault920ChannelsKR (void)
 
StackRetStatus_t LORAReg_InitKR (IsmBand_t ismBand)
 
void LorawanReg_KR_Pds_Cb (void)
 

Variables

static const OthChannelParams_t AdvChannels920KR []
 
PdsOperations_t aRegKrFid1PdsOps [PDS_REG_KR_FID1_MAX_VALUE]
 
static const ChannelParams_t DefaultChannels920KR []
 
static const DRParams_t DefaultDrParamsKR []
 
const ItemMap_t pds_reg_kr_fid1_item_list []
 

#define PDS_REG_KR_CH_PARAM_1_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.chParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
#define PDS_REG_KR_CH_PARAM_1_OFFSET   (PDS_FILE_START_OFFSET)
#define PDS_REG_KR_CH_PARAM_1_SIZE   sizeof(RegParams.cmnParams.paramsType2.chParams)
#define PDS_REG_KR_CH_PARAM_2_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.othChParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
#define PDS_REG_KR_CH_PARAM_2_OFFSET   (PDS_REG_KR_CH_PARAM_1_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_KR_CH_PARAM_1_SIZE)
#define PDS_REG_KR_CH_PARAM_2_SIZE   sizeof(RegParams.cmnParams.paramsType2.othChParams)

StackRetStatus_t LORAReg_InitKR ( IsmBand_t  ismBand)

References aRegKrFid1PdsOps, _RegParams::band, _RegPdsItems::band_item_id, _DRParams::bandwidth, BW_125KHZ, _RegPdsItems::ch_param_1_item_id, _RegPdsItems::ch_param_2_item_id, _RegParamsType2::chParams, _RegParams::cmnParams, DEFAULT_EIRP_KR_HF, _RegParams::DefRx1DataRate, _RegParams::DefRx2DataRate, _RegParams::DefRx2Freq, _RegParams::defTxPwrIndx, _RegParamsType2::DRParams, _RegParamsType2::DutyCycleTimer, _RegParams::FeaturesSupport, _PdsFileMarks::fIDcb, _RegPdsItems::fileid, _PdsFileMarks::fileMarkListAddr, InitDefault920ChannelsKR(), ISM_KR920, _PdsFileMarks::itemListAddr, _RegParams::joinBackoffTimer, _RegParams::joinbccount, _RegParams::joinDutyCycleTimeout, _RegParams::joinDutyCycleTimer, _RegPdsItems::lastUsedSB, _RegParamsType2::LBT_RSSISamplesCount, LBT_SCAN_PERIOD_KR, LBT_SIGNAL_THRESHOLD_KR, _RegParamsType2::LBTScanPeriod, _RegParamsType2::LBTSignalThreshold, _RegParamsType2::LBTTimer, LORAREG_InitGetAttrFnPtrsKR(), LORAREG_InitSetAttrFnPtrsKR(), LORAREG_InitValidateAttrFnPtrsKR(), LORAWAN_SUCCESS, LorawanReg_KR_Pds_Cb(), MAC_RX1_WINDOW_DATARATE_KR, MAC_RX2_WINDOW_DATARATE_KR, MAC_RX2_WINDOW_FREQ_KR, _RegParams::MacTxPower, MAX_CHANNELS_KR, MAX_NUM_SUBBANDS_KR, _RegParams::maxChannels, _RegParams::maxDataRate, _RegParams::maxSubBands, _RegParams::maxTxPwr, _RegParams::maxTxPwrIndx, MIN_CHANNEL_INDEX_KR, _RegParams::minDataRate, _RegParams::MinNewChIndex, _RegParamsType2::minNonDefChId, _DRParams::modulation, MODULATION_LORA, _PdsFileMarks::numItems, _RegParamsType2::othChParams, _CmnParams::paramsType2, _RegParams::pChParams, _RegParams::pDrParams, PDS_FILE_REG_KR_06_IDX, PDS_REG_KR_CH_PARAM_1, PDS_REG_KR_CH_PARAM_2, PDS_REG_KR_FID1_MAX_VALUE, PDS_RegFile(), _RegParams::pDutyCycleTimer, _RegParams::pJoinBackoffTimer, _RegParams::pJoinDutyCycleTimer, _RegParams::pOtherChParams, _RegParams::regParamItems, RegParams, regTimerId, _JoinDutyCycleTimer::remainingtime, result, _RegParams::Rx1DrOffset, _JoinDutyCycleTimer::timerId, _JoinBackoffTimer::timerId, _LBTTimer::timerId, _RegParams::TxCurDataRate, and UNSUPPORTED_BAND.

Referenced by LORAREG_Init().

void LorawanReg_KR_Pds_Cb ( void  )

Referenced by LORAReg_InitKR().

const OthChannelParams_t AdvChannels920KR[]
static
Initial value:
= {
}
#define ADV_LC2_920_KR
Definition: lorawan_multiband.h:461
#define ADV_LC0_920_KR
Definition: lorawan_multiband.h:459
#define ADV_LC1_920_KR
Definition: lorawan_multiband.h:460
const ChannelParams_t DefaultChannels920KR[]
static
Initial value:
= {
}
#define LC0_920_KR
Definition: lorawan_multiband.h:455
#define LC2_920_KR
Definition: lorawan_multiband.h:457
#define LC1_920_KR
Definition: lorawan_multiband.h:456
const DRParams_t DefaultDrParamsKR[]
static
Initial value:
= {
}
#define DR2_PARAMS_KR
Definition: lorawan_multiband.h:469
#define DR5_PARAMS_KR
Definition: lorawan_multiband.h:472
#define DR3_PARAMS_KR
Definition: lorawan_multiband.h:470
#define DR4_PARAMS_KR
Definition: lorawan_multiband.h:471
#define DR1_PARAMS_KR
Definition: lorawan_multiband.h:468
#define DR0_PARAMS_KR
Definition: lorawan_multiband.h:467
const ItemMap_t pds_reg_kr_fid1_item_list[]
Initial value:
= {
}
#define PDS_REG_KR_CH_PARAM_1_SIZE
Definition: lorawan_mband_kr.c:72
Definition: lorawan_multiband.h:700
#define PDS_REG_KR_CH_PARAM_2_ADDR
Definition: lorawan_mband_kr.c:70
#define PDS_REG_KR_CH_PARAM_2_SIZE
Definition: lorawan_mband_kr.c:73
Definition: pds_interface.h:111
#define PDS_REG_KR_CH_PARAM_2_OFFSET
Definition: lorawan_mband_kr.c:76
#define DECLARE_ITEM(RAMADDR, FILEID, ITEMID, SIZE, MEMOFFSET)
Definition: pds_interface.h:50
#define PDS_REG_KR_CH_PARAM_1_ADDR
Definition: lorawan_mband_kr.c:69
#define PDS_REG_KR_CH_PARAM_1_OFFSET
Definition: lorawan_mband_kr.c:75
Definition: lorawan_multiband.h:701