Microchip® Advanced Software Framework

lorawan_mband_in.c File Reference

Macros

#define PDS_REG_IND_CH_PARAM_1_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.chParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
 
#define PDS_REG_IND_CH_PARAM_1_OFFSET   (PDS_FILE_START_OFFSET)
 
#define PDS_REG_IND_CH_PARAM_1_SIZE   sizeof(RegParams.cmnParams.paramsType2.chParams)
 
#define PDS_REG_IND_CH_PARAM_2_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.othChParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
 
#define PDS_REG_IND_CH_PARAM_2_OFFSET   (PDS_REG_IND_CH_PARAM_1_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_IND_CH_PARAM_1_SIZE)
 
#define PDS_REG_IND_CH_PARAM_2_SIZE   sizeof(RegParams.cmnParams.paramsType2.othChParams)
 

Functions

static void InitDefault865Channels (void)
 
StackRetStatus_t LORAReg_InitIN (IsmBand_t ismBand)
 
void LorawanReg_IND_Pds_Cb (void)
 

Variables

static const OthChannelParams_t AdvChannels865 []
 
PdsOperations_t aRegIndPdsOps [PDS_REG_IND_MAX_VALUE]
 
static const ChannelParams_t DefaultChannels865 []
 
static const DRParams_t DefaultDrParamsIN []
 
const ItemMap_t pds_reg_ind_item_list []
 

#define PDS_REG_IND_CH_PARAM_1_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.chParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
#define PDS_REG_IND_CH_PARAM_1_OFFSET   (PDS_FILE_START_OFFSET)
#define PDS_REG_IND_CH_PARAM_1_SIZE   sizeof(RegParams.cmnParams.paramsType2.chParams)
#define PDS_REG_IND_CH_PARAM_2_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.othChParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
#define PDS_REG_IND_CH_PARAM_2_OFFSET   (PDS_REG_IND_CH_PARAM_1_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_IND_CH_PARAM_1_SIZE)
#define PDS_REG_IND_CH_PARAM_2_SIZE   sizeof(RegParams.cmnParams.paramsType2.othChParams)

static void InitDefault865Channels ( void  )
static
StackRetStatus_t LORAReg_InitIN ( IsmBand_t  ismBand)

References aRegIndPdsOps, _RegParams::band, _RegPdsItems::band_item_id, _RegPdsItems::ch_param_1_item_id, _RegPdsItems::ch_param_2_item_id, _RegParamsType2::chParams, _RegParams::cmnParams, DEFAULT_EIRP_IN, _RegParams::DefRx1DataRate, _RegParams::DefRx2DataRate, _RegParams::DefRx2Freq, _RegParams::defTxPwrIndx, _RegParamsType2::DRParams, _RegParamsType2::DutyCycleTimer, _RegParams::FeaturesSupport, _PdsFileMarks::fIDcb, _RegPdsItems::fileid, _PdsFileMarks::fileMarkListAddr, InitDefault865Channels(), ISM_IND865, _PdsFileMarks::itemListAddr, _RegParams::joinBackoffTimer, _RegParams::joinbccount, _RegParams::joinDutyCycleTimeout, _RegParams::joinDutyCycleTimer, _RegPdsItems::lastUsedSB, LORAREG_InitGetAttrFnPtrsIN(), LORAREG_InitSetAttrFnPtrsIN(), LORAREG_InitValidateAttrFnPtrsIN(), LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, LorawanReg_IND_Pds_Cb(), MAC_RX1_WINDOW_DATARATE_IN, MAC_RX2_WINDOW_DATARATE_IN, MAC_RX2_WINDOW_FREQ_IN, _RegParams::MacTxPower, MAX_CHANNELS_IN, MAX_NUM_SUBBANDS_IN, _RegParams::maxChannels, _RegParams::maxDataRate, _TxParams::maxEIRP, _RegParams::maxSubBands, _RegParams::maxTxPwr, _RegParams::maxTxPwrIndx, MIN_CHANNEL_INDEX_IN, _RegParams::minDataRate, _RegParams::MinNewChIndex, _RegParamsType2::minNonDefChId, _PdsFileMarks::numItems, _RegParamsType2::othChParams, _CmnParams::paramsType2, _RegParams::pChParams, _RegParams::pDrParams, PDS_FILE_REG_IND_07_IDX, PDS_REG_IND_CH_PARAM_1, PDS_REG_IND_CH_PARAM_2, PDS_REG_IND_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, _RegParams::TxCurDataRate, _RegParamsType2::txParams, and UNSUPPORTED_BAND.

Referenced by LORAREG_Init().

void LorawanReg_IND_Pds_Cb ( void  )

Referenced by LORAReg_InitIN().

const OthChannelParams_t AdvChannels865[]
static
Initial value:
= {
}
#define ADV_LC0_865_IN
Definition: lorawan_multiband.h:354
#define ADV_LC1_865_IN
Definition: lorawan_multiband.h:355
#define ADV_LC2_865_IN
Definition: lorawan_multiband.h:356
const ChannelParams_t DefaultChannels865[]
static
Initial value:
= {
}
#define LC0_865_IN
Definition: lorawan_multiband.h:349
#define LC1_865_IN
Definition: lorawan_multiband.h:350
#define LC2_865_IN
Definition: lorawan_multiband.h:351
const DRParams_t DefaultDrParamsIN[]
static
Initial value:
= {
}
#define DR7_PARAMS_IN
Definition: lorawan_multiband.h:370
#define DR3_PARAMS_IN
Definition: lorawan_multiband.h:366
#define DR0_PARAMS_IN
Definition: lorawan_multiband.h:363
#define DR5_PARAMS_IN
Definition: lorawan_multiband.h:368
#define DR4_PARAMS_IN
Definition: lorawan_multiband.h:367
#define DR1_PARAMS_IN
Definition: lorawan_multiband.h:364
#define DR2_PARAMS_IN
Definition: lorawan_multiband.h:365
#define DR6_PARAMS_IN
Definition: lorawan_multiband.h:369
const ItemMap_t pds_reg_ind_item_list[]
Initial value:
= {
}
Definition: pds_interface.h:112
Definition: lorawan_multiband.h:715
#define PDS_REG_IND_CH_PARAM_1_OFFSET
Definition: lorawan_mband_in.c:78
#define DECLARE_ITEM(RAMADDR, FILEID, ITEMID, SIZE, MEMOFFSET)
Definition: pds_interface.h:50
#define PDS_REG_IND_CH_PARAM_1_ADDR
Definition: lorawan_mband_in.c:72
#define PDS_REG_IND_CH_PARAM_2_SIZE
Definition: lorawan_mband_in.c:76
#define PDS_REG_IND_CH_PARAM_1_SIZE
Definition: lorawan_mband_in.c:75
#define PDS_REG_IND_CH_PARAM_2_ADDR
Definition: lorawan_mband_in.c:73
Definition: lorawan_multiband.h:716
#define PDS_REG_IND_CH_PARAM_2_OFFSET
Definition: lorawan_mband_in.c:79