/openthread-latest/src/core/radio/ |
D | radio.hpp | 134 class Radio : public InstanceLocator, private NonCopyable class 186 friend class Radio; 276 explicit Radio(Instance &aInstance) in Radio() function in ot::Radio 863 inline const char *Radio::GetVersionString(void) { return otPlatRadioGetVersionString(GetInstancePt… in GetVersionString() 865 inline void Radio::GetIeeeEui64(Mac::ExtAddress &aIeeeEui64) in GetIeeeEui64() 870 inline uint32_t Radio::GetSupportedChannelMask(void) { return otPlatRadioGetSupportedChannelMask(Ge… in GetSupportedChannelMask() 872 inline uint32_t Radio::GetPreferredChannelMask(void) { return otPlatRadioGetPreferredChannelMask(Ge… in GetPreferredChannelMask() 880 inline otRadioCaps Radio::GetCaps(void) { return otPlatRadioGetCaps(GetInstancePtr()); } in GetCaps() 882 inline int8_t Radio::GetReceiveSensitivity(void) const { return otPlatRadioGetReceiveSensitivity(Ge… in GetReceiveSensitivity() 884 inline void Radio::SetPanId(Mac::PanId aPanId) { otPlatRadioSetPanId(GetInstancePtr(), aPanId); } in SetPanId() [all …]
|
D | max_power_table.hpp | 52 …int8_t GetTransmitPower(uint8_t aChannel) const { return mPowerTable[aChannel - Radio::kChannelMin… in GetTransmitPower() 61 …void SetTransmitPower(uint8_t aChannel, int8_t aPower) { mPowerTable[aChannel - Radio::kChannelMin… in SetTransmitPower() 71 for (uint8_t i = Radio::kChannelMin; i <= Radio::kChannelMax; ++i) in GetSupportedChannelMask() 73 if (mPowerTable[i - Radio::kChannelMin] != OT_RADIO_POWER_INVALID) in GetSupportedChannelMask() 83 int8_t mPowerTable[Radio::kChannelMax - Radio::kChannelMin + 1];
|
D | radio_callbacks.cpp | 41 void Radio::Callbacks::HandleReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleReceiveDone() 49 void Radio::Callbacks::HandleTransmitStarted(Mac::TxFrame &aFrame) { Get<Mac::SubMac>().HandleTrans… in HandleTransmitStarted() 51 void Radio::Callbacks::HandleTransmitDone(Mac::TxFrame &aFrame, Mac::RxFrame *aAckFrame, Error aErr… in HandleTransmitDone() 59 void Radio::Callbacks::HandleEnergyScanDone(int8_t aMaxRssi) { Get<Mac::SubMac>().HandleEnergyScanD… in HandleEnergyScanDone() 61 void Radio::Callbacks::HandleBusLatencyChanged(void) in HandleBusLatencyChanged() 69 void Radio::Callbacks::HandleDiagsReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleDiagsReceiveDone() 79 void Radio::Callbacks::HandleDiagsTransmitDone(Mac::TxFrame &aFrame, Error aError) in HandleDiagsTransmitDone()
|
D | radio.cpp | 39 const uint8_t Radio::kSupportedChannelPages[kNumChannelPages] = { 52 void Radio::Init(void) in Init() 83 void Radio::SetExtendedAddress(const Mac::ExtAddress &aExtAddress) in SetExtendedAddress() 92 void Radio::SetShortAddress(Mac::ShortAddress aShortAddress) in SetShortAddress() 101 Error Radio::Transmit(Mac::TxFrame &aFrame) in Transmit() 139 …32_t txTimeUs = (aPsduLength + Mac::Frame::kPhyHeaderSize) * Radio::kSymbolsPerOctet * Radio::kSym… in RecordTxDone() 140 …uint32_t rxAckTimeUs = (Mac::Frame::kImmAckLength + Mac::Frame::kPhyHeaderSize) * Radio::kPhyUsPer… in RecordTxDone() 169 ackTimeUs = (Mac::Frame::kImmAckLength + Mac::Frame::kPhyHeaderSize) * Radio::kPhyUsPerByte; in RecordRxDone()
|
D | radio_platform.cpp | 62 instance.Get<Radio::Callbacks>().HandleReceiveDone(rxFrame, aError); in otPlatRadioReceiveDone() 79 instance.Get<Radio::Callbacks>().HandleTransmitStarted(txFrame); in otPlatRadioTxStarted() 102 instance.Get<Radio::Callbacks>().HandleTransmitDone(txFrame, ackFrame, aError); in otPlatRadioTxDone() 113 instance.Get<Radio::Callbacks>().HandleEnergyScanDone(aEnergyScanMaxRssi); in otPlatRadioEnergyScanDone() 124 instance.Get<Radio::Callbacks>().HandleBusLatencyChanged(); in otPlatRadioBusLatencyChanged() 142 AsCoreType(aInstance).Get<Radio::Callbacks>().HandleDiagsReceiveDone(rxFrame, aError); in otPlatDiagRadioReceiveDone() 153 AsCoreType(aInstance).Get<Radio::Callbacks>().HandleDiagsTransmitDone(txFrame, aError); in otPlatDiagRadioTransmitDone() 184 return Radio::kSupportedChannels; in otPlatRadioGetSupportedChannelMask()
|
/openthread-latest/src/core/mac/ |
D | sub_mac.cpp | 57 , mRadioCaps(Get<Radio>().GetCaps()) in SubMac() 58 , mTransmitFrame(Get<Radio>().GetTransmitBuffer()) in SubMac() 80 mEnergyScanMaxRssi = Radio::kInvalidRssi; in Init() 153 Get<Radio>().SetPanId(aPanId); in SetPanId() 160 Get<Radio>().SetShortAddress(mShortAddress); in SetShortAddress() 172 Get<Radio>().SetExtendedAddress(address); in SetExtAddress() 184 Get<Radio>().SetRxOnWhenIdle(mRxOnWhenIdle); in SetRxOnWhenIdle() 197 SuccessOrExit(error = Get<Radio>().Enable()); in Enable() 198 SuccessOrExit(error = Get<Radio>().Sleep()); in Enable() 216 SuccessOrExit(error = Get<Radio>().Sleep()); in Disable() [all …]
|
D | sub_mac_csl_receiver.cpp | 94 VerifyOrExit(!mRadioFilterEnabled, IgnoreError(Get<Radio>().Sleep())); in CslSample() 101 IgnoreError(Get<Radio>().Receive(mCslChannel)); in CslSample() 106 IgnoreError(Get<Radio>().Sleep()); // Don't actually sleep for debugging in CslSample() 126 IgnoreError(Get<Radio>().EnableCsl(aPeriod, aShortAddr, aExtAddr)); in UpdateCsl() 191 IgnoreError(Get<Radio>().Sleep()); // Don't actually sleep for debugging in HandleCslTimer() 214 Get<Radio>().UpdateCslSampleTime(mCslSampleTime.GetValue()); in HandleCslTimer() 220 IgnoreError(Get<Radio>().ReceiveAt(mCslChannel, winStart, winDuration)); in HandleCslTimer() 224 IgnoreError(Get<Radio>().Receive(mCslChannel)); in HandleCslTimer() 241 … (Get<Radio>().GetCslAccuracy() + mCslParentAccuracy.GetClockAccuracy()) / 1000000); in GetCslWindowEdges() 242 …semiWindow += mCslParentAccuracy.GetUncertaintyInMicrosec() + Get<Radio>().GetCslUncertainty() * 1… in GetCslWindowEdges()
|
D | channel_mask.hpp | 247 static_assert((Radio::kChannelMin < 32) && (Radio::kChannelMax < 32),
|
D | channel_mask.cpp | 61 aChannel = (Radio::kChannelMin - 1); in GetNextChannel() 64 for (aChannel++; aChannel <= Radio::kChannelMax; aChannel++) in GetNextChannel()
|
/openthread-latest/src/core/thread/ |
D | src_match_controller.cpp | 116 Get<Radio>().ClearSrcMatchShortEntries(); in ClearTable() 117 Get<Radio>().ClearSrcMatchExtEntries(); in ClearTable() 124 Get<Radio>().EnableSrcMatch(mEnabled); in Enable() 153 error = Get<Radio>().AddSrcMatchShortEntry(aChild.GetRloc16()); in AddAddress() 162 error = Get<Radio>().AddSrcMatchExtEntry(address); in AddAddress() 184 error = Get<Radio>().ClearSrcMatchShortEntry(aChild.GetRloc16()); in ClearEntry() 193 error = Get<Radio>().ClearSrcMatchExtEntry(address); in ClearEntry()
|
D | mle_tlvs.cpp | 129 VerifyOrExit(Radio::SupportsChannelPage(mChannelPage)); in IsValid() 132 VerifyOrExit((Radio::kChannelMin <= channel) && (channel <= Radio::kChannelMax)); in IsValid()
|
D | link_quality.cpp | 68 VerifyOrExit(aRss != Radio::kInvalidRssi, error = kErrorInvalidArgs); in Add() 92 VerifyOrExit(mCount != 0, average = Radio::kInvalidRssi); in GetAverage() 140 mLastRss = Radio::kInvalidRssi; in Clear() 150 VerifyOrExit(aRss != Radio::kInvalidRssi); in AddRss() 186 if (linkMargin < 0 || aRss == Radio::kInvalidRssi) in ComputeLinkMargin()
|
/openthread-latest/src/core/api/ |
D | link_raw_api.cpp | 64 bool otLinkRawGetPromiscuous(otInstance *aInstance) { return AsCoreType(aInstance).Get<Radio>().Get… in otLinkRawGetPromiscuous() 72 instance.Get<Radio>().SetPromiscuous(aEnable); in otLinkRawSetPromiscuous() 85 error = instance.Get<Radio>().Sleep(); in otLinkRawSleep() 103 int8_t otLinkRawGetRssi(otInstance *aInstance) { return AsCoreType(aInstance).Get<Radio>().GetRssi(… in otLinkRawGetRssi() 122 instance.Get<Radio>().EnableSrcMatch(aEnable); in otLinkRawSrcMatchEnable() 135 error = instance.Get<Radio>().AddSrcMatchShortEntry(aShortAddress); in otLinkRawSrcMatchAddShortEntry() 152 error = instance.Get<Radio>().AddSrcMatchExtEntry(address); in otLinkRawSrcMatchAddExtEntry() 164 error = instance.Get<Radio>().ClearSrcMatchShortEntry(aShortAddress); in otLinkRawSrcMatchClearShortEntry() 181 error = instance.Get<Radio>().ClearSrcMatchExtEntry(address); in otLinkRawSrcMatchClearExtEntry() 194 instance.Get<Radio>().ClearSrcMatchShortEntries(); in otLinkRawSrcMatchClearShortEntries() [all …]
|
/openthread-latest/src/core/diags/ |
D | factory_diags.cpp | 97 …VerifyOrExit(value >= Radio::kChannelMin && value <= Radio::kChannelMax, error = kErrorInvalidArgs… in ProcessChannel() 205 , mTxPacket(&Get<Radio>().GetTransmitBuffer()) 282 …VerifyOrExit(value >= Radio::kChannelMin && value <= Radio::kChannelMax, error = kErrorInvalidArgs… 285 IgnoreError(Get<Radio>().Receive(mChannel)); 313 SuccessOrExit(error = Get<Radio>().SetTransmitPower(mTxPower)); 428 IgnoreError(Get<Radio>().Enable()); 429 Get<Radio>().SetPromiscuous(true); 431 SuccessOrExit(error = Get<Radio>().Receive(mChannel)); 432 SuccessOrExit(error = Get<Radio>().SetTransmitPower(mTxPower)); 480 Get<Radio>().SetPromiscuous(false); [all …]
|
/openthread-latest/src/core/utils/ |
D | power_calibration.hpp | 154 return ((aChannel >= Radio::kChannelMin) && (aChannel <= Radio::kChannelMax)); in IsChannelValid() 161 static constexpr uint16_t kNumChannels = Radio::kChannelMax - Radio::kChannelMin + 1;
|
D | channel_monitor.cpp | 110 VerifyOrExit((Radio::kChannelMin <= aChannel) && (aChannel <= Radio::kChannelMax)); in GetChannelOccupancy() 111 occupancy = mChannelOccupancy[aChannel - Radio::kChannelMin]; in GetChannelOccupancy() 147 uint8_t channelIndex = (aResult->mChannel - Radio::kChannelMin); in HandleEnergyScanResult() 156 if (aResult->mMaxRssi != Radio::kInvalidRssi) in HandleEnergyScanResult()
|
D | power_calibration.cpp | 93 chIndex = aChannel - Radio::kChannelMin; in AddCalibratedPower() 124 mTargetPowerTable[aChannel - Radio::kChannelMin] = aTargetPower; in SetChannelTargetPower() 153 chIndex = aChannel - Radio::kChannelMin; in GetPowerSettings() 180 chIndex = mLastChannel - Radio::kChannelMin; in GetPowerSettings()
|
D | channel_monitor.hpp | 191 static constexpr uint8_t kNumChannels = (Radio::kChannelMax - Radio::kChannelMin + 1);
|
D | jam_detector.cpp | 168 rssi = Get<Radio>().GetRssi(); in HandleTimer() 172 if (rssi != Radio::kInvalidRssi) in HandleTimer()
|
/openthread-latest/src/posix/platform/ |
D | radio.hpp | 55 class Radio : public Logger<Radio> class 64 Radio(void);
|
D | radio.cpp | 53 static ot::Posix::Radio sRadio; 62 const char Radio::kLogModuleName[] = "Radio"; 64 Radio::Radio(void) in Radio() function in ot::Posix::Radio 73 void Radio::Init(const char *aUrl) in Init() 107 void Radio::ProcessRadioUrl(const RadioUrl &aRadioUrl) in ProcessRadioUrl() 159 void Radio::ProcessMaxPowerTable(const RadioUrl &aRadioUrl) in ProcessMaxPowerTable() 168 uint8_t channel = ot::Radio::kChannelMin; in ProcessMaxPowerTable() 175 str != nullptr && channel <= ot::Radio::kChannelMax; str = strtok_r(nullptr, ",", &pSave)) in ProcessMaxPowerTable() 189 while (channel <= ot::Radio::kChannelMax) in ProcessMaxPowerTable()
|
/openthread-latest/src/core/meshcop/ |
D | meshcop_tlvs.cpp | 201 if (Radio::SupportsChannelPage(entry->GetChannelPage())) in Parse() 213 aChannelMask |= (entry->GetMask() & Radio::ChannelMaskForPage(entry->GetChannelPage())); in Parse() 231 for (uint8_t page : Radio::kSupportedChannelPages) in PrepareValue() 233 uint32_t mask = (Radio::ChannelMaskForPage(page) & aChannelMask); in PrepareValue()
|
/openthread-latest/tests/unit/ |
D | test_link_quality.cpp | 73 if (aAverage != Radio::kInvalidRssi) in VerifyRawRssValue() 126 if (average != Radio::kInvalidRssi) in VerifyRawRssValue() 163 …VerifyOrQuit(rssAverager.GetAverage() == Radio::kInvalidRssi, "Initial value from GetAverage() is … in TestRssAveraging() 181 …VerifyOrQuit(rssAverager.GetAverage() == Radio::kInvalidRssi, "GetAverage() after Clear() is incor… in TestRssAveraging()
|
D | test_mac_frame.cpp | 431 for (channel = Radio::kChannelMin; channel <= Radio::kChannelMax; channel++) in VerifyChannelMaskContent() 485 Mac::ChannelMask mask2(Radio::kSupportedChannels); in TestMacChannelMask() 494 VerifyOrQuit(mask2.GetMask() == Radio::kSupportedChannels); in TestMacChannelMask() 498 mask1.SetMask(Radio::kSupportedChannels); in TestMacChannelMask() 500 VerifyOrQuit(mask1.GetMask() == Radio::kSupportedChannels); in TestMacChannelMask() 555 mask1.SetMask(Radio::kSupportedChannels); in TestMacChannelMask() 556 mask2.SetMask(Radio::kSupportedChannels); in TestMacChannelMask()
|
/openthread-latest/src/lib/spinel/ |
D | README_RADIO_SPINEL_DIAG.md | 1 # OpenThread Diagnostics - Radio Spinel diagnostic commands
|