Microchip® Advanced Software Framework

lorawan_mband_au.c File Reference

Macros

#define PDS_REG_AU_CH_PARAM_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType1.chParams[MAX_CHANNELS_T1 - MAX_CHANNELS_T1]))
 
#define PDS_REG_AU_CH_PARAM_OFFSET   (PDS_FILE_START_OFFSET)
 
#define PDS_REG_AU_CH_PARAM_SIZE   sizeof(RegParams.cmnParams.paramsType1.chParams)
 
#define PDS_REG_AU_LAST_USED_SB_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType1.lastUsedSB))
 
#define PDS_REG_AU_LAST_USED_SB_OFFSET   (PDS_REG_AU_CH_PARAM_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_AU_CH_PARAM_SIZE)
 
#define PDS_REG_AU_LAST_USED_SB_SIZE   sizeof(RegParams.cmnParams.paramsType1.lastUsedSB)
 

Functions

static void InitDefault915ChannelsAU (void)
 
StackRetStatus_t LORAReg_InitAU (IsmBand_t ismBand)
 
void LorawanReg_AU_Pds_Cb (void)
 

Variables

PdsOperations_t aRegAuPdsOps [PDS_REG_AU_MAX_VALUE]
 
static const ChannelParams_t DefaultChannels915AU [MAX_CHANNELS_AU_NA]
 
static const DRParams_t DefaultDrParamsAU []
 
const ItemMap_t pds_reg_au_item_list []
 

#define PDS_REG_AU_CH_PARAM_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType1.chParams[MAX_CHANNELS_T1 - MAX_CHANNELS_T1]))
#define PDS_REG_AU_CH_PARAM_OFFSET   (PDS_FILE_START_OFFSET)
#define PDS_REG_AU_CH_PARAM_SIZE   sizeof(RegParams.cmnParams.paramsType1.chParams)
#define PDS_REG_AU_LAST_USED_SB_ADDR   ((uint8_t *)&(RegParams.cmnParams.paramsType1.lastUsedSB))
#define PDS_REG_AU_LAST_USED_SB_OFFSET   (PDS_REG_AU_CH_PARAM_OFFSET + PDS_SIZE_OF_ITEM_HDR + PDS_REG_AU_CH_PARAM_SIZE)
#define PDS_REG_AU_LAST_USED_SB_SIZE   sizeof(RegParams.cmnParams.paramsType1.lastUsedSB)

static void InitDefault915ChannelsAU ( void  )
static

References _RegParams::pChParams, and RegParams.

Referenced by LORAReg_InitAU().

StackRetStatus_t LORAReg_InitAU ( IsmBand_t  ismBand)

References _RegParamsType1::alternativeChannel, aRegAuPdsOps, _RegParams::band, _RegPdsItems::band_item_id, _RegPdsItems::ch_param_1_item_id, _RegPdsItems::ch_param_2_item_id, _RegParamsType1::chParams, _RegParams::cmnParams, DEFAULT_EIRP_AU, _RegParams::DefRx1DataRate, _RegParams::DefRx2DataRate, _RegParams::DefRx2Freq, _RegParams::defTxPwrIndx, DOWNSTREAM_CH0_AU, _RegParamsType1::DownStreamCh0Freq, DR0, DR13, DR6, DR8, _RegParamsType1::DRParams, _RegParams::FeaturesSupport, _PdsFileMarks::fIDcb, _RegPdsItems::fileid, _PdsFileMarks::fileMarkListAddr, InitDefault915ChannelsAU(), _PdsFileMarks::itemListAddr, _RegParams::joinBackoffTimer, _RegParams::joinbccount, _RegParams::joinDutyCycleTimeout, _RegParams::joinDutyCycleTimer, _RegPdsItems::lastUsedSB, _RegParamsType1::lastUsedSB, LORAREG_InitGetAttrFnPtrsAU(), LORAREG_InitSetAttrFnPtrsAU(), LORAREG_InitValidateAttrFnPtrsAU(), LORAWAN_SUCCESS, LorawanReg_AU_Pds_Cb(), MAC_RX1_WINDOW_DATARATE_AU, MAC_RX2_WINDOW_DATARATE_AU, MAC_RX2_WINDOW_FREQ_AU, _RegParams::MacTxPower, _RegParamsType1::Max_125khzChan, _RegParamsType1::Max_500khzChan, MAX_CHANNELS_AU_NA, MAX_CHANNELS_BANDWIDTH_125_AU_NA, MAX_CHANNELS_BANDWIDTH_500_AU_NA, _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_AU_09_IDX, PDS_REG_AU_CH_PARAM, PDS_REG_AU_LAST_USED_SB, PDS_REG_AU_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_AU, UPSTREAM_CH64_AU, _RegParamsType1::UpStreamCh0Freq, and _RegParamsType1::UpStreamCh64Freq.

