Lines Matching refs:MacGroup2
791 if( Nvm.MacGroup2.DeviceClass != CLASS_C ) in UpdateRxSlotIdleState()
807 if( Nvm.MacGroup2.DeviceClass != CLASS_C ) in ProcessRadioTxDone()
824 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in ProcessRadioTxDone()
840 …txDone.ElapsedTimeSinceStartUp = SysTimeSub( SysTimeGetMcuTime( ), Nvm.MacGroup2.InitializationTim… in ProcessRadioTxDone()
843 if( Nvm.MacGroup2.NetworkActivation == ACTIVATION_TYPE_NONE ) in ProcessRadioTxDone()
848 RegionSetBandTxDone( Nvm.MacGroup2.Region, &txDone ); in ProcessRadioTxDone()
884 uint32_t address = Nvm.MacGroup2.DevAddr; in ProcessRadioRxDone()
925 if( Nvm.MacGroup2.DeviceClass == CLASS_B ) in ProcessRadioRxDone()
974 …if( ( Nvm.MacGroup2.NetworkActivation != ACTIVATION_TYPE_NONE ) && ( Nvm.MacGroup2.IsRejoinAcceptP… in ProcessRadioRxDone()
1007 … verifyRxDr.DatarateParams.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in ProcessRadioRxDone()
1008 if( RegionVerify( Nvm.MacGroup2.Region, &verifyRxDr, PHY_RX_DR ) == false ) in ProcessRadioRxDone()
1020 Nvm.MacGroup2.NetID = ( uint32_t ) macMsgJoinAccept.NetID[0]; in ProcessRadioRxDone()
1021 Nvm.MacGroup2.NetID |= ( ( uint32_t ) macMsgJoinAccept.NetID[1] << 8 ); in ProcessRadioRxDone()
1022 Nvm.MacGroup2.NetID |= ( ( uint32_t ) macMsgJoinAccept.NetID[2] << 16 ); in ProcessRadioRxDone()
1025 Nvm.MacGroup2.DevAddr = macMsgJoinAccept.DevAddr; in ProcessRadioRxDone()
1028 Nvm.MacGroup2.MacParams.Rx1DrOffset = macMsgJoinAccept.DLSettings.Bits.RX1DRoffset; in ProcessRadioRxDone()
1033 … Nvm.MacGroup2.MacParams.Rx2Channel.Datarate = macMsgJoinAccept.DLSettings.Bits.RX2DataRate; in ProcessRadioRxDone()
1034 … Nvm.MacGroup2.MacParams.RxCChannel.Datarate = macMsgJoinAccept.DLSettings.Bits.RX2DataRate; in ProcessRadioRxDone()
1038 Nvm.MacGroup2.MacParams.ReceiveDelay1 = macMsgJoinAccept.RxDelay; in ProcessRadioRxDone()
1039 if( Nvm.MacGroup2.MacParams.ReceiveDelay1 == 0 ) in ProcessRadioRxDone()
1041 Nvm.MacGroup2.MacParams.ReceiveDelay1 = 1; in ProcessRadioRxDone()
1043 Nvm.MacGroup2.MacParams.ReceiveDelay1 *= 1000; in ProcessRadioRxDone()
1044 … Nvm.MacGroup2.MacParams.ReceiveDelay2 = Nvm.MacGroup2.MacParams.ReceiveDelay1 + 1000; in ProcessRadioRxDone()
1047 Nvm.MacGroup2.MacParams.ChannelsNbTrans = 1; in ProcessRadioRxDone()
1052 Nvm.MacGroup2.Version.Value = LORAMAC_FALLBACK_VERSION; in ProcessRadioRxDone()
1056 Nvm.MacGroup2.Version.Value = LORAMAC_VERSION; in ProcessRadioRxDone()
1066 RegionApplyCFList( Nvm.MacGroup2.Region, &applyCFList ); in ProcessRadioRxDone()
1068 Nvm.MacGroup2.NetworkActivation = ACTIVATION_TYPE_OTAA; in ProcessRadioRxDone()
1071 if( Nvm.MacGroup2.Version.Fields.Minor >= 1 ) in ProcessRadioRxDone()
1074 macCmdPayload[0] = Nvm.MacGroup2.Version.Fields.Minor; in ProcessRadioRxDone()
1085 if( Nvm.MacGroup2.IsRejoinAcceptPending == true ) in ProcessRadioRxDone()
1087 Nvm.MacGroup2.IsRejoinAcceptPending = false; in ProcessRadioRxDone()
1114 getPhy.UplinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in ProcessRadioRxDone()
1117 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in ProcessRadioRxDone()
1139 if( Nvm.MacGroup2.DeviceClass == CLASS_B ) in ProcessRadioRxDone()
1173 … if( ( Nvm.MacGroup2.MulticastChannelList[i].ChannelParams.Address == macMsgData.FHDR.DevAddr ) && in ProcessRadioRxDone()
1174 ( Nvm.MacGroup2.MulticastChannelList[i].ChannelParams.IsEnabled == true ) ) in ProcessRadioRxDone()
1177 addrID = Nvm.MacGroup2.MulticastChannelList[i].ChannelParams.GroupID; in ProcessRadioRxDone()
1178 downLinkCounter = *( Nvm.MacGroup2.MulticastChannelList[i].DownLinkCounter ); in ProcessRadioRxDone()
1179 address = Nvm.MacGroup2.MulticastChannelList[i].ChannelParams.Address; in ProcessRadioRxDone()
1180 if( Nvm.MacGroup2.DeviceClass == CLASS_C ) in ProcessRadioRxDone()
1199 …macCryptoStatus = GetFCntDown( addrID, fType, &macMsgData, Nvm.MacGroup2.Version, &fCntID, &downLi… in ProcessRadioRxDone()
1249 Nvm.MacGroup2.DownlinkReceived = true; in ProcessRadioRxDone()
1262 if( Nvm.MacGroup2.Version.Fields.Minor == 0 ) in ProcessRadioRxDone()
1285 …ted == true ) || ( macMsgData.FHDR.FCtrl.Bits.FPending > 0 ) ) && ( Nvm.MacGroup2.DeviceClass == C… in ProcessRadioRxDone()
1359 if( Nvm.MacGroup2.IsRejoinAcceptPending == true ) in ProcessRadioRxDone()
1361 Nvm.MacGroup2.IsRejoinAcceptPending = false; in ProcessRadioRxDone()
1373 … if( ( macMsgData.FPort == LORAMAC_CERT_FPORT ) && (Nvm.MacGroup2.IsCertPortOn == false ) ) in ProcessRadioRxDone()
1427 if( Nvm.MacGroup2.DeviceClass != CLASS_C ) in ProcessRadioTxTimeout()
1446 if( Nvm.MacGroup2.DeviceClass != CLASS_C ) in HandleRadioRxErrorTimeout()
1457 if( Nvm.MacGroup2.DeviceClass == CLASS_B ) in HandleRadioRxErrorTimeout()
1644 else if( Nvm.MacGroup2.IsRejoin0RequestQueued == true ) in LoRaMacHandleRejoinEvents()
1649 Nvm.MacGroup2.IsRejoin0RequestQueued = false; in LoRaMacHandleRejoinEvents()
1652 else if( Nvm.MacGroup2.IsRejoin1RequestQueued == true ) in LoRaMacHandleRejoinEvents()
1657 Nvm.MacGroup2.IsRejoin1RequestQueued = false; in LoRaMacHandleRejoinEvents()
1660 else if( Nvm.MacGroup2.IsRejoin2RequestQueued == true ) in LoRaMacHandleRejoinEvents()
1665 Nvm.MacGroup2.IsRejoin2RequestQueued = false; in LoRaMacHandleRejoinEvents()
1797 crc = Crc32( ( uint8_t* ) &nvmData->MacGroup2, sizeof( nvmData->MacGroup2 ) - in LoRaMacHandleNvm()
1798 sizeof( nvmData->MacGroup2.Crc32 ) ); in LoRaMacHandleNvm()
1799 if( crc != nvmData->MacGroup2.Crc32 ) in LoRaMacHandleNvm()
1801 nvmData->MacGroup2.Crc32 = crc; in LoRaMacHandleNvm()
1935 MacCtx.RxWindow1Config.DrOffset = Nvm.MacGroup2.MacParams.Rx1DrOffset; in OnRxWindow1TimerEvent()
1936 MacCtx.RxWindow1Config.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in OnRxWindow1TimerEvent()
1939 MacCtx.RxWindow1Config.NetworkActivation = Nvm.MacGroup2.NetworkActivation; in OnRxWindow1TimerEvent()
1953 MacCtx.RxWindow2Config.Frequency = Nvm.MacGroup2.MacParams.Rx2Channel.Frequency; in OnRxWindow2TimerEvent()
1954 MacCtx.RxWindow2Config.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in OnRxWindow2TimerEvent()
1957 MacCtx.RxWindow2Config.NetworkActivation = Nvm.MacGroup2.NetworkActivation; in OnRxWindow2TimerEvent()
2025 switch( Nvm.MacGroup2.DeviceClass ) in SwitchClass()
2032 Nvm.MacGroup2.MacParams.RxCChannel = Nvm.MacGroup2.MacParams.Rx2Channel; in SwitchClass()
2041 Nvm.MacGroup2.DeviceClass = deviceClass; in SwitchClass()
2047 Nvm.MacGroup2.DeviceClass = deviceClass; in SwitchClass()
2054 if( ( Nvm.MacGroup2.MulticastChannelList[i].ChannelParams.IsEnabled == true ) && in SwitchClass()
2055 … ( Nvm.MacGroup2.MulticastChannelList[i].ChannelParams.RxParams.Class == CLASS_C ) ) in SwitchClass()
2057 …Nvm.MacGroup2.MacParams.RxCChannel.Frequency = Nvm.MacGroup2.MulticastChannelList[i].ChannelParams… in SwitchClass()
2058 …Nvm.MacGroup2.MacParams.RxCChannel.Datarate = Nvm.MacGroup2.MulticastChannelList[i].ChannelParams.… in SwitchClass()
2061 … MacCtx.RxWindowCConfig.Frequency = Nvm.MacGroup2.MacParams.RxCChannel.Frequency; in SwitchClass()
2062 … MacCtx.RxWindowCConfig.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in SwitchClass()
2077 if( Nvm.MacGroup2.Version.Fields.Minor >= 1 ) in SwitchClass()
2079 … LoRaMacCommandsAddCmd( MOTE_MAC_DEVICE_MODE_IND, ( uint8_t* )&Nvm.MacGroup2.DeviceClass, 1 ); in SwitchClass()
2091 Nvm.MacGroup2.DeviceClass = deviceClass; in SwitchClass()
2102 Nvm.MacGroup2.DeviceClass = deviceClass; in SwitchClass()
2110 if( Nvm.MacGroup2.Version.Fields.Minor >= 1 ) in SwitchClass()
2112 … LoRaMacCommandsAddCmd( MOTE_MAC_DEVICE_MODE_IND, ( uint8_t* )&Nvm.MacGroup2.DeviceClass, 1 ); in SwitchClass()
2128 getPhy.UplinkDwellTime = Nvm.MacGroup2.MacParams.UplinkDwellTime; in GetMaxAppPayloadWithoutFOptsLength()
2131 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in GetMaxAppPayloadWithoutFOptsLength()
2183 if( Nvm.MacGroup2.Version.Fields.Minor >= serverMinorVersion ) in ProcessMacCommands()
2221 linkAdrReq.AdrEnabled = Nvm.MacGroup2.AdrCtrlOn; in ProcessMacCommands()
2222 linkAdrReq.UplinkDwellTime = Nvm.MacGroup2.MacParams.UplinkDwellTime; in ProcessMacCommands()
2225 linkAdrReq.CurrentNbRep = Nvm.MacGroup2.MacParams.ChannelsNbTrans; in ProcessMacCommands()
2226 linkAdrReq.Version = Nvm.MacGroup2.Version; in ProcessMacCommands()
2232 if( Nvm.MacGroup2.AdrCtrlOn == true ) in ProcessMacCommands()
2250 … status = RegionLinkAdrReq( Nvm.MacGroup2.Region, &linkAdrReq, &linkAdrDatarate, in ProcessMacCommands()
2258 Nvm.MacGroup2.ChannelsDatarateChangedLinkAdrReq = true; in ProcessMacCommands()
2262 Nvm.MacGroup2.MacParams.ChannelsNbTrans = linkAdrNbRep; in ProcessMacCommands()
2294 Nvm.MacGroup2.MaxDCycle = payload[macIndex++] & 0x0F; in ProcessMacCommands()
2295 Nvm.MacGroup2.AggregatedDCycle = 1 << Nvm.MacGroup2.MaxDCycle; in ProcessMacCommands()
2311 rxParamSetupReq.Datarate = Nvm.MacGroup2.MacParams.Rx2Channel.Datarate; in ProcessMacCommands()
2320 status = RegionRxParamSetupReq( Nvm.MacGroup2.Region, &rxParamSetupReq ); in ProcessMacCommands()
2324 Nvm.MacGroup2.MacParams.Rx2Channel.Datarate = rxParamSetupReq.Datarate; in ProcessMacCommands()
2325 Nvm.MacGroup2.MacParams.RxCChannel.Datarate = rxParamSetupReq.Datarate; in ProcessMacCommands()
2326 Nvm.MacGroup2.MacParams.Rx2Channel.Frequency = rxParamSetupReq.Frequency; in ProcessMacCommands()
2327 Nvm.MacGroup2.MacParams.RxCChannel.Frequency = rxParamSetupReq.Frequency; in ProcessMacCommands()
2328 Nvm.MacGroup2.MacParams.Rx1DrOffset = rxParamSetupReq.DrOffset; in ProcessMacCommands()
2362 status = ( uint8_t )RegionNewChannelReq( Nvm.MacGroup2.Region, &newChannelReq ); in ProcessMacCommands()
2379 Nvm.MacGroup2.MacParams.ReceiveDelay1 = delay * 1000; in ProcessMacCommands()
2380 … Nvm.MacGroup2.MacParams.ReceiveDelay2 = Nvm.MacGroup2.MacParams.ReceiveDelay1 + 1000; in ProcessMacCommands()
2405 if( RegionTxParamSetupReq( Nvm.MacGroup2.Region, &txParamSetupReq ) != -1 ) in ProcessMacCommands()
2408 Nvm.MacGroup2.MacParams.UplinkDwellTime = txParamSetupReq.UplinkDwellTime; in ProcessMacCommands()
2409 Nvm.MacGroup2.MacParams.DownlinkDwellTime = txParamSetupReq.DownlinkDwellTime; in ProcessMacCommands()
2410 Nvm.MacGroup2.MacParams.MaxEirp = LoRaMacMaxEirpTable[txParamSetupReq.MaxEirp]; in ProcessMacCommands()
2413 getPhy.UplinkDwellTime = Nvm.MacGroup2.MacParams.UplinkDwellTime; in ProcessMacCommands()
2414 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in ProcessMacCommands()
2427 if( Nvm.MacGroup2.Version.Fields.Minor >= serverMinorVersion ) in ProcessMacCommands()
2448 status = ( uint8_t )RegionDlChannelReq( Nvm.MacGroup2.Region, &dlChannelReq ); in ProcessMacCommands()
2470 Nvm.MacGroup2.MacParams.AdrAckDelay = 0x01 << delayExp; in ProcessMacCommands()
2473 Nvm.MacGroup2.MacParams.AdrAckLimit = 0x01 << limitExp; in ProcessMacCommands()
2488 Nvm.MacGroup2.ForceRejoinMaxRetries = 0x07 & payload[macIndex]; in ProcessMacCommands()
2490 Nvm.MacGroup2.ForceRejoinType = ( 0x70 & payload[macIndex] ) >> 4; in ProcessMacCommands()
2521 Nvm.MacGroup2.Rejoin0CycleInSec = cycleInSec; in ProcessMacCommands()
2523 Nvm.MacGroup2.Rejoin0UplinksLimit = uplinkLimit; in ProcessMacCommands()
2671 if( Nvm.MacGroup2.NetworkActivation == ACTIVATION_TYPE_NONE ) in Send()
2675 if( Nvm.MacGroup2.MaxDCycle == 0 ) in Send()
2682 fCtrl.Bits.Adr = Nvm.MacGroup2.AdrCtrlOn; in Send()
2685 if( Nvm.MacGroup2.DeviceClass == CLASS_B ) in Send()
2704 adrNext.AdrAckLimit = Nvm.MacGroup2.MacParams.AdrAckLimit; in Send()
2705 adrNext.AdrAckDelay = Nvm.MacGroup2.MacParams.AdrAckDelay; in Send()
2708 adrNext.NbTrans = Nvm.MacGroup2.MacParams.ChannelsNbTrans; in Send()
2709 adrNext.UplinkDwellTime = Nvm.MacGroup2.MacParams.UplinkDwellTime; in Send()
2710 adrNext.Region = Nvm.MacGroup2.Region; in Send()
2714 … &Nvm.MacGroup2.MacParams.ChannelsNbTrans, &adrAckCounter ); in Send()
2760 Nvm.MacGroup2.IsRejoinAcceptPending = true; in SendReJoinReq()
2793 Nvm.MacGroup2.IsRejoinAcceptPending = true; in SendReJoinReq()
2802 MacCtx.TxMsg.Message.ReJoin0or2.NetID[0] = Nvm.MacGroup2.NetID & 0xFF; in SendReJoinReq()
2803 MacCtx.TxMsg.Message.ReJoin0or2.NetID[1] = ( Nvm.MacGroup2.NetID >> 8 ) & 0xFF; in SendReJoinReq()
2804 MacCtx.TxMsg.Message.ReJoin0or2.NetID[2] = ( Nvm.MacGroup2.NetID >> 16 ) & 0xFF; in SendReJoinReq()
2850 if( Nvm.MacGroup2.DeviceClass == CLASS_B ) in CheckForClassBCollision()
2867 RegionComputeRxWindowParameters( Nvm.MacGroup2.Region, in ComputeRxWindowParameters()
2868 RegionApplyDrOffset( Nvm.MacGroup2.Region, in ComputeRxWindowParameters()
2869 Nvm.MacGroup2.MacParams.DownlinkDwellTime, in ComputeRxWindowParameters()
2871 Nvm.MacGroup2.MacParams.Rx1DrOffset ), in ComputeRxWindowParameters()
2872 Nvm.MacGroup2.MacParams.MinRxSymbols, in ComputeRxWindowParameters()
2873 Nvm.MacGroup2.MacParams.SystemMaxRxError, in ComputeRxWindowParameters()
2876 RegionComputeRxWindowParameters( Nvm.MacGroup2.Region, in ComputeRxWindowParameters()
2877 Nvm.MacGroup2.MacParams.Rx2Channel.Datarate, in ComputeRxWindowParameters()
2878 Nvm.MacGroup2.MacParams.MinRxSymbols, in ComputeRxWindowParameters()
2879 Nvm.MacGroup2.MacParams.SystemMaxRxError, in ComputeRxWindowParameters()
2883 …MacCtx.RxWindow1Delay = Nvm.MacGroup2.MacParams.ReceiveDelay1 + MacCtx.RxWindow1Config.WindowOffse… in ComputeRxWindowParameters()
2884 …MacCtx.RxWindow2Delay = Nvm.MacGroup2.MacParams.ReceiveDelay2 + MacCtx.RxWindow2Config.WindowOffse… in ComputeRxWindowParameters()
2888 …MacCtx.RxWindow1Delay = Nvm.MacGroup2.MacParams.JoinAcceptDelay1 + MacCtx.RxWindow1Config.WindowOf… in ComputeRxWindowParameters()
2889 …MacCtx.RxWindow2Delay = Nvm.MacGroup2.MacParams.JoinAcceptDelay2 + MacCtx.RxWindow2Config.WindowOf… in ComputeRxWindowParameters()
2897 if( Nvm.MacGroup2.NetworkActivation != ACTIVATION_TYPE_NONE ) in VerifyTxFrame()
2982 nextChan.DutyCycleEnabled = Nvm.MacGroup2.DutyCycleOn; in ScheduleTx()
2983 …nextChan.ElapsedTimeSinceStartUp = SysTimeSub( SysTimeGetMcuTime( ), Nvm.MacGroup2.InitializationT… in ScheduleTx()
2990 if( Nvm.MacGroup2.NetworkActivation == ACTIVATION_TYPE_NONE ) in ScheduleTx()
2997 …status = RegionNextChannel( Nvm.MacGroup2.Region, &nextChan, &MacCtx.Channel, &MacCtx.DutyCycleWai… in ScheduleTx()
3104 …Nvm.MacGroup1.AggregatedTimeOff = ( MacCtx.TxTimeOnAir * Nvm.MacGroup2.AggregatedDCycle - MacCtx.T… in CalculateBackOff()
3136 Nvm.MacGroup2.NetworkActivation = ACTIVATION_TYPE_NONE; in ResetMacParameters()
3146 Nvm.MacGroup2.MaxDCycle = 0; in ResetMacParameters()
3147 Nvm.MacGroup2.AggregatedDCycle = 1; in ResetMacParameters()
3149 Nvm.MacGroup1.ChannelsTxPower = Nvm.MacGroup2.ChannelsTxPowerDefault; in ResetMacParameters()
3150 Nvm.MacGroup1.ChannelsDatarate = Nvm.MacGroup2.ChannelsDatarateDefault; in ResetMacParameters()
3151 Nvm.MacGroup2.MacParams.Rx1DrOffset = Nvm.MacGroup2.MacParamsDefaults.Rx1DrOffset; in ResetMacParameters()
3152 Nvm.MacGroup2.MacParams.Rx2Channel = Nvm.MacGroup2.MacParamsDefaults.Rx2Channel; in ResetMacParameters()
3153 Nvm.MacGroup2.MacParams.RxCChannel = Nvm.MacGroup2.MacParamsDefaults.RxCChannel; in ResetMacParameters()
3154 Nvm.MacGroup2.MacParams.UplinkDwellTime = Nvm.MacGroup2.MacParamsDefaults.UplinkDwellTime; in ResetMacParameters()
3155 Nvm.MacGroup2.MacParams.DownlinkDwellTime = Nvm.MacGroup2.MacParamsDefaults.DownlinkDwellTime; in ResetMacParameters()
3156 Nvm.MacGroup2.MacParams.MaxEirp = Nvm.MacGroup2.MacParamsDefaults.MaxEirp; in ResetMacParameters()
3157 Nvm.MacGroup2.MacParams.AntennaGain = Nvm.MacGroup2.MacParamsDefaults.AntennaGain; in ResetMacParameters()
3158 Nvm.MacGroup2.MacParams.AdrAckLimit = Nvm.MacGroup2.MacParamsDefaults.AdrAckLimit; in ResetMacParameters()
3159 Nvm.MacGroup2.MacParams.AdrAckDelay = Nvm.MacGroup2.MacParamsDefaults.AdrAckDelay; in ResetMacParameters()
3163 Nvm.MacGroup2.ChannelsDatarateChangedLinkAdrReq = false; in ResetMacParameters()
3164 Nvm.MacGroup2.DownlinkReceived = false; in ResetMacParameters()
3166 Nvm.MacGroup2.Rejoin0UplinksLimit = 0; in ResetMacParameters()
3167 Nvm.MacGroup2.ForceRejoinMaxRetries = 0; in ResetMacParameters()
3168 Nvm.MacGroup2.ForceRejoinType = 0; in ResetMacParameters()
3169 Nvm.MacGroup2.Rejoin0CycleInSec = 0; in ResetMacParameters()
3170 Nvm.MacGroup2.Rejoin1CycleInSec = 0; in ResetMacParameters()
3171 Nvm.MacGroup2.IsRejoin0RequestQueued = 0; in ResetMacParameters()
3172 Nvm.MacGroup2.IsRejoin1RequestQueued = 0; in ResetMacParameters()
3173 Nvm.MacGroup2.IsRejoin2RequestQueued = 0; in ResetMacParameters()
3181 RegionInitDefaults( Nvm.MacGroup2.Region, ¶ms ); in ResetMacParameters()
3188 MacCtx.RxWindow2Config.Frequency = Nvm.MacGroup2.MacParams.Rx2Channel.Frequency; in ResetMacParameters()
3189 MacCtx.RxWindow2Config.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in ResetMacParameters()
3192 MacCtx.RxWindow2Config.NetworkActivation = Nvm.MacGroup2.NetworkActivation; in ResetMacParameters()
3215 classBParams.LoRaMacDevAddr = &Nvm.MacGroup2.DevAddr; in ResetMacParameters()
3216 classBParams.LoRaMacRegion = &Nvm.MacGroup2.Region; in ResetMacParameters()
3217 classBParams.LoRaMacParams = &Nvm.MacGroup2.MacParams; in ResetMacParameters()
3218 classBParams.MulticastChannels = &Nvm.MacGroup2.MulticastChannelList[0]; in ResetMacParameters()
3219 classBParams.NetworkActivation = &Nvm.MacGroup2.NetworkActivation; in ResetMacParameters()
3227 if( ( Nvm.MacGroup2.Rejoin0UplinksLimit == Nvm.MacGroup1.Rejoin0UplinksCounter ) && in IsReJoin0Required()
3228 ( Nvm.MacGroup2.Version.Fields.Minor >= 1 ) && in IsReJoin0Required()
3229 ( Nvm.MacGroup2.Rejoin0UplinksLimit != 0 ) ) in IsReJoin0Required()
3250 …if( RegionRxConfig( Nvm.MacGroup2.Region, rxConfig, ( int8_t* )&MacCtx.McpsIndication.RxDatarate )… in RxWindowSetup()
3252 Radio.Rx( Nvm.MacGroup2.MacParams.MaxRxWindow ); in RxWindowSetup()
3260 RegionComputeRxWindowParameters( Nvm.MacGroup2.Region, in OpenContinuousRxCWindow()
3261 Nvm.MacGroup2.MacParams.RxCChannel.Datarate, in OpenContinuousRxCWindow()
3262 Nvm.MacGroup2.MacParams.MinRxSymbols, in OpenContinuousRxCWindow()
3263 Nvm.MacGroup2.MacParams.SystemMaxRxError, in OpenContinuousRxCWindow()
3267 MacCtx.RxWindowCConfig.NetworkActivation = Nvm.MacGroup2.NetworkActivation; in OpenContinuousRxCWindow()
3273 …if( RegionRxConfig( Nvm.MacGroup2.Region, &MacCtx.RxWindowCConfig, ( int8_t* )&MacCtx.McpsIndicati… in OpenContinuousRxCWindow()
3308 MacCtx.TxMsg.Message.Data.FHDR.DevAddr = Nvm.MacGroup2.DevAddr; in PrepareFrame()
3394 txConfig.MaxEirp = Nvm.MacGroup2.MacParams.MaxEirp; in SendFrameOnChannel()
3395 txConfig.AntennaGain = Nvm.MacGroup2.MacParams.AntennaGain; in SendFrameOnChannel()
3398 RegionTxConfig( Nvm.MacGroup2.Region, &txConfig, &txPower, &MacCtx.TxTimeOnAir ); in SendFrameOnChannel()
3421 if( Nvm.MacGroup2.DeviceClass == CLASS_B ) in SendFrameOnChannel()
3495 crc = Crc32( ( uint8_t* ) &nvm->MacGroup2, sizeof( nvm->MacGroup2 ) - in RestoreNvmData()
3496 sizeof( nvm->MacGroup2.Crc32 ) ); in RestoreNvmData()
3497 if( crc == nvm->MacGroup2.Crc32 ) in RestoreNvmData()
3499 memcpy1( ( uint8_t* ) &Nvm.MacGroup2, ( uint8_t* ) &nvm->MacGroup2, in RestoreNvmData()
3500 sizeof( Nvm.MacGroup2 ) ); in RestoreNvmData()
3504 MacCtx.RxWindowCConfig.Frequency = Nvm.MacGroup2.MacParams.RxCChannel.Frequency; in RestoreNvmData()
3505 MacCtx.RxWindowCConfig.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in RestoreNvmData()
3512 Radio.SetPublicNetwork( Nvm.MacGroup2.PublicNetwork ); in RestoreNvmData()
3618 Nvm.MacGroup2.MacParams.ChannelsNbTrans ) == true ) in CheckRetransUnconfirmedUplink()
3640 Nvm.MacGroup2.MacParams.ChannelsNbTrans ) == true ) in CheckRetransConfirmedUplink()
3667 if( Nvm.MacGroup2.Rejoin0UplinksLimit != 0 ) in StopRetransmission()
3672 if( Nvm.MacGroup2.Version.Fields.Minor >= 1 ) in StopRetransmission()
3684 if( Nvm.MacGroup1.RekeyIndUplinksCounter == Nvm.MacGroup2.MacParams.AdrAckLimit ) in StopRetransmission()
3686 Nvm.MacGroup2.NetworkActivation = ACTIVATION_TYPE_NONE; in StopRetransmission()
3698 if( Nvm.MacGroup2.AdrCtrlOn == true ) in StopRetransmission()
3771 Nvm.MacGroup2.Region = region; in LoRaMacInitialization()
3772 Nvm.MacGroup2.DeviceClass = CLASS_A; in LoRaMacInitialization()
3775 Nvm.MacGroup2.Version.Value = LORAMAC_VERSION; in LoRaMacInitialization()
3782 RegionInitDefaults( Nvm.MacGroup2.Region, ¶ms ); in LoRaMacInitialization()
3786 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3787 Nvm.MacGroup2.DutyCycleOn = ( bool ) phyParam.Value; in LoRaMacInitialization()
3790 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3791 Nvm.MacGroup2.ChannelsTxPowerDefault = phyParam.Value; in LoRaMacInitialization()
3794 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3795 Nvm.MacGroup2.ChannelsDatarateDefault = phyParam.Value; in LoRaMacInitialization()
3798 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3799 Nvm.MacGroup2.MacParamsDefaults.MaxRxWindow = phyParam.Value; in LoRaMacInitialization()
3802 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3803 Nvm.MacGroup2.MacParamsDefaults.ReceiveDelay1 = phyParam.Value; in LoRaMacInitialization()
3806 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3807 Nvm.MacGroup2.MacParamsDefaults.ReceiveDelay2 = phyParam.Value; in LoRaMacInitialization()
3810 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3811 Nvm.MacGroup2.MacParamsDefaults.JoinAcceptDelay1 = phyParam.Value; in LoRaMacInitialization()
3814 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3815 Nvm.MacGroup2.MacParamsDefaults.JoinAcceptDelay2 = phyParam.Value; in LoRaMacInitialization()
3818 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3819 Nvm.MacGroup2.MacParamsDefaults.Rx1DrOffset = phyParam.Value; in LoRaMacInitialization()
3822 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3823 Nvm.MacGroup2.MacParamsDefaults.Rx2Channel.Frequency = phyParam.Value; in LoRaMacInitialization()
3824 Nvm.MacGroup2.MacParamsDefaults.RxCChannel.Frequency = phyParam.Value; in LoRaMacInitialization()
3827 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3828 Nvm.MacGroup2.MacParamsDefaults.Rx2Channel.Datarate = phyParam.Value; in LoRaMacInitialization()
3829 Nvm.MacGroup2.MacParamsDefaults.RxCChannel.Datarate = phyParam.Value; in LoRaMacInitialization()
3832 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3833 Nvm.MacGroup2.MacParamsDefaults.UplinkDwellTime = phyParam.Value; in LoRaMacInitialization()
3836 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3837 Nvm.MacGroup2.MacParamsDefaults.DownlinkDwellTime = phyParam.Value; in LoRaMacInitialization()
3840 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3841 Nvm.MacGroup2.MacParamsDefaults.MaxEirp = phyParam.fValue; in LoRaMacInitialization()
3844 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3845 Nvm.MacGroup2.MacParamsDefaults.AntennaGain = phyParam.fValue; in LoRaMacInitialization()
3848 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3849 Nvm.MacGroup2.MacParamsDefaults.AdrAckLimit = phyParam.Value; in LoRaMacInitialization()
3852 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacInitialization()
3853 Nvm.MacGroup2.MacParamsDefaults.AdrAckDelay = phyParam.Value; in LoRaMacInitialization()
3856 Nvm.MacGroup2.MacParamsDefaults.ChannelsNbTrans = 1; in LoRaMacInitialization()
3857 Nvm.MacGroup2.MacParamsDefaults.SystemMaxRxError = 10; in LoRaMacInitialization()
3858 Nvm.MacGroup2.MacParamsDefaults.MinRxSymbols = 6; in LoRaMacInitialization()
3860 Nvm.MacGroup2.MacParams.SystemMaxRxError = Nvm.MacGroup2.MacParamsDefaults.SystemMaxRxError; in LoRaMacInitialization()
3861 Nvm.MacGroup2.MacParams.MinRxSymbols = Nvm.MacGroup2.MacParamsDefaults.MinRxSymbols; in LoRaMacInitialization()
3862 Nvm.MacGroup2.MacParams.MaxRxWindow = Nvm.MacGroup2.MacParamsDefaults.MaxRxWindow; in LoRaMacInitialization()
3863 Nvm.MacGroup2.MacParams.ReceiveDelay1 = Nvm.MacGroup2.MacParamsDefaults.ReceiveDelay1; in LoRaMacInitialization()
3864 Nvm.MacGroup2.MacParams.ReceiveDelay2 = Nvm.MacGroup2.MacParamsDefaults.ReceiveDelay2; in LoRaMacInitialization()
3865 Nvm.MacGroup2.MacParams.JoinAcceptDelay1 = Nvm.MacGroup2.MacParamsDefaults.JoinAcceptDelay1; in LoRaMacInitialization()
3866 Nvm.MacGroup2.MacParams.JoinAcceptDelay2 = Nvm.MacGroup2.MacParamsDefaults.JoinAcceptDelay2; in LoRaMacInitialization()
3867 Nvm.MacGroup2.MacParams.ChannelsNbTrans = Nvm.MacGroup2.MacParamsDefaults.ChannelsNbTrans; in LoRaMacInitialization()
3870 Nvm.MacGroup2.IsCertPortOn = true; in LoRaMacInitialization()
3874 Nvm.MacGroup2.PublicNetwork = true; in LoRaMacInitialization()
3895 Nvm.MacGroup2.InitializationTime = SysTimeGetMcuTime( ); in LoRaMacInitialization()
3927 …if( LoRaMacCryptoSetMulticastReference( Nvm.MacGroup2.MulticastChannelList ) != LORAMAC_CRYPTO_SUC… in LoRaMacInitialization()
3935 Radio.SetPublicNetwork( Nvm.MacGroup2.PublicNetwork ); in LoRaMacInitialization()
3954 if( Nvm.MacGroup2.DeviceClass == CLASS_C ) in LoRaMacStop()
3972 int8_t datarate = Nvm.MacGroup2.ChannelsDatarateDefault; in LoRaMacQueryTxPossible()
3973 int8_t txPower = Nvm.MacGroup2.ChannelsTxPowerDefault; in LoRaMacQueryTxPossible()
3984 adrNext.AdrEnabled = Nvm.MacGroup2.AdrCtrlOn; in LoRaMacQueryTxPossible()
3986 adrNext.AdrAckLimit = Nvm.MacGroup2.MacParams.AdrAckLimit; in LoRaMacQueryTxPossible()
3987 adrNext.AdrAckDelay = Nvm.MacGroup2.MacParams.AdrAckDelay; in LoRaMacQueryTxPossible()
3991 adrNext.UplinkDwellTime = Nvm.MacGroup2.MacParams.UplinkDwellTime; in LoRaMacQueryTxPossible()
3992 adrNext.Region = Nvm.MacGroup2.Region; in LoRaMacQueryTxPossible()
4042 mibGet->Param.Class = Nvm.MacGroup2.DeviceClass; in LoRaMacMibGetRequestConfirm()
4047 mibGet->Param.NetworkActivation = Nvm.MacGroup2.NetworkActivation; in LoRaMacMibGetRequestConfirm()
4067 mibGet->Param.AdrEnable = Nvm.MacGroup2.AdrCtrlOn; in LoRaMacMibGetRequestConfirm()
4072 mibGet->Param.NetID = Nvm.MacGroup2.NetID; in LoRaMacMibGetRequestConfirm()
4077 mibGet->Param.DevAddr = Nvm.MacGroup2.DevAddr; in LoRaMacMibGetRequestConfirm()
4082 mibGet->Param.EnablePublicNetwork = Nvm.MacGroup2.PublicNetwork; in LoRaMacMibGetRequestConfirm()
4088 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacMibGetRequestConfirm()
4095 mibGet->Param.Rx2Channel = Nvm.MacGroup2.MacParams.Rx2Channel; in LoRaMacMibGetRequestConfirm()
4100 mibGet->Param.Rx2Channel = Nvm.MacGroup2.MacParamsDefaults.Rx2Channel; in LoRaMacMibGetRequestConfirm()
4105 mibGet->Param.RxCChannel = Nvm.MacGroup2.MacParams.RxCChannel; in LoRaMacMibGetRequestConfirm()
4110 mibGet->Param.RxCChannel = Nvm.MacGroup2.MacParamsDefaults.RxCChannel; in LoRaMacMibGetRequestConfirm()
4116 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacMibGetRequestConfirm()
4124 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacMibGetRequestConfirm()
4131 mibGet->Param.ChannelsNbTrans = Nvm.MacGroup2.MacParams.ChannelsNbTrans; in LoRaMacMibGetRequestConfirm()
4136 mibGet->Param.MaxRxWindow = Nvm.MacGroup2.MacParams.MaxRxWindow; in LoRaMacMibGetRequestConfirm()
4141 mibGet->Param.ReceiveDelay1 = Nvm.MacGroup2.MacParams.ReceiveDelay1; in LoRaMacMibGetRequestConfirm()
4146 mibGet->Param.ReceiveDelay2 = Nvm.MacGroup2.MacParams.ReceiveDelay2; in LoRaMacMibGetRequestConfirm()
4151 mibGet->Param.JoinAcceptDelay1 = Nvm.MacGroup2.MacParams.JoinAcceptDelay1; in LoRaMacMibGetRequestConfirm()
4156 mibGet->Param.JoinAcceptDelay2 = Nvm.MacGroup2.MacParams.JoinAcceptDelay2; in LoRaMacMibGetRequestConfirm()
4162 getPhy.UplinkDwellTime = Nvm.MacGroup2.MacParams.UplinkDwellTime; in LoRaMacMibGetRequestConfirm()
4163 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacMibGetRequestConfirm()
4170 mibGet->Param.ChannelsDefaultDatarate = Nvm.MacGroup2.ChannelsDatarateDefault; in LoRaMacMibGetRequestConfirm()
4180 mibGet->Param.ChannelsDefaultTxPower = Nvm.MacGroup2.ChannelsTxPowerDefault; in LoRaMacMibGetRequestConfirm()
4190 mibGet->Param.SystemMaxRxError = Nvm.MacGroup2.MacParams.SystemMaxRxError; in LoRaMacMibGetRequestConfirm()
4195 mibGet->Param.MinRxSymbols = Nvm.MacGroup2.MacParams.MinRxSymbols; in LoRaMacMibGetRequestConfirm()
4200 mibGet->Param.AntennaGain = Nvm.MacGroup2.MacParams.AntennaGain; in LoRaMacMibGetRequestConfirm()
4210 mibGet->Param.DefaultAntennaGain = Nvm.MacGroup2.MacParamsDefaults.AntennaGain; in LoRaMacMibGetRequestConfirm()
4215 mibGet->Param.LrWanVersion.LoRaWan = Nvm.MacGroup2.Version; in LoRaMacMibGetRequestConfirm()
4221 mibGet->Param.IsCertPortOn = Nvm.MacGroup2.IsCertPortOn; in LoRaMacMibGetRequestConfirm()
4226 mibGet->Param.Rejoin0CycleInSec = Nvm.MacGroup2.Rejoin0CycleInSec; in LoRaMacMibGetRequestConfirm()
4231 mibGet->Param.Rejoin1CycleInSec = Nvm.MacGroup2.Rejoin1CycleInSec; in LoRaMacMibGetRequestConfirm()
4236 mibGet->Param.AdrAckLimit = Nvm.MacGroup2.MacParams.AdrAckLimit; in LoRaMacMibGetRequestConfirm()
4241 mibGet->Param.AdrAckDelay = Nvm.MacGroup2.MacParams.AdrAckDelay; in LoRaMacMibGetRequestConfirm()
4246 mibGet->Param.AdrAckLimit = Nvm.MacGroup2.MacParamsDefaults.AdrAckLimit; in LoRaMacMibGetRequestConfirm()
4251 mibGet->Param.AdrAckDelay = Nvm.MacGroup2.MacParamsDefaults.AdrAckDelay; in LoRaMacMibGetRequestConfirm()
4257 … if( Nvm.MacGroup2.Region != LORAMAC_REGION_AS923 && Nvm.MacGroup2.Region != LORAMAC_REGION_KR920 ) in LoRaMacMibGetRequestConfirm()
4273 … if( Nvm.MacGroup2.Region != LORAMAC_REGION_AS923 && Nvm.MacGroup2.Region != LORAMAC_REGION_KR920 ) in LoRaMacMibGetRequestConfirm()
4321 Nvm.MacGroup2.NetworkActivation = mibSet->Param.NetworkActivation; in LoRaMacMibSetRequestConfirm()
4355 Nvm.MacGroup2.AdrCtrlOn = mibSet->Param.AdrEnable; in LoRaMacMibSetRequestConfirm()
4360 Nvm.MacGroup2.NetID = mibSet->Param.NetID; in LoRaMacMibSetRequestConfirm()
4365 Nvm.MacGroup2.DevAddr = mibSet->Param.DevAddr; in LoRaMacMibSetRequestConfirm()
4685 Nvm.MacGroup2.PublicNetwork = mibSet->Param.EnablePublicNetwork; in LoRaMacMibSetRequestConfirm()
4686 Radio.SetPublicNetwork( Nvm.MacGroup2.PublicNetwork ); in LoRaMacMibSetRequestConfirm()
4692 verify.DatarateParams.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in LoRaMacMibSetRequestConfirm()
4694 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_RX_DR ) == true ) in LoRaMacMibSetRequestConfirm()
4696 Nvm.MacGroup2.MacParams.Rx2Channel = mibSet->Param.Rx2Channel; in LoRaMacMibSetRequestConfirm()
4707 verify.DatarateParams.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in LoRaMacMibSetRequestConfirm()
4709 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_RX_DR ) == true ) in LoRaMacMibSetRequestConfirm()
4711 Nvm.MacGroup2.MacParamsDefaults.Rx2Channel = mibSet->Param.Rx2DefaultChannel; in LoRaMacMibSetRequestConfirm()
4722 verify.DatarateParams.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in LoRaMacMibSetRequestConfirm()
4724 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_RX_DR ) == true ) in LoRaMacMibSetRequestConfirm()
4726 Nvm.MacGroup2.MacParams.RxCChannel = mibSet->Param.RxCChannel; in LoRaMacMibSetRequestConfirm()
4728 …if( ( Nvm.MacGroup2.DeviceClass == CLASS_C ) && ( Nvm.MacGroup2.NetworkActivation != ACTIVATION_TY… in LoRaMacMibSetRequestConfirm()
4748 verify.DatarateParams.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in LoRaMacMibSetRequestConfirm()
4750 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_RX_DR ) == true ) in LoRaMacMibSetRequestConfirm()
4752 Nvm.MacGroup2.MacParamsDefaults.RxCChannel = mibSet->Param.RxCDefaultChannel; in LoRaMacMibSetRequestConfirm()
4765 if( RegionChanMaskSet( Nvm.MacGroup2.Region, &chanMaskSet ) == false ) in LoRaMacMibSetRequestConfirm()
4776 if( RegionChanMaskSet( Nvm.MacGroup2.Region, &chanMaskSet ) == false ) in LoRaMacMibSetRequestConfirm()
4787 Nvm.MacGroup2.MacParams.ChannelsNbTrans = mibSet->Param.ChannelsNbTrans; in LoRaMacMibSetRequestConfirm()
4797 Nvm.MacGroup2.MacParams.MaxRxWindow = mibSet->Param.MaxRxWindow; in LoRaMacMibSetRequestConfirm()
4802 Nvm.MacGroup2.MacParams.ReceiveDelay1 = mibSet->Param.ReceiveDelay1; in LoRaMacMibSetRequestConfirm()
4807 Nvm.MacGroup2.MacParams.ReceiveDelay2 = mibSet->Param.ReceiveDelay2; in LoRaMacMibSetRequestConfirm()
4812 Nvm.MacGroup2.MacParams.JoinAcceptDelay1 = mibSet->Param.JoinAcceptDelay1; in LoRaMacMibSetRequestConfirm()
4817 Nvm.MacGroup2.MacParams.JoinAcceptDelay2 = mibSet->Param.JoinAcceptDelay2; in LoRaMacMibSetRequestConfirm()
4824 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_DEF_TX_DR ) == true ) in LoRaMacMibSetRequestConfirm()
4826 Nvm.MacGroup2.ChannelsDatarateDefault = verify.DatarateParams.Datarate; in LoRaMacMibSetRequestConfirm()
4837 verify.DatarateParams.UplinkDwellTime = Nvm.MacGroup2.MacParams.UplinkDwellTime; in LoRaMacMibSetRequestConfirm()
4839 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_TX_DR ) == true ) in LoRaMacMibSetRequestConfirm()
4853 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_DEF_TX_POWER ) == true ) in LoRaMacMibSetRequestConfirm()
4855 Nvm.MacGroup2.ChannelsTxPowerDefault = verify.TxPower; in LoRaMacMibSetRequestConfirm()
4867 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_TX_POWER ) == true ) in LoRaMacMibSetRequestConfirm()
4881 …Nvm.MacGroup2.MacParams.SystemMaxRxError = Nvm.MacGroup2.MacParamsDefaults.SystemMaxRxError = mibS… in LoRaMacMibSetRequestConfirm()
4891 …Nvm.MacGroup2.MacParams.MinRxSymbols = Nvm.MacGroup2.MacParamsDefaults.MinRxSymbols = mibSet->Para… in LoRaMacMibSetRequestConfirm()
4896 Nvm.MacGroup2.MacParams.AntennaGain = mibSet->Param.AntennaGain; in LoRaMacMibSetRequestConfirm()
4901 Nvm.MacGroup2.MacParamsDefaults.AntennaGain = mibSet->Param.DefaultAntennaGain; in LoRaMacMibSetRequestConfirm()
4920 Nvm.MacGroup2.Version = mibSet->Param.AbpLrWanVersion; in LoRaMacMibSetRequestConfirm()
4935 Nvm.MacGroup2.IsCertPortOn = mibSet->Param.IsCertPortOn; in LoRaMacMibSetRequestConfirm()
4942 ( Nvm.MacGroup2.NetworkActivation == ACTIVATION_TYPE_OTAA ) ) in LoRaMacMibSetRequestConfirm()
4944 Nvm.MacGroup2.Rejoin0CycleInSec = mibSet->Param.Rejoin0CycleInSec; in LoRaMacMibSetRequestConfirm()
4960 ( Nvm.MacGroup2.NetworkActivation == ACTIVATION_TYPE_OTAA ) ) in LoRaMacMibSetRequestConfirm()
4962 Nvm.MacGroup2.Rejoin1CycleInSec = mibSet->Param.Rejoin1CycleInSec; in LoRaMacMibSetRequestConfirm()
4976 Nvm.MacGroup2.MacParams.AdrAckLimit = mibSet->Param.AdrAckLimit; in LoRaMacMibSetRequestConfirm()
4981 Nvm.MacGroup2.MacParams.AdrAckDelay = mibSet->Param.AdrAckDelay; in LoRaMacMibSetRequestConfirm()
4986 Nvm.MacGroup2.MacParamsDefaults.AdrAckLimit = mibSet->Param.AdrAckLimit; in LoRaMacMibSetRequestConfirm()
4991 Nvm.MacGroup2.MacParamsDefaults.AdrAckDelay = mibSet->Param.AdrAckDelay; in LoRaMacMibSetRequestConfirm()
4997 … if( Nvm.MacGroup2.Region != LORAMAC_REGION_AS923 && Nvm.MacGroup2.Region != LORAMAC_REGION_KR920 ) in LoRaMacMibSetRequestConfirm()
5013 … if( Nvm.MacGroup2.Region != LORAMAC_REGION_AS923 && Nvm.MacGroup2.Region != LORAMAC_REGION_KR920 ) in LoRaMacMibSetRequestConfirm()
5056 return RegionChannelAdd( Nvm.MacGroup2.Region, &channelAdd ); in LoRaMacChannelAdd()
5073 if( RegionChannelsRemove( Nvm.MacGroup2.Region, &channelRemove ) == false ) in LoRaMacChannelRemove()
5092 Nvm.MacGroup2.MulticastChannelList[channel->GroupID].ChannelParams = *channel; in LoRaMacMcChannelSetup()
5123 *Nvm.MacGroup2.MulticastChannelList[channel->GroupID].DownLinkCounter = FCNT_DOWN_INITIAL_VALUE; in LoRaMacMcChannelSetup()
5135 ( Nvm.MacGroup2.MulticastChannelList[groupID].ChannelParams.IsEnabled == false ) ) in LoRaMacMcChannelDelete()
5145 Nvm.MacGroup2.MulticastChannelList[groupID].ChannelParams = channel; in LoRaMacMcChannelDelete()
5154 if( mcAddress == Nvm.MacGroup2.MulticastChannelList[i].ChannelParams.Address ) in LoRaMacMcChannelGetGroupId()
5177 ( Nvm.MacGroup2.MulticastChannelList[groupID].ChannelParams.IsEnabled == false ) ) in LoRaMacMcChannelSetupRxParams()
5193 verify.DatarateParams.DownlinkDwellTime = Nvm.MacGroup2.MacParams.DownlinkDwellTime; in LoRaMacMcChannelSetupRxParams()
5195 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_RX_DR ) == true ) in LoRaMacMcChannelSetupRxParams()
5209 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_FREQUENCY ) == true ) in LoRaMacMcChannelSetupRxParams()
5217 Nvm.MacGroup2.MulticastChannelList[groupID].ChannelParams.RxParams = *rxParams; in LoRaMacMcChannelSetupRxParams()
5228 LoRaMacClassBSetMulticastPeriodicity( &Nvm.MacGroup2.MulticastChannelList[groupID] ); in LoRaMacMcChannelSetupRxParams()
5312 …Nvm.MacGroup1.ChannelsDatarate = RegionAlternateDr( Nvm.MacGroup2.Region, mlmeRequest->Req.Join.Da… in LoRaMacMlmeRequest()
5321 …Nvm.MacGroup1.ChannelsDatarate = RegionAlternateDr( Nvm.MacGroup2.Region, mlmeRequest->Req.Join.Da… in LoRaMacMlmeRequest()
5327 Nvm.MacGroup2.ChannelsDatarateChangedLinkAdrReq = false; in LoRaMacMlmeRequest()
5332 RegionInitDefaults( Nvm.MacGroup2.Region, ¶ms ); in LoRaMacMlmeRequest()
5334 Nvm.MacGroup2.NetworkActivation = mlmeRequest->Req.Join.NetworkActivation; in LoRaMacMlmeRequest()
5396 if( Nvm.MacGroup2.DeviceClass == CLASS_A ) in LoRaMacMlmeRequest()
5500 if( ( Nvm.MacGroup2.NetworkActivation == ACTIVATION_TYPE_OTAA ) && in LoRaMacMcpsRequest()
5501 ( Nvm.MacGroup2.DeviceClass == CLASS_C ) && in LoRaMacMcpsRequest()
5502 ( Nvm.MacGroup2.DownlinkReceived == false ) && in LoRaMacMcpsRequest()
5549 getPhy.UplinkDwellTime = Nvm.MacGroup2.MacParams.UplinkDwellTime; in LoRaMacMcpsRequest()
5550 phyParam = RegionGetPhyParam( Nvm.MacGroup2.Region, &getPhy ); in LoRaMacMcpsRequest()
5556 if( CheckForMinimumAbpDatarate( Nvm.MacGroup2.AdrCtrlOn, Nvm.MacGroup2.NetworkActivation, in LoRaMacMcpsRequest()
5557 Nvm.MacGroup2.ChannelsDatarateChangedLinkAdrReq ) == true ) in LoRaMacMcpsRequest()
5564 if( ( Nvm.MacGroup2.AdrCtrlOn == false ) || in LoRaMacMcpsRequest()
5565 ( CheckForMinimumAbpDatarate( Nvm.MacGroup2.AdrCtrlOn, Nvm.MacGroup2.NetworkActivation, in LoRaMacMcpsRequest()
5566 … Nvm.MacGroup2.ChannelsDatarateChangedLinkAdrReq ) == true ) ) in LoRaMacMcpsRequest()
5569 verify.DatarateParams.UplinkDwellTime = Nvm.MacGroup2.MacParams.UplinkDwellTime; in LoRaMacMcpsRequest()
5571 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_TX_DR ) == true ) in LoRaMacMcpsRequest()
5620 ConvertRejoinCycleTime( Nvm.MacGroup2.Rejoin0CycleInSec, &MacCtx.Rejoin0CycleTime ); in OnRejoin0CycleTimerEvent()
5624 Nvm.MacGroup2.IsRejoin0RequestQueued = true; in OnRejoin0CycleTimerEvent()
5633 ConvertRejoinCycleTime( Nvm.MacGroup2.Rejoin1CycleInSec, &MacCtx.Rejoin1CycleTime ); in OnRejoin1CycleTimerEvent()
5637 Nvm.MacGroup2.IsRejoin1RequestQueued = true; in OnRejoin1CycleTimerEvent()
5646 if( ( Nvm.MacGroup2.ForceRejoinType == 0 ) || ( Nvm.MacGroup2.ForceRejoinType == 1 ) ) in OnForceRejoinReqCycleTimerEvent()
5648 Nvm.MacGroup2.IsRejoin0RequestQueued = true; in OnForceRejoinReqCycleTimerEvent()
5652 Nvm.MacGroup2.IsRejoin2RequestQueued = true; in OnForceRejoinReqCycleTimerEvent()
5655 if( Nvm.MacGroup1.ForceRejoinRetriesCounter >= Nvm.MacGroup2.ForceRejoinMaxRetries ) in OnForceRejoinReqCycleTimerEvent()
5675 if( RegionVerify( Nvm.MacGroup2.Region, &verify, PHY_DUTY_CYCLE ) == true ) in LoRaMacTestSetDutyCycleOn()
5677 Nvm.MacGroup2.DutyCycleOn = enable; in LoRaMacTestSetDutyCycleOn()
5723 MacCtx.ChannelsNbTransCounter = Nvm.MacGroup2.MacParams.ChannelsNbTrans; in LoRaMacReset()