/openthread-3.5.0/examples/platforms/utils/ |
D | mac_frame.cpp | 41 const Mac::Frame &frame = *static_cast<const Mac::Frame *>(aFrame); in otMacFrameDoesAddrMatch() 43 Mac::Address dst; in otMacFrameDoesAddrMatch() 44 Mac::PanId panid; in otMacFrameDoesAddrMatch() 50 case Mac::Address::kTypeShort: in otMacFrameDoesAddrMatch() 51 …VerifyOrExit(dst.GetShort() == Mac::kShortAddrBroadcast || dst.GetShort() == aShortAddress, rval =… in otMacFrameDoesAddrMatch() 54 case Mac::Address::kTypeExtended: in otMacFrameDoesAddrMatch() 55 …VerifyOrExit(dst.GetExtended() == *static_cast<const Mac::ExtAddress *>(aExtAddress), rval = false… in otMacFrameDoesAddrMatch() 58 case Mac::Address::kTypeNone: in otMacFrameDoesAddrMatch() 63 VerifyOrExit(panid == Mac::kPanIdBroadcast || panid == aPanId, rval = false); in otMacFrameDoesAddrMatch() 71 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeAck; in otMacFrameIsAck() [all …]
|
/openthread-3.5.0/src/core/api/ |
D | link_api.cpp | 51 if (instance.Get<Mac::LinkRaw>().IsEnabled()) in otLinkGetChannel() 53 channel = instance.Get<Mac::LinkRaw>().GetChannel(); in otLinkGetChannel() 58 channel = instance.Get<Mac::Mac>().GetPanChannel(); in otLinkGetChannel() 70 if (instance.Get<Mac::LinkRaw>().IsEnabled()) in otLinkSetChannel() 72 error = instance.Get<Mac::LinkRaw>().SetChannel(aChannel); in otLinkSetChannel() 79 SuccessOrExit(error = instance.Get<Mac::Mac>().SetPanChannel(aChannel)); in otLinkSetChannel() 89 return AsCoreType(aInstance).Get<Mac::Mac>().GetSupportedChannelMask().GetMask(); in otLinkGetSupportedChannelMask() 99 instance.Get<Mac::Mac>().SetSupportedChannelMask(Mac::ChannelMask(aChannelMask)); in otLinkSetSupportedChannelMask() 107 return &AsCoreType(aInstance).Get<Mac::Mac>().GetExtAddress(); in otLinkGetExtendedAddress() 117 instance.Get<Mac::Mac>().SetExtAddress(AsCoreType(aExtAddress)); in otLinkSetExtendedAddress() [all …]
|
D | link_raw_api.cpp | 54 return AsCoreType(aInstance).Get<Mac::LinkRaw>().SetReceiveDone(aCallback); in otLinkRawSetReceiveDone() 57 bool otLinkRawIsEnabled(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mac::LinkRaw>().I… in otLinkRawIsEnabled() 61 return AsCoreType(aInstance).Get<Mac::LinkRaw>().SetShortAddress(aShortAddress); in otLinkRawSetShortAddress() 71 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSetPromiscuous() 83 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSleep() 91 otError otLinkRawReceive(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mac::LinkRaw>().… in otLinkRawReceive() 95 return &AsCoreType(aInstance).Get<Mac::LinkRaw>().GetTransmitFrame(); in otLinkRawGetTransmitBuffer() 100 return AsCoreType(aInstance).Get<Mac::LinkRaw>().Transmit(aCallback); in otLinkRawTransmit() 105 otRadioCaps otLinkRawGetCaps(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mac::LinkRaw… in otLinkRawGetCaps() 112 …return AsCoreType(aInstance).Get<Mac::LinkRaw>().EnergyScan(aScanChannel, aScanDuration, aCallback… in otLinkRawEnergyScan() [all …]
|
/openthread-3.5.0/src/core/thread/ |
D | radio_selector.cpp | 50 const Mac::RadioType RadioSelector::sRadioSelectionOrder[Mac::kNumRadioTypes] = { 52 Mac::kRadioTypeTrel, 55 Mac::kRadioTypeIeee802154, 69 if (GetSupportedRadioTypes().Contains(Mac::kRadioTypeIeee802154)) in PopulateMultiRadioInfo() 72 aInfo.mIeee802154Info.mPreference = GetRadioPreference(Mac::kRadioTypeIeee802154); in PopulateMultiRadioInfo() 77 if (GetSupportedRadioTypes().Contains(Mac::kRadioTypeTrel)) in PopulateMultiRadioInfo() 80 aInfo.mTrelUdp6Info.mPreference = GetRadioPreference(Mac::kRadioTypeTrel); in PopulateMultiRadioInfo() 85 LogLevel RadioSelector::UpdatePreference(Neighbor &aNeighbor, Mac::RadioType aRadioType, int16_t aD… in UpdatePreference() 112 void RadioSelector::UpdateOnReceive(Neighbor &aNeighbor, Mac::RadioType aRadioType, bool aIsDuplica… in UpdateOnReceive() 132 void RadioSelector::UpdateOnSendDone(Mac::TxFrame &aFrame, Error aTxError) in UpdateOnSendDone() [all …]
|
D | radio_selector.hpp | 90 Mac::RadioTypes GetSupportedRadioTypes(void) const { return mSupportedRadioTypes; } in GetSupportedRadioTypes() 101 void AddSupportedRadioType(Mac::RadioType aType) { mSupportedRadioTypes.Add(aType); } in AddSupportedRadioType() 102 void RemoveSupportedRadioType(Mac::RadioType aType) { mSupportedRadioTypes.Remove(aType); } in RemoveSupportedRadioType() 105 uint8_t GetRadioPreference(Mac::RadioType aType) const { return mRadioPreference[aType]; } in GetRadioPreference() 106 …void SetRadioPreference(Mac::RadioType aType, uint8_t aValue) { mRadioPreference[aType] = aValu… in SetRadioPreference() 108 Mac::RadioTypes mSupportedRadioTypes; 109 uint8_t mRadioPreference[Mac::kNumRadioTypes]; 132 void UpdateOnReceive(Neighbor &aNeighbor, Mac::RadioType aRadioType, bool aIsDuplicate); 144 void UpdateOnSendDone(Mac::TxFrame &aFrame, Error aTxError); 168 Mac::RadioType SelectPollFrameRadio(const Neighbor &aParent); [all …]
|
D | mesh_forwarder.hpp | 90 Mac::PanId GetPanId(void) const { return mPanId; } in GetPanId() 158 void SetFrom(const Mac::RxFrame &aFrame); 167 friend class Mac::Mac; 253 void SetDiscoverParameters(const Mac::ChannelMask &aScanChannels); 505 void SendIcmpErrorIfDstUnreach(const Message &aMessage, const Mac::Addresses &aMacAddrs); 506 Error CheckReachability(const FrameData &aFrameData, const Mac::Addresses &aMeshAddrs); 507 void UpdateRoutes(const FrameData &aFrameData, const Mac::Addresses &aMeshAddrs); 510 const Mac::Addresses &aMacAddrs, 512 void GetMacDestinationAddress(const Ip6::Address &aIp6Addr, Mac::Address &aMacAddr); 513 void GetMacSourceAddress(const Ip6::Address &aIp6Addr, Mac::Address &aMacAddr); [all …]
|
D | mesh_forwarder.cpp | 58 void ThreadLinkInfo::SetFrom(const Mac::RxFrame &aFrame) in SetFrom() 68 Mac::PanId dstPanId; in SetFrom() 75 mIsDstPanIdBroadcast = (dstPanId == Mac::kPanIdBroadcast); in SetFrom() 87 … mLinkSecurity = (keyIdMode == Mac::Frame::kKeyIdMode0) || (keyIdMode == Mac::Frame::kKeyIdMode1); in SetFrom() 145 Get<Mac::Mac>().SetRxOnWhenIdle(true); in Start() 177 Get<Mac::Mac>().SetRxOnWhenIdle(false); in Stop() 183 void MeshForwarder::PrepareEmptyFrame(Mac::TxFrame &aFrame, const Mac::Address &aMacDest, bool aAck… in PrepareEmptyFrame() 185 Mac::Addresses addresses; in PrepareEmptyFrame() 186 Mac::PanIds panIds; in PrepareEmptyFrame() 188 addresses.mSource.SetShort(Get<Mac::Mac>().GetShortAddress()); in PrepareEmptyFrame() [all …]
|
D | csl_tx_scheduler.cpp | 47 inline Error CslTxScheduler::Callbacks::PrepareFrameForChild(Mac::TxFrame &aFrame, in PrepareFrameForChild() 54 inline void CslTxScheduler::Callbacks::HandleSentFrameToChild(const Mac::TxFrame &aFrame, in HandleSentFrameToChild() 149 Get<Mac::Mac>().RequestCslFrameTransmission(minDelayTime / 1000UL); in RescheduleCslTx() 178 Mac::TxFrame *CslTxScheduler::HandleFrameRequest(Mac::TxFrames &aTxFrames) in HandleFrameRequest() 180 Mac::TxFrame *frame = nullptr; in HandleFrameRequest() 188 frame = &aTxFrames.GetTxFrame(Mac::kRadioTypeIeee802154); in HandleFrameRequest() 217 frame->SetChannel(mCslTxChild->GetCslChannel() == 0 ? Get<Mac::Mac>().GetPanChannel() in HandleFrameRequest() 220 if (frame->GetChannel() != Get<Mac::Mac>().GetPanChannel()) in HandleFrameRequest() 222 frame->SetRxChannelAfterTxDone(Get<Mac::Mac>().GetPanChannel()); in HandleFrameRequest() 255 Mac::TxFrame *CslTxScheduler::HandleFrameRequest(Mac::TxFrames &) { return nullptr; } in HandleFrameRequest() [all …]
|
D | discover_scanner.cpp | 61 Error DiscoverScanner::Discover(const Mac::ChannelMask &aScanChannels, in Discover() 86 Mac::ExtAddress extAddress; in Discover() 100 mScanChannels = Get<Mac::Mac>().GetSupportedChannelMask(); in Discover() 140 if ((aPanId == Mac::kPanIdBroadcast) && (Get<Mac::Mac>().GetPanId() == Mac::kPanIdBroadcast)) in Discover() 148 Get<Mac::Mac>().SetPanId(Mac::GenerateRandomPanId()); in Discover() 152 mScanChannel = Mac::ChannelMask::kChannelIteratorFirst; in Discover() 185 Mac::TxFrame *DiscoverScanner::PrepareDiscoveryRequestFrame(Mac::TxFrame &aFrame) in PrepareDiscoveryRequestFrame() 187 Mac::TxFrame *frame = &aFrame; in PrepareDiscoveryRequestFrame() 201 IgnoreError(Get<Mac::Mac>().SetTemporaryChannel(mScanChannel)); in PrepareDiscoveryRequestFrame() 252 Get<Mac::Mac>().ClearTemporaryChannel(); in HandleDiscoverComplete() [all …]
|
D | neighbor.hpp | 131 AddressMatcher(Mac::ShortAddress aShortAddress, StateFilter aStateFilter) in AddressMatcher() 143 AddressMatcher(const Mac::ExtAddress &aExtAddress, StateFilter aStateFilter) in AddressMatcher() 144 : AddressMatcher(aStateFilter, Mac::kShortAddrInvalid, &aExtAddress) in AddressMatcher() 155 AddressMatcher(const Mac::Address &aMacAddress, StateFilter aStateFilter) in AddressMatcher() 158 … : static_cast<Mac::ShortAddress>(Mac::kShortAddrInvalid), in AddressMatcher() 170 : AddressMatcher(aStateFilter, Mac::kShortAddrInvalid, nullptr) in AddressMatcher() 186 …AddressMatcher(StateFilter aStateFilter, Mac::ShortAddress aShortAddress, const Mac::ExtAddress *a… in AddressMatcher() 194 Mac::ShortAddress mShortAddress; 195 const Mac::ExtAddress *mExtAddress; 373 const Mac::ExtAddress &GetExtAddress(void) const { return mMacAddr; } in GetExtAddress() [all …]
|
D | csl_tx_scheduler.hpp | 63 friend class Mac::Mac; 191 Error PrepareFrameForChild(Mac::TxFrame &aFrame, FrameContext &aContext, Child &aChild); 205 void HandleSentFrameToChild(const Mac::TxFrame &aFrame, 244 Mac::TxFrame *HandleFrameRequest(Mac::TxFrames &aTxFrames); 245 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError); 247 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild);
|
D | neighbor_table.hpp | 101 Neighbor *FindParent(Mac::ShortAddress aShortAddress, 114 Neighbor *FindParent(const Mac::ExtAddress &aExtAddress, 127 Neighbor *FindParent(const Mac::Address &aMacAddress, 139 Neighbor *FindNeighbor(Mac::ShortAddress aShortAddress, 151 Neighbor *FindNeighbor(const Mac::ExtAddress &aExtAddress, 163 Neighbor *FindNeighbor(const Mac::Address &aMacAddress, 189 Neighbor *FindRxOnlyNeighborRouter(const Mac::Address &aMacAddress);
|
D | discover_scanner.hpp | 71 static constexpr uint32_t kDefaultScanDuration = Mac::kScanDurationDefault; 127 Error Discover(const Mac::ChannelMask &aScanChannels, 128 Mac::PanId aPanId, 167 Mac::TxFrame *PrepareDiscoveryRequestFrame(Mac::TxFrame &aFrame); 185 Mac::ChannelMask mScanChannels;
|
/openthread-3.5.0/src/core/mac/ |
D | data_poll_sender.cpp | 105 VerifyOrExit(!Get<Mac::Mac>().GetRxOnWhenIdle(), error = kErrorInvalidState); in SendDataPoll() 111 SuccessOrExit(error = Get<Mac::Mac>().RequestDataPollTransmission()); in SendDataPoll() 137 Error DataPollSender::GetPollDestinationAddress(Mac::Address &aDest, Mac::RadioType &aRadioType) co… in GetPollDestinationAddress() 139 Error DataPollSender::GetPollDestinationAddress(Mac::Address &aDest) const in GetPollDestinationAddress() 148 if ((Get<Mac::Mac>().GetShortAddress() == Mac::kShortAddrInvalid) || in GetPollDestinationAddress() 203 void DataPollSender::HandlePollSent(Mac::TxFrame &aFrame, Error aError) in HandlePollSent() 205 Mac::Address macDest; in HandlePollSent() 258 (aFrame.GetHeaderIe(Mac::CslIe::kHeaderIeId) != nullptr) ? kMaxCslPollRetxAttempts in HandlePollSent() 267 …((aFrame.GetHeaderIe(Mac::CslIe::kHeaderIeId) != nullptr) ? kMaxCslPollRetxAttempts : kMaxPollRetx… in HandlePollSent() 322 void DataPollSender::ProcessRxFrame(const Mac::RxFrame &aFrame) in ProcessRxFrame() [all …]
|
D | data_poll_handler.hpp | 68 friend class Mac::Mac; 120 Mac::RadioType GetLastPollRadioType(void) const { return mLastPollRadioType; } in GetLastPollRadioType() 121 …void SetLastPollRadioType(Mac::RadioType aRadioType) { mLastPollRadioType = aRadioType; } in SetLastPollRadioType() 132 Mac::RadioType mLastPollRadioType; // The radio link last data poll frame was received on. 177 Error PrepareFrameForChild(Mac::TxFrame &aFrame, FrameContext &aContext, Child &aChild); 191 void HandleSentFrameToChild(const Mac::TxFrame &aFrame, 272 void HandleDataPoll(Mac::RxFrame &aFrame); 273 Mac::TxFrame *HandleFrameRequest(Mac::TxFrames &aTxFrames); 274 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError); 276 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild);
|
D | data_poll_sender.hpp | 142 void HandlePollSent(Mac::TxFrame &aFrame, Error aError); 159 void ProcessRxFrame(const Mac::RxFrame &aFrame); 173 void ProcessTxDone(const Mac::TxFrame &aFrame, const Mac::RxFrame *aAckFrame, Error aError); 256 Mac::TxFrame *PrepareDataRequest(Mac::TxFrames &aTxFrames); 281 Error GetPollDestinationAddress(Mac::Address &aDest, Mac::RadioType &aRadioType) const; 283 Error GetPollDestinationAddress(Mac::Address &aDest) const;
|
D | data_poll_handler.cpp | 52 inline Error DataPollHandler::Callbacks::PrepareFrameForChild(Mac::TxFrame &aFrame, in PrepareFrameForChild() 59 inline void DataPollHandler::Callbacks::HandleSentFrameToChild(const Mac::TxFrame &aFrame, in HandleSentFrameToChild() 109 if ((mIndirectTxChild == &aChild) && Get<Mac::Mac>().IsPerformingIndirectTransmit()) in RequestFrameChange() 129 void DataPollHandler::HandleDataPoll(Mac::RxFrame &aFrame) in HandleDataPoll() 131 Mac::Address macSource; in HandleDataPoll() 166 Get<Mac::Mac>().RequestIndirectFrameTransmission(); in HandleDataPoll() 177 Mac::TxFrame *DataPollHandler::HandleFrameRequest(Mac::TxFrames &aTxFrames) in HandleFrameRequest() 179 Mac::TxFrame *frame = nullptr; in HandleFrameRequest() 220 void DataPollHandler::HandleSentFrame(const Mac::TxFrame &aFrame, Error aError) in HandleSentFrame() 233 void DataPollHandler::HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild) in HandleSentFrame() [all …]
|
D | mac.cpp | 59 namespace Mac { namespace 63 const otExtAddress Mac::sMode2ExtAddress = { 67 Mac::Mac(Instance &aInstance) in Mac() function in ot::Mac::Mac 132 void Mac::SetEnabled(bool aEnable) in SetEnabled() 146 Error Mac::ActiveScan(uint32_t aScanChannels, uint16_t aScanDuration, ActiveScanHandler aHandler, v… in ActiveScan() 167 Error Mac::EnergyScan(uint32_t aScanChannels, uint16_t aScanDuration, EnergyScanHandler aHandler, v… in EnergyScan() 183 void Mac::Scan(Operation aScanOperation, uint32_t aScanChannels, uint16_t aScanDuration) in Scan() 198 bool Mac::IsInTransmitState(void) const in IsInTransmitState() 227 Error Mac::ConvertBeaconToActiveScanResult(const RxFrame *aBeaconFrame, ActiveScanResult &aResult) in ConvertBeaconToActiveScanResult() 278 Error Mac::UpdateScanChannel(void) in UpdateScanChannel() [all …]
|
/openthread-3.5.0/src/core/radio/ |
D | radio.hpp | 195 void HandleReceiveDone(Mac::RxFrame *aFrame, Error aError); 203 void HandleTransmitStarted(Mac::TxFrame &aFrame); 216 void HandleTransmitDone(Mac::TxFrame &aFrame, Mac::RxFrame *aAckFrame, Error aError); 239 void HandleDiagsReceiveDone(Mac::RxFrame *aFrame, Error aError); 251 void HandleDiagsTransmitDone(Mac::TxFrame &aFrame, Error aError); 287 void GetIeeeEui64(Mac::ExtAddress &aIeeeEui64); 319 void SetPanId(Mac::PanId aPanId); 327 void SetExtendedAddress(const Mac::ExtAddress &aExtAddress); 335 void SetShortAddress(Mac::ShortAddress aShortAddress); 349 const Mac::KeyMaterial &aPrevKey, [all …]
|
D | radio_callbacks.cpp | 41 void Radio::Callbacks::HandleReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleReceiveDone() 46 Get<Mac::SubMac>().HandleReceiveDone(aFrame, 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() 56 Get<Mac::SubMac>().HandleTransmitDone(aFrame, aAckFrame, aError); in HandleTransmitDone() 59 void Radio::Callbacks::HandleEnergyScanDone(int8_t aMaxRssi) { Get<Mac::SubMac>().HandleEnergyScanD… in HandleEnergyScanDone() 62 void Radio::Callbacks::HandleDiagsReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleDiagsReceiveDone() 72 void Radio::Callbacks::HandleDiagsTransmitDone(Mac::TxFrame &aFrame, Error aError) in HandleDiagsTransmitDone()
|
D | radio.cpp | 44 SuccessOrAssert(EnableCsl(0, Mac::kShortAddrInvalid, nullptr)); in Init() 57 SetPanId(Mac::kPanIdBroadcast); in Init() 58 SetExtendedAddress(Mac::ExtAddress{}); in Init() 59 SetShortAddress(Mac::kShortAddrInvalid); in Init() 60 SetMacKey(0, 0, Mac::KeyMaterial{}, Mac::KeyMaterial{}, Mac::KeyMaterial{}); in Init() 70 void Radio::SetExtendedAddress(const Mac::ExtAddress &aExtAddress) in SetExtendedAddress() 79 void Radio::SetShortAddress(Mac::ShortAddress aShortAddress) in SetShortAddress() 88 Error Radio::Transmit(Mac::TxFrame &aFrame) in Transmit() 126 …uint32_t txTimeUs = (aPsduLength + Mac::Frame::kPhyHeaderSize) * Radio::kSymbolsPerOctet * Radio::… in RecordTxDone() 127 …uint32_t rxAckTimeUs = (Mac::Frame::kImmAckLength + Mac::Frame::kPhyHeaderSize) * Radio::kPhyUsPer… in RecordTxDone() [all …]
|
D | trel_link.cpp | 52 , mPanId(Mac::kPanIdBroadcast) in Link() 66 mTxFrame.SetRadioType(Mac::kRadioTypeTrel); in Link() 67 mRxFrame.SetRadioType(Mac::kRadioTypeTrel); in Link() 120 Mac::Address destAddr; in BeginTransmit() 121 Mac::PanId destPanId; in BeginTransmit() 125 Mac::RxFrame *ackFrame = nullptr; in BeginTransmit() 180 isDiscovery = (keyIdMode == Mac::Frame::kKeyIdMode2); in BeginTransmit() 186 destPanId = Mac::kPanIdBroadcast; in BeginTransmit() 205 txPacket.GetHeader().SetSource(Get<Mac::Mac>().GetExtAddress()); in BeginTransmit() 219 uint16_t fcf = Mac::Frame::kTypeAck; in BeginTransmit() [all …]
|
D | radio_platform.cpp | 51 Mac::RxFrame *rxFrame = static_cast<Mac::RxFrame *>(aFrame); in otPlatRadioReceiveDone() 58 rxFrame->SetRadioType(Mac::kRadioTypeIeee802154); in otPlatRadioReceiveDone() 71 Mac::TxFrame &txFrame = *static_cast<Mac::TxFrame *>(aFrame); in otPlatRadioTxStarted() 76 txFrame.SetRadioType(Mac::kRadioTypeIeee802154); in otPlatRadioTxStarted() 88 Mac::TxFrame &txFrame = *static_cast<Mac::TxFrame *>(aFrame); in otPlatRadioTxDone() 89 Mac::RxFrame *ackFrame = static_cast<Mac::RxFrame *>(aAckFrame); in otPlatRadioTxDone() 96 ackFrame->SetRadioType(Mac::kRadioTypeIeee802154); in otPlatRadioTxDone() 99 txFrame.SetRadioType(Mac::kRadioTypeIeee802154); in otPlatRadioTxDone() 122 Mac::RxFrame *rxFrame = static_cast<Mac::RxFrame *>(aFrame); in otPlatDiagRadioReceiveDone() 127 rxFrame->SetRadioType(Mac::kRadioTypeIeee802154); in otPlatDiagRadioReceiveDone() [all …]
|
/openthread-3.5.0/tests/unit/ |
D | test_mac_frame.cpp | 56 bool CompareAddresses(const Mac::Address &aFirst, const Mac::Address &aSecond) in CompareAddresses() 64 case Mac::Address::kTypeNone: in CompareAddresses() 66 case Mac::Address::kTypeShort: in CompareAddresses() 69 case Mac::Address::kTypeExtended: in CompareAddresses() 83 const Mac::ShortAddress kShortAddr = 0x1234; in TestMacAddress() 86 Mac::Address addr; in TestMacAddress() 87 Mac::ExtAddress extAddr; in TestMacAddress() 102 extAddr.CopyTo(buffer, Mac::ExtAddress::kReverseByteOrder); in TestMacAddress() 108 extAddr.Set(kExtAddr, Mac::ExtAddress::kReverseByteOrder); in TestMacAddress() 132 VerifyOrQuit(addr.GetType() == Mac::Address::kTypeNone); in TestMacAddress() [all …]
|
/openthread-3.5.0/src/core/utils/ |
D | channel_manager.cpp | 71 if (aChannel == Get<Mac::Mac>().GetPanChannel()) in RequestChannelChange() 181 Mac::ChannelMask favoredAndSupported; in FindBetterChannel() 182 Mac::ChannelMask favoredBest; in FindBetterChannel() 183 Mac::ChannelMask supportedBest; in FindBetterChannel() 230 uint16_t ccaFailureRate = Get<Mac::Mac>().GetCcaFailureRate(); in ShouldAttemptChannelChange() 253 curChannel = Get<Mac::Mac>().GetPanChannel(); in RequestChannelSelect() 335 … mSupportedChannelMask.SetMask(aChannelMask & Get<Mac::Mac>().GetSupportedChannelMask().GetMask()); in SetSupportedChannels() 342 mFavoredChannelMask.SetMask(aChannelMask & Get<Mac::Mac>().GetSupportedChannelMask().GetMask()); in SetFavoredChannels()
|