Home
last modified time | relevance | path

Searched refs:aChannel (Results 1 – 25 of 54) sorted by relevance

123

/openthread-latest/src/core/utils/
Dpower_calibration.cpp78 Error PowerCalibration::AddCalibratedPower(uint8_t aChannel, in AddCalibratedPower() argument
88 …VerifyOrExit(IsChannelValid(aChannel) && aRawPowerSettingLength <= CalibratedPowerEntry::kMaxRawPo… in AddCalibratedPower()
91 chIndex = aChannel - Radio::kChannelMin; in AddCalibratedPower()
98 if (aChannel == mLastChannel) in AddCalibratedPower()
117 Error PowerCalibration::SetChannelTargetPower(uint8_t aChannel, int16_t aTargetPower) in SetChannelTargetPower() argument
121 VerifyOrExit(IsChannelValid(aChannel), error = kErrorInvalidArgs); in SetChannelTargetPower()
122 mTargetPowerTable[aChannel - Radio::kChannelMin] = aTargetPower; in SetChannelTargetPower()
124 if (aChannel == mLastChannel) in SetChannelTargetPower()
133 Error PowerCalibration::GetPowerSettings(uint8_t aChannel, in GetPowerSettings() argument
148 VerifyOrExit(IsChannelValid(aChannel), error = kErrorInvalidArgs); in GetPowerSettings()
[all …]
Dchannel_manager.cpp68 void ChannelManager::RequestChannelChange(uint8_t aChannel) in RequestChannelChange() argument
73 RequestNetworkChannelChange(aChannel); in RequestChannelChange()
79 ChangeCslChannel(aChannel); in RequestChannelChange()
85 void ChannelManager::RequestNetworkChannelChange(uint8_t aChannel) in RequestNetworkChannelChange() argument
88 if (aChannel == Get<Mac::Mac>().GetPanChannel()) in RequestNetworkChannelChange()
90 LogInfo("Already operating on the requested channel %d", aChannel); in RequestNetworkChannelChange()
94 LogInfo("Request to change to channel %d with delay %d sec", aChannel, mDelay); in RequestNetworkChannelChange()
97 VerifyOrExit(mChannel != aChannel); in RequestNetworkChannelChange()
101 mChannel = aChannel; in RequestNetworkChannelChange()
113 void ChannelManager::ChangeCslChannel(uint8_t aChannel) in ChangeCslChannel() argument
[all …]
Dpower_calibration.hpp75 Error AddCalibratedPower(uint8_t aChannel,
94 Error SetChannelTargetPower(uint8_t aChannel, int16_t aTargetPower);
116 Error GetPowerSettings(uint8_t aChannel,
146 bool IsChannelValid(uint8_t aChannel) const in IsChannelValid()
148 return ((aChannel >= Radio::kChannelMin) && (aChannel <= Radio::kChannelMax)); in IsChannelValid()
Dchannel_monitor.cpp103 uint16_t ChannelMonitor::GetChannelOccupancy(uint8_t aChannel) const in GetChannelOccupancy()
107 VerifyOrExit((Radio::kChannelMin <= aChannel) && (aChannel <= Radio::kChannelMax)); in GetChannelOccupancy()
108 occupancy = mChannelOccupancy[aChannel - Radio::kChannelMin]; in GetChannelOccupancy()
Dchannel_manager.hpp101 void RequestNetworkChannelChange(uint8_t aChannel);
333 void RequestChannelChange(uint8_t aChannel);
341 void ChangeCslChannel(uint8_t aChannel);
/openthread-latest/src/core/mac/
Dchannel_mask.hpp136 bool ContainsChannel(uint8_t aChannel) const in ContainsChannel()
138 return (aChannel < BitSizeOf(mMask)) ? ((1UL << aChannel) & mMask) != 0 : false; in ContainsChannel()
146 void AddChannel(uint8_t aChannel) in AddChannel() argument
148 if (aChannel < BitSizeOf(mMask)) in AddChannel()
150 mMask |= (1UL << aChannel); in AddChannel()
159 void RemoveChannel(uint8_t aChannel) in RemoveChannel() argument
161 if (aChannel < BitSizeOf(mMask)) in RemoveChannel()
163 mMask &= ~(1UL << aChannel); in RemoveChannel()
194 Error GetNextChannel(uint8_t &aChannel) const;
Dchannel_mask.cpp55 Error ChannelMask::GetNextChannel(uint8_t &aChannel) const in GetNextChannel()
59 if (aChannel == kChannelIteratorFirst) in GetNextChannel()
61 aChannel = (Radio::kChannelMin - 1); in GetNextChannel()
64 for (aChannel++; aChannel <= Radio::kChannelMax; aChannel++) in GetNextChannel()
66 if (ContainsChannel(aChannel)) in GetNextChannel()
Dmac_links.hpp201 void SetChannel(uint8_t aChannel) in SetChannel() argument
204 mTxFrame802154.SetChannel(aChannel); in SetChannel()
207 mTxFrameTrel.SetChannel(aChannel); in SetChannel()
474 …bool UpdateCsl(uint16_t aPeriod, uint8_t aChannel, otShortAddress aShortAddr, const otExtAddress *… in UpdateCsl() argument
479 OT_UNUSED_VARIABLE(aChannel); in UpdateCsl()
483 retval = mSubMac.UpdateCsl(aPeriod, aChannel, aShortAddr, aExtAddr); in UpdateCsl()
514 … void UpdateWakeupListening(bool aEnable, uint32_t aInterval, uint32_t aDuration, uint8_t aChannel) in UpdateWakeupListening() argument
519 OT_UNUSED_VARIABLE(aChannel); in UpdateWakeupListening()
521 mSubMac.UpdateWakeupListening(aEnable, aInterval, aDuration, aChannel); in UpdateWakeupListening()
531 void Receive(uint8_t aChannel) in Receive() argument
[all …]
Dsub_mac_wed.cpp51 …bMac::UpdateWakeupListening(bool aEnable, uint32_t aInterval, uint32_t aDuration, uint8_t aChannel) in UpdateWakeupListening() argument
57 mWakeupChannel = aChannel; in UpdateWakeupListening()
Dmac.hpp295 Error SetPanChannel(uint8_t aChannel);
310 Error SetTemporaryChannel(uint8_t aChannel);
393 void RecordCcaStatus(bool aCcaSuccess, uint8_t aChannel);
581 void SetCslChannel(uint8_t aChannel);
728 Error SetWakeupChannel(uint8_t aChannel);
Dsub_mac.hpp141 void RecordCcaStatus(bool aCcaSuccess, uint8_t aChannel);
322 Error Receive(uint8_t aChannel);
389 …bool UpdateCsl(uint16_t aPeriod, uint8_t aChannel, otShortAddress aShortAddr, const otExtAddress *…
506 …void UpdateWakeupListening(bool aEnable, uint32_t aInterval, uint32_t aDuration, uint8_t aChannel);
Dsub_mac_callbacks.cpp62 void SubMac::Callbacks::RecordCcaStatus(bool aCcaSuccess, uint8_t aChannel) in RecordCcaStatus() argument
64 Get<Mac>().RecordCcaStatus(aCcaSuccess, aChannel); in RecordCcaStatus()
/openthread-latest/src/core/thread/
Dmle_tlvs.cpp100 void ChannelTlvValue::SetChannelAndPage(uint16_t aChannel) in SetChannelAndPage() argument
105 …if ((OT_RADIO_915MHZ_OQPSK_CHANNEL_MIN <= aChannel) && (aChannel <= OT_RADIO_915MHZ_OQPSK_CHANNEL_… in SetChannelAndPage()
112 if ((OPENTHREAD_CONFIG_PLATFORM_RADIO_PROPRIETARY_CHANNEL_MIN == aChannel) || in SetChannelAndPage()
113 ((OPENTHREAD_CONFIG_PLATFORM_RADIO_PROPRIETARY_CHANNEL_MIN < aChannel) && in SetChannelAndPage()
114 (aChannel <= OPENTHREAD_CONFIG_PLATFORM_RADIO_PROPRIETARY_CHANNEL_MAX))) in SetChannelAndPage()
121 SetChannel(aChannel); in SetChannelAndPage()
Dmle_tlvs.hpp966 ChannelTlvValue(uint8_t aChannelPage, uint16_t aChannel) in ChannelTlvValue() argument
968 , mChannel(BigEndian::HostSwap16(aChannel)) in ChannelTlvValue()
977 ChannelTlvValue(uint16_t aChannel) in ChannelTlvValue() argument
978 : ChannelTlvValue(0, aChannel) in ChannelTlvValue()
1008 void SetChannel(uint16_t aChannel) { mChannel = BigEndian::HostSwap16(aChannel); } in SetChannel() argument
1015 void SetChannelAndPage(uint16_t aChannel);
Dcsl_tx_scheduler.hpp84 void SetCslChannel(uint8_t aChannel) { mCslChannel = aChannel; } in SetCslChannel() argument
/openthread-latest/src/core/radio/
Dmax_power_table.hpp50 …int8_t GetTransmitPower(uint8_t aChannel) const { return mPowerTable[aChannel - Radio::kChannelMin… in GetTransmitPower()
58 …void SetTransmitPower(uint8_t aChannel, int8_t aPower) { mPowerTable[aChannel - Radio::kChannelMin… in SetTransmitPower() argument
Dradio_platform.cpp323 uint8_t aChannel, in otPlatRadioSetChannelMaxTransmitPower() argument
327 OT_UNUSED_VARIABLE(aChannel); in otPlatRadioSetChannelMaxTransmitPower()
350 uint8_t aChannel, in otPlatRadioReceiveAt() argument
355 OT_UNUSED_VARIABLE(aChannel); in otPlatRadioReceiveAt()
/openthread-latest/tests/gtest/
Dfake_platform.hpp82 virtual otError ReceiveAt(uint8_t aChannel, uint32_t aStart, uint32_t aDuration) in ReceiveAt() argument
84 mReceiveAtChannel = aChannel; in ReceiveAt()
91 virtual otError Receive(uint8_t aChannel) in Receive() argument
93 mChannel = aChannel; in Receive()
Dradio_spinel_rcp_test.cpp142 MOCK_METHOD(otError, Receive, (uint8_t aChannel), (override)); in TEST()
198 MOCK_METHOD(otError, Receive, (uint8_t aChannel), (override)); in TEST()
295 …MOCK_METHOD(otError, ReceiveAt, (uint8_t aChannel, uint32_t aStart, uint32_t aDuration), (override… in TEST()
301 … .WillByDefault([&platform](uint8_t aChannel, uint32_t aStart, uint32_t aDuration) -> otError { in TEST() argument
302 return platform.FakePlatform::ReceiveAt(aChannel, aStart, aDuration); in TEST()
324 MOCK_METHOD(otError, Receive, (uint8_t aChannel), (override)); in TEST()
/openthread-latest/include/openthread/platform/
Dradio.h859 otError otPlatRadioReceive(otInstance *aInstance, uint8_t aChannel);
880 otError otPlatRadioReceiveAt(otInstance *aInstance, uint8_t aChannel, uint32_t aStart, uint32_t aDu…
1251 otError otPlatRadioSetChannelMaxTransmitPower(otInstance *aInstance, uint8_t aChannel, int8_t aMaxP…
1336 uint8_t aChannel,
1376 otError otPlatRadioSetChannelTargetPower(otInstance *aInstance, uint8_t aChannel, int16_t aTargetPo…
1401 uint8_t aChannel,
Ddiag.h116 void otPlatDiagChannelSet(uint8_t aChannel);
284 uint8_t aChannel,
/openthread-latest/src/posix/platform/
Dradio.cpp291 otError otPlatRadioReceive(otInstance *aInstance, uint8_t aChannel) in otPlatRadioReceive() argument
297 SuccessOrExit(error = GetRadioSpinel().Receive(aChannel)); in otPlatRadioReceive()
633 void otPlatDiagChannelSet(uint8_t aChannel) in otPlatDiagChannelSet() argument
637 snprintf(cmd, sizeof(cmd), "channel %d", aChannel); in otPlatDiagChannelSet()
721 uint8_t aChannel, in otPlatDiagRadioGetPowerSettings() argument
744 snprintf(cmd, sizeof(cmd), "powersettings %d", aChannel); in otPlatDiagRadioGetPowerSettings()
966 otError otPlatRadioSetChannelMaxTransmitPower(otInstance *aInstance, uint8_t aChannel, int8_t aMaxP… in otPlatRadioSetChannelMaxTransmitPower() argument
969 return GetRadioSpinel().SetChannelMaxTransmitPower(aChannel, aMaxPower); in otPlatRadioSetChannelMaxTransmitPower()
974 uint8_t aChannel, in otPlatRadioAddCalibratedPower() argument
980 …return GetRadioSpinel().AddCalibratedPower(aChannel, aActualPower, aRawPowerSetting, aRawPowerSett… in otPlatRadioAddCalibratedPower()
[all …]
/openthread-latest/src/core/api/
Dchannel_monitor_api.cpp83 uint16_t otChannelMonitorGetChannelOccupancy(otInstance *aInstance, uint8_t aChannel) in otChannelMonitorGetChannelOccupancy() argument
85 return AsCoreType(aInstance).Get<Utils::ChannelMonitor>().GetChannelOccupancy(aChannel); in otChannelMonitorGetChannelOccupancy()
Dlink_api.cpp59 otError otLinkSetChannel(otInstance *aInstance, uint8_t aChannel) in otLinkSetChannel() argument
67 error = instance.Get<Mac::LinkRaw>().SetChannel(aChannel); in otLinkSetChannel()
74 SuccessOrExit(error = instance.Get<Mac::Mac>().SetPanChannel(aChannel)); in otLinkSetChannel()
88 otError otLinkSetWakeupChannel(otInstance *aInstance, uint8_t aChannel) in otLinkSetWakeupChannel() argument
95 SuccessOrExit(error = instance.Get<Mac::Mac>().SetWakeupChannel(aChannel)); in otLinkSetWakeupChannel()
428 otError otLinkSetCslChannel(otInstance *aInstance, uint8_t aChannel) in otLinkSetCslChannel() argument
432 VerifyOrExit(Radio::IsCslChannelValid(aChannel), error = kErrorInvalidArgs); in otLinkSetCslChannel()
434 AsCoreType(aInstance).Get<Mac::Mac>().SetCslChannel(aChannel); in otLinkSetCslChannel()
/openthread-latest/examples/platforms/simulation/
Dradio.c152 static int8_t GetRssi(uint16_t aChannel);
481 otError otPlatRadioReceive(otInstance *aInstance, uint8_t aChannel) in otPlatRadioReceive() argument
494 sReceiveFrame.mChannel = aChannel; in otPlatRadioReceive()
495 sCurrentChannel = aChannel; in otPlatRadioReceive()
538 static int8_t GetRssi(uint16_t aChannel) in GetRssi() argument
543 otEXPECT((SIM_RADIO_CHANNEL_MIN <= aChannel) && aChannel <= (SIM_RADIO_CHANNEL_MAX)); in GetRssi()
549 probabilityThreshold = (aChannel - SIM_RADIO_CHANNEL_MIN) * SIM_HIGH_RSSI_PROB_INC_PER_CHANNEL; in GetRssi()
1177 otError otPlatRadioSetChannelMaxTransmitPower(otInstance *aInstance, uint8_t aChannel, int8_t aMaxP… in otPlatRadioSetChannelMaxTransmitPower() argument
1183 …otEXPECT_ACTION(aChannel >= kMinChannel && aChannel <= kMaxChannel, error = OT_ERROR_INVALID_ARGS); in otPlatRadioSetChannelMaxTransmitPower()
1184 sChannelMaxTransmitPower[aChannel - kMinChannel] = aMaxPower; in otPlatRadioSetChannelMaxTransmitPower()

123