Referenced by LORAREG_Init().

void LorawanReg_AU_Pds_Cb ( void  )

Referenced by LORAReg_InitAU().

const ChannelParams_t DefaultChannels915AU[MAX_CHANNELS_AU_NA]
static
Initial value:
#define LC0_915_AU
Definition: lorawan_multiband.h:173
#define LC18_915_AU
Definition: lorawan_multiband.h:191
#define LC29_915_AU
Definition: lorawan_multiband.h:202
#define LC9_915_AU
Definition: lorawan_multiband.h:182
#define LC70_915_AU
Definition: lorawan_multiband.h:243
#define LC11_915_AU
Definition: lorawan_multiband.h:184
#define LC54_915_AU
Definition: lorawan_multiband.h:227
#define LC36_915_AU
Definition: lorawan_multiband.h:209
#define LC68_915_AU
Definition: lorawan_multiband.h:241
#define LC13_915_AU
Definition: lorawan_multiband.h:186
#define LC43_915_AU
Definition: lorawan_multiband.h:216
#define LC2_915_AU
Definition: lorawan_multiband.h:175
#define LC60_915_AU
Definition: lorawan_multiband.h:233
#define LC53_915_AU
Definition: lorawan_multiband.h:226
#define LC21_915_AU
Definition: lorawan_multiband.h:194
#define LC31_915_AU
Definition: lorawan_multiband.h:204
#define LC69_915_AU
Definition: lorawan_multiband.h:242
#define LC4_915_AU
Definition: lorawan_multiband.h:177
#define LC62_915_AU
Definition: lorawan_multiband.h:235
#define LC3_915_AU
Definition: lorawan_multiband.h:176
#define LC59_915_AU
Definition: lorawan_multiband.h:232
#define LC55_915_AU
Definition: lorawan_multiband.h:228
#define LC28_915_AU
Definition: lorawan_multiband.h:201
#define LC41_915_AU
Definition: lorawan_multiband.h:214
#define LC37_915_AU
Definition: lorawan_multiband.h:210
#define LC23_915_AU
Definition: lorawan_multiband.h:196
#define LC32_915_AU
Definition: lorawan_multiband.h:205
#define LC8_915_AU
Definition: lorawan_multiband.h:181
#define LC66_915_AU
Definition: lorawan_multiband.h:239
#define LC48_915_AU
Definition: lorawan_multiband.h:221
#define LC42_915_AU
Definition: lorawan_multiband.h:215
#define LC34_915_AU
Definition: lorawan_multiband.h:207
#define LC44_915_AU
Definition: lorawan_multiband.h:217
#define LC7_915_AU
Definition: lorawan_multiband.h:180
#define LC63_915_AU
Definition: lorawan_multiband.h:236
#define LC19_915_AU
Definition: lorawan_multiband.h:192
#define LC22_915_AU
Definition: lorawan_multiband.h:195
#define LC12_915_AU
Definition: lorawan_multiband.h:185
#define LC64_915_AU
Definition: lorawan_multiband.h:237
#define LC52_915_AU
Definition: lorawan_multiband.h:225
#define LC40_915_AU
Definition: lorawan_multiband.h:213
#define LC56_915_AU
Definition: lorawan_multiband.h:229
#define LC15_915_AU
Definition: lorawan_multiband.h:188
#define LC16_915_AU
Definition: lorawan_multiband.h:189
#define LC46_915_AU
Definition: lorawan_multiband.h:219
#define LC6_915_AU
Definition: lorawan_multiband.h:179
#define LC5_915_AU
Definition: lorawan_multiband.h:178
#define LC45_915_AU
Definition: lorawan_multiband.h:218
#define LC35_915_AU
Definition: lorawan_multiband.h:208
#define LC50_915_AU
Definition: lorawan_multiband.h:223
#define LC25_915_AU
Definition: lorawan_multiband.h:198
#define LC71_915_AU
Definition: lorawan_multiband.h:244
#define LC58_915_AU
Definition: lorawan_multiband.h:231
#define LC39_915_AU
Definition: lorawan_multiband.h:212
#define LC33_915_AU
Definition: lorawan_multiband.h:206
#define LC17_915_AU
Definition: lorawan_multiband.h:190
#define LC47_915_AU
Definition: lorawan_multiband.h:220
#define LC65_915_AU
Definition: lorawan_multiband.h:238
#define LC26_915_AU
Definition: lorawan_multiband.h:199
#define LC24_915_AU
Definition: lorawan_multiband.h:197
#define LC51_915_AU
Definition: lorawan_multiband.h:224
#define LC30_915_AU
Definition: lorawan_multiband.h:203
#define LC38_915_AU
Definition: lorawan_multiband.h:211
#define LC20_915_AU
Definition: lorawan_multiband.h:193
#define LC61_915_AU
Definition: lorawan_multiband.h:234
#define LC1_915_AU
Definition: lorawan_multiband.h:174
#define LC27_915_AU
Definition: lorawan_multiband.h:200
#define LC14_915_AU
Definition: lorawan_multiband.h:187
#define LC10_915_AU
Definition: lorawan_multiband.h:183
#define LC49_915_AU
Definition: lorawan_multiband.h:222
#define LC67_915_AU
Definition: lorawan_multiband.h:240
#define LC57_915_AU
Definition: lorawan_multiband.h:230
const DRParams_t DefaultDrParamsAU[]
static
Initial value:
= {
}
#define DR10_PARAMS_AU
Definition: lorawan_multiband.h:259
#define DR11_PARAMS_AU
Definition: lorawan_multiband.h:260
#define DR12_PARAMS_AU
Definition: lorawan_multiband.h:261
#define DR2_PARAMS_AU
Definition: lorawan_multiband.h:251
#define DR13_PARAMS_AU
Definition: lorawan_multiband.h:262
#define DR8_PARAMS_AU
Definition: lorawan_multiband.h:257
#define DR6_PARAMS_AU
Definition: lorawan_multiband.h:255
#define DR7_PARAMS_AU
Definition: lorawan_multiband.h:256
#define DR9_PARAMS_AU
Definition: lorawan_multiband.h:258
#define DR1_PARAMS_AU
Definition: lorawan_multiband.h:250
#define DR4_PARAMS_AU
Definition: lorawan_multiband.h:253
#define DR5_PARAMS_AU
Definition: lorawan_multiband.h:254
#define DR3_PARAMS_AU
Definition: lorawan_multiband.h:252
#define DR0_PARAMS_AU
Definition: lorawan_multiband.h:249
const ItemMap_t pds_reg_au_item_list[]
Initial value:
= {
}
#define PDS_REG_AU_CH_PARAM_ADDR
Definition: lorawan_mband_au.c:78
#define PDS_REG_AU_LAST_USED_SB_OFFSET
Definition: lorawan_mband_au.c:85
Definition: lorawan_multiband.h:653
#define PDS_REG_AU_CH_PARAM_SIZE
Definition: lorawan_mband_au.c:81
Definition: pds_interface.h:114
#define PDS_REG_AU_LAST_USED_SB_ADDR
Definition: lorawan_mband_au.c:79
#define DECLARE_ITEM(RAMADDR, FILEID, ITEMID, SIZE, MEMOFFSET)
Definition: pds_interface.h:50
#define PDS_REG_AU_CH_PARAM_OFFSET
Definition: lorawan_mband_au.c:84
#define PDS_REG_AU_LAST_USED_SB_SIZE
Definition: lorawan_mband_au.c:82
Definition: lorawan_multiband.h:654