Home
last modified time | relevance | path

Searched refs:channelMask (Results 1 – 14 of 14) sorted by relevance

/openthread-latest/src/core/thread/
Dannounce_sender.cpp235 Mac::ChannelMask channelMask; in HandleActiveDatasetChanged() local
237 SuccessOrExit(Get<MeshCoP::ActiveDatasetManager>().GetChannelMask(channelMask)); in HandleActiveDatasetChanged()
238 VerifyOrExit(!channelMask.IsEmpty()); in HandleActiveDatasetChanged()
240 VerifyOrExit(channelMask != GetChannelMask()); in HandleActiveDatasetChanged()
242 SetChannelMask(channelMask); in HandleActiveDatasetChanged()
243 SetPeriod(kTxInterval / channelMask.GetNumberOfChannels()); in HandleActiveDatasetChanged()
Denergy_scan_server.cpp107 uint32_t channelMask = mChannelMaskCurrent & ~(mChannelMaskCurrent - 1); in HandleTimer() local
109 IgnoreError(Get<Mac::Mac>().EnergyScan(channelMask, mScanDuration, HandleScanResult, this)); in HandleTimer()
Dmle.cpp1219 Mac::ChannelMask channelMask = Get<Mac::Mac>().GetSupportedChannelMask(); in HandleNotifierEvents() local
1221 … if (!channelMask.ContainsChannel(Get<Mac::Mac>().GetPanChannel()) && (mRole != kRoleDisabled)) in HandleNotifierEvents()
1224 Get<Mac::Mac>().GetPanChannel(), channelMask.ToString().AsCString()); in HandleNotifierEvents()
1561 Mac::ChannelMask channelMask; in PrepareAnnounceState() local
1566 if (Get<MeshCoP::ActiveDatasetManager>().GetChannelMask(channelMask) != kErrorNone) in PrepareAnnounceState()
1568 channelMask = Get<Mac::Mac>().GetSupportedChannelMask(); in PrepareAnnounceState()
1571 mAnnounceDelay = kAnnounceTimeout / (channelMask.GetNumberOfChannels() + 1); in PrepareAnnounceState()
2189 Mac::ChannelMask channelMask; in GetNextAnnounceChannel() local
2191 if (Get<MeshCoP::ActiveDatasetManager>().GetChannelMask(channelMask) != kErrorNone) in GetNextAnnounceChannel()
2193 channelMask = Get<Mac::Mac>().GetSupportedChannelMask(); in GetNextAnnounceChannel()
[all …]
/openthread-latest/src/core/radio/
Dmax_power_table.hpp65 uint32_t channelMask = 0; in GetSupportedChannelMask() local
71 channelMask |= (1 << i); in GetSupportedChannelMask()
75 return channelMask; in GetSupportedChannelMask()
/openthread-latest/src/ncp/
Dncp_base_ftd.cpp874 uint32_t channelMask; in HandlePropertySet() local
879 SuccessOrExit(error = mDecoder.ReadUint32(channelMask)); in HandlePropertySet()
884 error = otCommissionerAnnounceBegin(mInstance, channelMask, count, period, address); in HandlePropertySet()
893 uint32_t channelMask; in HandlePropertySet() local
899 SuccessOrExit(error = mDecoder.ReadUint32(channelMask)); in HandlePropertySet()
905 error = otCommissionerEnergyScan(mInstance, channelMask, count, period, scanDuration, address, in HandlePropertySet()
943 uint32_t channelMask; in HandlePropertySet() local
947 SuccessOrExit(error = mDecoder.ReadUint32(channelMask)); in HandlePropertySet()
950 error = otCommissionerPanIdQuery(mInstance, panId, channelMask, address, in HandlePropertySet()
1288 uint32_t channelMask = 0; in HandlePropertySet() local
[all …]
Dncp_base_mtd.cpp2536 uint32_t channelMask = otLinkGetSupportedChannelMask(mInstance); in HandlePropertyGet() local
2537 uint8_t channelNum = sizeof(channelMask) * kBitsPerByte; in HandlePropertyGet()
2541 if (!((1UL << channel) & channelMask)) in HandlePropertyGet()
/openthread-latest/src/posix/platform/
Dconfiguration.cpp130 uint32_t channelMask; in GetChannelMask() local
142 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint32(str, channelMask)); in GetChannelMask()
143 aChannelMask = channelMask; in GetChannelMask()
Dradio.cpp863 uint32_t channelMask; in otPlatRadioGetSupportedChannelMask() local
868 channelMask = sConfig.GetSupportedChannelMask(); in otPlatRadioGetSupportedChannelMask()
873 channelMask = GetRadioSpinel().GetRadioChannelMask(false); in otPlatRadioGetSupportedChannelMask()
876 return channelMask; in otPlatRadioGetSupportedChannelMask()
883 uint32_t channelMask; in otPlatRadioGetPreferredChannelMask() local
888 channelMask = sConfig.GetPreferredChannelMask(); in otPlatRadioGetPreferredChannelMask()
893 channelMask = GetRadioSpinel().GetRadioChannelMask(true); in otPlatRadioGetPreferredChannelMask()
896 return channelMask; in otPlatRadioGetPreferredChannelMask()
/openthread-latest/src/core/meshcop/
Dmeshcop_tlvs.cpp124 uint32_t channelMask; in IsValid() local
126 return (ReadChannelMask(channelMask) == kErrorNone); in IsValid()
/openthread-latest/tools/harness-thci/
DOpenThread_WpanCtl.py637 def __setChannelMask(self, channelMask): argument
640 cmd = self.wpan_cmd_prefix + 'setprop NCP:ChannelMask %s' % channelMask
641 datasetCmd = self.wpan_cmd_prefix + 'setprop Dataset:ChannelMaskPage0 %s' % channelMask
1438 self.channelMask = '0x7fff800' # (0xffff << 11)
1468 self.__setChannelMask(self.channelMask)
2193 channelMask = ''
2194 channelMask = self.__ChannelMaskListToStr(listChannelMask)
2197 channelMask,
2220 channelMask = ''
2221 channelMask = self.__ChannelMaskListToStr(listChannelMask)
[all …]
DOpenThread.py790 def __setChannelMask(self, channelMask): argument
791 cmd = 'dataset channelmask %s' % channelMask
1443 self.channelMask = '0x7fff800' # (0xffff << 11)
1492 self.__setChannelMask(self.channelMask)
2392 channelMask = '0x' + self.__convertLongToHex(self.__convertChannelMask(listChannelMask))
2394 channelMask,
2414 channelMask = '0x' + self.__convertLongToHex(self.__convertChannelMask(listChannelMask))
2419 cmd = 'commissioner panid %s %s %s' % (panid, channelMask, sAddr)
2430 channelMask = '0x' + self.__convertLongToHex(self.__convertChannelMask(listChannelMask))
2432 channelMask,
/openthread-latest/src/lib/spinel/
Dlogger.cpp405 uint32_t channelMask = 0; in LogSpinelFrame() local
419 channelMask |= (1UL << channel); in LogSpinelFrame()
425 … start += Snprintf(start, static_cast<uint32_t>(end - start), ", channelMask:0x%08x", channelMask); in LogSpinelFrame()
Dradio_spinel.cpp1889 uint32_t channelMask = 0; in GetRadioChannelMask() local
1904 channelMask |= (1UL << channel); in GetRadioChannelMask()
1910 channelMask &= mMaxPowerTable.GetSupportedChannelMask(); in GetRadioChannelMask()
1915 return channelMask; in GetRadioChannelMask()
/openthread-latest/src/cli/
Dcli.cpp1397 uint32_t channelMask = otLinkGetSupportedChannelMask(GetInstancePtr()); in Process() local
1398 uint8_t channelNum = BitSizeOf(channelMask); in Process()
1412 if (!((1UL << channel) & channelMask)) in Process()