Microchip® Advanced Software Framework

lorawan_mband_as.c File Reference

Macros

#define PDS_REG_AS_BAND_ADDR   ((uint8_t *)&(RegParams.band))
 
#define PDS_REG_AS_BAND_OFFSET   (PDS_REG_AS_CH_PARAM_2_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_AS_CH_PARAM_2_SIZE)
 
#define PDS_REG_AS_BAND_SIZE   sizeof(RegParams.band)
 
#define PDS_REG_AS_CH_PARAM_1_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.chParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
 
#define PDS_REG_AS_CH_PARAM_1_OFFSET   (PDS_FILE_START_OFFSET)
 
#define PDS_REG_AS_CH_PARAM_1_SIZE   sizeof(RegParams.cmnParams.paramsType2.chParams)
 
#define PDS_REG_AS_CH_PARAM_2_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.othChParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
 
#define PDS_REG_AS_CH_PARAM_2_OFFSET   (PDS_REG_AS_CH_PARAM_1_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_AS_CH_PARAM_1_SIZE)
 
#define PDS_REG_AS_CH_PARAM_2_SIZE   sizeof(RegParams.cmnParams.paramsType2.othChParams)
 

Functions

void InitDefault923Channels (void)
 
StackRetStatus_t LORAReg_InitAS (IsmBand_t ismBand)
 
void LorawanReg_AS_Pds_Cb (void)
 

Variables

static const OthChannelParams_t AdvChannels923 []
 
PdsOperations_t aRegAsPdsOps [PDS_REG_AS_MAX_VALUE]
 
static const ChannelParams_t DefaultChannels923 []
 
static const DRParams_t DefaultDrParamsAS []
 
const ItemMap_t pds_reg_as_item_list []
 
static const uint16_t SubBandDutyCycle923 []
 
static const SubBandParams_t SubBandParams923 []
 

#define PDS_REG_AS_BAND_ADDR   ((uint8_t *)&(RegParams.band))
#define PDS_REG_AS_BAND_SIZE   sizeof(RegParams.band)
#define PDS_REG_AS_CH_PARAM_1_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.chParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
#define PDS_REG_AS_CH_PARAM_1_OFFSET   (PDS_FILE_START_OFFSET)
#define PDS_REG_AS_CH_PARAM_1_SIZE   sizeof(RegParams.cmnParams.paramsType2.chParams)
#define PDS_REG_AS_CH_PARAM_2_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType2.othChParams[MAX_CHANNELS_T2 - MAX_CHANNELS_T2]))
#define PDS_REG_AS_CH_PARAM_2_OFFSET   (PDS_REG_AS_CH_PARAM_1_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_AS_CH_PARAM_1_SIZE)
#define PDS_REG_AS_CH_PARAM_2_SIZE   sizeof(RegParams.cmnParams.paramsType2.othChParams)

StackRetStatus_t LORAReg_InitAS ( IsmBand_t  ismBand)

References aRegAsPdsOps, _RegParams::band, _RegPdsItems::band_item_id, _RegPdsItems::ch_param_1_item_id, _RegPdsItems::ch_param_2_item_id, _RegParamsType2::chParams, _RegParams::cmnParams, DEFAULT_EIRP_AS, _RegParams::DefRx1DataRate, _RegParams::DefRx2DataRate, _RegParams::DefRx2Freq, _RegParams::defTxPwrIndx, _TxParams::downlinkDwellTime, _RegParamsType2::DRParams, _RegParamsType2::DutyCycleTimer, _RegParams::FeaturesSupport, _PdsFileMarks::fIDcb, _RegPdsItems::fileid, _PdsFileMarks::fileMarkListAddr, InitDefault923Channels(), ISM_BRN923, ISM_VTM923, _PdsFileMarks::itemListAddr, _RegParams::joinBackoffTimer, _RegParams::joinbccount, _RegParams::joinDutyCycleTimeout, _RegParams::joinDutyCycleTimer, _RegPdsItems::lastUsedSB, LORAREG_InitGetAttrFnPtrsAS(), LORAREG_InitSetAttrFnPtrsAS(), LORAREG_InitValidateAttrFnPtrsAS(), LORAWAN_INVALID_PARAMETER, LORAWAN_SUCCESS, LorawanReg_AS_Pds_Cb(), MAC_RX1_WINDOW_DATARATE_AS, MAC_RX2_WINDOW_DATARATE_AS, MAC_RX2_WINDOW_FREQ_AS, _RegParams::MacTxPower, MAX_CHANNELS_AS, MAX_NUM_SUBBANDS_AS, MAX_TX_PWR_INDEX_AS, _RegParams::maxChannels, _RegParams::maxDataRate, _TxParams::maxEIRP, _RegParams::maxSubBands, _RegParams::maxTxPwr, _RegParams::maxTxPwrIndx, _RegParams::minDataRate, _RegParams::MinNewChIndex, _RegParamsType2::minNonDefChId, NEW_CHANNEL_INDEX_AS, _PdsFileMarks::numItems, _RegParamsType2::othChParams, _CmnParams::paramsType2, _RegParams::pChParams, _RegParams::pDrParams, PDS_FILE_REG_AS_05_IDX, PDS_REG_AS_BAND, PDS_REG_AS_CH_PARAM_1, PDS_REG_AS_CH_PARAM_2, PDS_REG_AS_MAX_VALUE, PDS_RegFile(), PDS_STORE, _RegParams::pDutyCycleTimer, _RegParams::pJoinBackoffTimer, _RegParams::pJoinDutyCycleTimer, _RegParams::pOtherChParams, _RegParams::pSubBandParams, _RegParams::regParamItems, RegParams, regTimerId, _JoinDutyCycleTimer::remainingtime, result, _RegParams::Rx1DrOffset, _RegParamsType2::SubBands, _DutyCycleTimer::timerId, _JoinDutyCycleTimer::timerId, _JoinBackoffTimer::timerId, _RegParams::TxCurDataRate, _RegParamsType2::txParams, UNSUPPORTED_BAND, and _TxParams::uplinkDwellTime.

