Home
last modified time | relevance | path

Searched refs:ChannelMonitor (Results 1 – 6 of 6) sorted by relevance

/openthread-latest/src/core/utils/
Dchannel_monitor.cpp45 const uint32_t ChannelMonitor::mScanChannelMasks[kNumChannelMasks] = {
60 ChannelMonitor::ChannelMonitor(Instance &aInstance) in ChannelMonitor() function in ot::Utils::ChannelMonitor
69 Error ChannelMonitor::Start(void) in Start()
82 Error ChannelMonitor::Stop(void) in Stop()
94 void ChannelMonitor::Clear(void) in Clear()
103 uint16_t ChannelMonitor::GetChannelOccupancy(uint8_t aChannel) const in GetChannelOccupancy()
114 void ChannelMonitor::HandleTimer(void) in HandleTimer()
117 &ChannelMonitor::HandleEnergyScanResult, this)); in HandleTimer()
122 void ChannelMonitor::HandleEnergyScanResult(Mac::EnergyScanResult *aResult, void *aContext) in HandleEnergyScanResult()
124 static_cast<ChannelMonitor *>(aContext)->HandleEnergyScanResult(aResult); in HandleEnergyScanResult()
[all …]
Dchannel_monitor.hpp73 class ChannelMonitor : public InstanceLocator, private NonCopyable class
98 explicit ChannelMonitor(Instance &aInstance);
189 using ScanTimer = TimerMilliIn<ChannelMonitor, &ChannelMonitor::HandleTimer>;
Dchannel_manager.cpp239 if (Get<ChannelMonitor>().GetSampleCount() <= kMinChannelMonitorSampleCount) in FindBetterChannel()
241 …LogInfo("Too few samples (%lu <= %lu) to select channel", ToUlong(Get<ChannelMonitor>().GetSampleC… in FindBetterChannel()
249 favoredBest = Get<ChannelMonitor>().FindBestChannels(favoredAndSupported, favoredOccupancy); in FindBetterChannel()
250 … supportedBest = Get<ChannelMonitor>().FindBestChannels(mSupportedChannelMask, supportedOccupancy); in FindBetterChannel()
363 curOccupancy = Get<ChannelMonitor>().GetChannelOccupancy(curChannel); in RequestChannelSelect()
/openthread-latest/src/core/api/
Dchannel_monitor_api.cpp47 Utils::ChannelMonitor &monitor = AsCoreType(aInstance).Get<Utils::ChannelMonitor>(); in otChannelMonitorSetEnabled()
54 return AsCoreType(aInstance).Get<Utils::ChannelMonitor>().IsRunning(); in otChannelMonitorIsEnabled()
61 return Utils::ChannelMonitor::kSampleInterval; in otChannelMonitorGetSampleInterval()
68 return Utils::ChannelMonitor::kRssiThreshold; in otChannelMonitorGetRssiThreshold()
75 return Utils::ChannelMonitor::kSampleWindow; in otChannelMonitorGetSampleWindow()
80 return AsCoreType(aInstance).Get<Utils::ChannelMonitor>().GetSampleCount(); in otChannelMonitorGetSampleCount()
85 return AsCoreType(aInstance).Get<Utils::ChannelMonitor>().GetChannelOccupancy(aChannel); in otChannelMonitorGetChannelOccupancy()
/openthread-latest/src/core/thread/
Dthread_netif.cpp53 IgnoreError(Get<Utils::ChannelMonitor>().Start()); in Up()
100 IgnoreError(Get<Utils::ChannelMonitor>().Stop()); in Down()
/openthread-latest/src/core/instance/
Dinstance.hpp677 Utils::ChannelMonitor mChannelMonitor;
993 template <> inline Utils::ChannelMonitor &Instance::Get(void) { return mChannelMonitor; } in Get()