Referenced by LORAREG_Init().

void LorawanReg_AS_Pds_Cb ( void  )

Referenced by LORAReg_InitAS().

const OthChannelParams_t AdvChannels923[]
static
Initial value:
= {
}
#define ADV_LC1_923
Definition: lorawan_multiband.h:107
#define ADV_LC0_923
Definition: lorawan_multiband.h:106
const ChannelParams_t DefaultChannels923[]
static
Initial value:
= {
}
#define LC1_923
Definition: lorawan_multiband.h:104
#define LC0_923
Definition: lorawan_multiband.h:103
const DRParams_t DefaultDrParamsAS[]
static
Initial value:
= {
}
#define DR4_PARAMS_AS
Definition: lorawan_multiband.h:119
#define DR3_PARAMS_AS
Definition: lorawan_multiband.h:118
#define DR2_PARAMS_AS
Definition: lorawan_multiband.h:117
#define DR6_PARAMS_AS
Definition: lorawan_multiband.h:121
#define DR1_PARAMS_AS
Definition: lorawan_multiband.h:116
#define DR5_PARAMS_AS
Definition: lorawan_multiband.h:120
#define DR0_PARAMS_AS
Definition: lorawan_multiband.h:115
#define DR7_PARAMS_AS
Definition: lorawan_multiband.h:122
const ItemMap_t pds_reg_as_item_list[]
Initial value:
= {
(uint8_t)PDS_REG_AS_BAND,
}
#define PDS_REG_AS_BAND_SIZE
Definition: lorawan_mband_as.c:85
Definition: pds_interface.h:110
#define PDS_REG_AS_CH_PARAM_1_OFFSET
Definition: lorawan_mband_as.c:87
#define PDS_REG_AS_CH_PARAM_2_OFFSET
Definition: lorawan_mband_as.c:88
#define PDS_REG_AS_CH_PARAM_1_SIZE
Definition: lorawan_mband_as.c:83
#define DECLARE_ITEM(RAMADDR, FILEID, ITEMID, SIZE, MEMOFFSET)
Definition: pds_interface.h:50
#define PDS_REG_AS_BAND_OFFSET
Definition: lorawan_mband_as.c:89
#define PDS_REG_AS_BAND_ADDR
Definition: lorawan_mband_as.c:81
Definition: lorawan_multiband.h:670
Definition: lorawan_multiband.h:668
#define PDS_REG_AS_CH_PARAM_1_ADDR
Definition: lorawan_mband_as.c:79
Definition: lorawan_multiband.h:669
#define PDS_REG_AS_CH_PARAM_2_SIZE
Definition: lorawan_mband_as.c:84
#define PDS_REG_AS_CH_PARAM_2_ADDR
Definition: lorawan_mband_as.c:80
const uint16_t SubBandDutyCycle923[]
static
Initial value:
=
{
}
#define SB0_923_DC_0
Definition: lorawan_multiband.h:111

Referenced by InitDefault923Channels().

const SubBandParams_t SubBandParams923[]
static
Initial value:
=
{
}
#define SB0_923
Definition: lorawan_multiband.h:110