| /openthread-latest/src/core/api/ |
| D | link_api.cpp | 46 if (instance.Get<Mac::LinkRaw>().IsEnabled()) in otLinkGetChannel() 48 channel = instance.Get<Mac::LinkRaw>().GetChannel(); in otLinkGetChannel() 53 channel = instance.Get<Mac::Mac>().GetPanChannel(); in otLinkGetChannel() 65 if (instance.Get<Mac::LinkRaw>().IsEnabled()) in otLinkSetChannel() 67 error = instance.Get<Mac::LinkRaw>().SetChannel(aChannel); in otLinkSetChannel() 74 SuccessOrExit(error = instance.Get<Mac::Mac>().SetPanChannel(aChannel)); in otLinkSetChannel() 85 return AsCoreType(aInstance).Get<Mac::Mac>().GetWakeupChannel(); in otLinkGetWakeupChannel() 95 SuccessOrExit(error = instance.Get<Mac::Mac>().SetWakeupChannel(aChannel)); in otLinkSetWakeupChannel() 107 return AsCoreType(aInstance).Get<Mac::Mac>().GetSupportedChannelMask().GetMask(); in otLinkGetSupportedChannelMask() 117 instance.Get<Mac::Mac>().SetSupportedChannelMask(Mac::ChannelMask(aChannelMask)); in otLinkSetSupportedChannelMask() [all …]
|
| D | link_raw_api.cpp | 46 return AsCoreType(aInstance).Get<Mac::LinkRaw>().SetReceiveDone(aCallback); in otLinkRawSetReceiveDone() 49 bool otLinkRawIsEnabled(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mac::LinkRaw>().I… in otLinkRawIsEnabled() 53 return AsCoreType(aInstance).Get<Mac::LinkRaw>().SetShortAddress(aShortAddress); in otLinkRawSetShortAddress() 58 return AsCoreType(aInstance).Get<Mac::LinkRaw>().SetAlternateShortAddress(aShortAddress); in otLinkRawSetAlternateShortAddress() 68 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSetPromiscuous() 80 VerifyOrExit(instance.Get<Mac::LinkRaw>().IsEnabled(), error = kErrorInvalidState); in otLinkRawSleep() 88 otError otLinkRawReceive(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mac::LinkRaw>().… in otLinkRawReceive() 92 return &AsCoreType(aInstance).Get<Mac::LinkRaw>().GetTransmitFrame(); in otLinkRawGetTransmitBuffer() 97 return AsCoreType(aInstance).Get<Mac::LinkRaw>().Transmit(aCallback); in otLinkRawTransmit() 102 otRadioCaps otLinkRawGetCaps(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mac::LinkRaw… in otLinkRawGetCaps() [all …]
|
| /openthread-latest/examples/platforms/utils/ |
| D | mac_frame.cpp | 45 …return otMacFrameDoesAddrMatchAny(aFrame, aPanId, aShortAddress, Mac::kShortAddrInvalid, aExtAddre… in otMacFrameDoesAddrMatch() 54 const Mac::Frame &frame = *static_cast<const Mac::Frame *>(aFrame); in otMacFrameDoesAddrMatchAny() 56 Mac::Address dst; in otMacFrameDoesAddrMatchAny() 57 Mac::PanId panid; in otMacFrameDoesAddrMatchAny() 63 case Mac::Address::kTypeShort: in otMacFrameDoesAddrMatchAny() 64 … VerifyOrExit(dst.GetShort() == Mac::kShortAddrBroadcast || dst.GetShort() == aShortAddress || in otMacFrameDoesAddrMatchAny() 65 … (aAltShortAddress != Mac::kShortAddrInvalid && dst.GetShort() == aAltShortAddress), in otMacFrameDoesAddrMatchAny() 69 case Mac::Address::kTypeExtended: in otMacFrameDoesAddrMatchAny() 70 …VerifyOrExit(dst.GetExtended() == *static_cast<const Mac::ExtAddress *>(aExtAddress), rval = false… in otMacFrameDoesAddrMatchAny() 73 case Mac::Address::kTypeNone: in otMacFrameDoesAddrMatchAny() [all …]
|
| /openthread-latest/src/core/thread/ |
| D | radio_selector.cpp | 46 const Mac::RadioType RadioSelector::sRadioSelectionOrder[Mac::kNumRadioTypes] = { 48 Mac::kRadioTypeTrel, 51 Mac::kRadioTypeIeee802154, 65 if (GetSupportedRadioTypes().Contains(Mac::kRadioTypeIeee802154)) in PopulateMultiRadioInfo() 68 aInfo.mIeee802154Info.mPreference = GetRadioPreference(Mac::kRadioTypeIeee802154); in PopulateMultiRadioInfo() 73 if (GetSupportedRadioTypes().Contains(Mac::kRadioTypeTrel)) in PopulateMultiRadioInfo() 76 aInfo.mTrelUdp6Info.mPreference = GetRadioPreference(Mac::kRadioTypeTrel); in PopulateMultiRadioInfo() 81 LogLevel RadioSelector::UpdatePreference(Neighbor &aNeighbor, Mac::RadioType aRadioType, int16_t aD… in UpdatePreference() 108 void RadioSelector::UpdateOnReceive(Neighbor &aNeighbor, Mac::RadioType aRadioType, bool aIsDuplica… in UpdateOnReceive() 128 void RadioSelector::UpdateOnSendDone(Mac::TxFrame &aFrame, Error aTxError) in UpdateOnSendDone() [all …]
|
| D | radio_selector.hpp | 86 Mac::RadioTypes GetSupportedRadioTypes(void) const { return mSupportedRadioTypes; } in GetSupportedRadioTypes() 96 void AddSupportedRadioType(Mac::RadioType aType) { mSupportedRadioTypes.Add(aType); } in AddSupportedRadioType() 97 void RemoveSupportedRadioType(Mac::RadioType aType) { mSupportedRadioTypes.Remove(aType); } in RemoveSupportedRadioType() 100 uint8_t GetRadioPreference(Mac::RadioType aType) const { return mRadioPreference[aType]; } in GetRadioPreference() 101 …void SetRadioPreference(Mac::RadioType aType, uint8_t aValue) { mRadioPreference[aType] = aValu… in SetRadioPreference() 103 Mac::RadioTypes mSupportedRadioTypes; 104 uint8_t mRadioPreference[Mac::kNumRadioTypes]; 125 void UpdateOnReceive(Neighbor &aNeighbor, Mac::RadioType aRadioType, bool aIsDuplicate); 136 void UpdateOnSendDone(Mac::TxFrame &aFrame, Error aTxError); 158 Mac::RadioType SelectPollFrameRadio(const Neighbor &aParent); [all …]
|
| D | mesh_forwarder.hpp | 89 Mac::PanId GetPanId(void) const { return mPanId; } in GetPanId() 149 void SetFrom(const Mac::RxFrame &aFrame); 157 friend class Mac::Mac; 392 const Mac::Address &GetSrcAddr(void) const { return mMacAddrs.mSource; } in GetSrcAddr() 393 const Mac::Address &GetDstAddr(void) const { return mMacAddrs.mDestination; } in GetDstAddr() 400 Mac::Addresses mMacAddrs; 489 void SendIcmpErrorIfDstUnreach(const Message &aMessage, const Mac::Addresses &aMacAddrs); 494 void GetMacDestinationAddress(const Ip6::Address &aIp6Addr, Mac::Address &aMacAddr); 495 void GetMacSourceAddress(const Ip6::Address &aIp6Addr, Mac::Address &aMacAddr); 502 …void PrepareMacHeaders(Mac::TxFrame &aTxFrame, Mac::TxFrame::Info &aTxFrameInfo, const Message… [all …]
|
| D | csl_tx_scheduler.cpp | 54 …mCslFrameRequestAheadUs = Mac::kCslRequestAhead + Get<Mac::Mac>().CalculateRadioBusTransferTime(kM… in UpdateFrameRequestAhead() 128 Get<Mac::Mac>().RequestCslFrameTransmission(minDelayTime / 1000UL); in RescheduleCslTx() 157 Mac::TxFrame *CslTxScheduler::HandleFrameRequest(Mac::TxFrames &aTxFrames) in HandleFrameRequest() 159 Mac::TxFrame *frame = nullptr; in HandleFrameRequest() 167 frame = &aTxFrames.GetTxFrame(Mac::kRadioTypeIeee802154); in HandleFrameRequest() 197 frame->SetChannel(mCslTxNeighbor->GetCslChannel() == 0 ? Get<Mac::Mac>().GetPanChannel() in HandleFrameRequest() 200 if (frame->GetChannel() != Get<Mac::Mac>().GetPanChannel()) in HandleFrameRequest() 202 frame->SetRxChannelAfterTxDone(Get<Mac::Mac>().GetPanChannel()); in HandleFrameRequest() 235 Mac::TxFrame *CslTxScheduler::HandleFrameRequest(Mac::TxFrames &) { return nullptr; } in HandleFrameRequest() 239 void CslTxScheduler::HandleSentFrame(const Mac::TxFrame &aFrame, Error aError) in HandleSentFrame() [all …]
|
| D | mesh_forwarder.cpp | 43 void ThreadLinkInfo::SetFrom(const Mac::RxFrame &aFrame) in SetFrom() 53 Mac::PanId dstPanId; in SetFrom() 60 mIsDstPanIdBroadcast = (dstPanId == Mac::kPanIdBroadcast); in SetFrom() 72 … mLinkSecurity = (keyIdMode == Mac::Frame::kKeyIdMode0) || (keyIdMode == Mac::Frame::kKeyIdMode1); in SetFrom() 126 Get<Mac::Mac>().SetRxOnWhenIdle(true); in Start() 158 Get<Mac::Mac>().SetRxOnWhenIdle(false); in Stop() 164 void MeshForwarder::PrepareEmptyFrame(Mac::TxFrame &aFrame, const Mac::Address &aMacDest, bool aAck… in PrepareEmptyFrame() 166 Mac::TxFrame::Info frameInfo; in PrepareEmptyFrame() 168 frameInfo.mAddrs.mSource.SetShort(Get<Mac::Mac>().GetShortAddress()); in PrepareEmptyFrame() 172 frameInfo.mAddrs.mSource.SetExtended(Get<Mac::Mac>().GetExtAddress()); in PrepareEmptyFrame() [all …]
|
| D | discover_scanner.cpp | 54 Error DiscoverScanner::Discover(const Mac::ChannelMask &aScanChannels, in Discover() 79 Mac::ExtAddress extAddress; in Discover() 93 mScanChannels = Get<Mac::Mac>().GetSupportedChannelMask(); in Discover() 133 if ((aPanId == Mac::kPanIdBroadcast) && (Get<Mac::Mac>().GetPanId() == Mac::kPanIdBroadcast)) in Discover() 141 Get<Mac::Mac>().SetPanId(Mac::GenerateRandomPanId()); in Discover() 145 mScanChannel = Mac::ChannelMask::kChannelIteratorFirst; in Discover() 178 Mac::TxFrame *DiscoverScanner::PrepareDiscoveryRequestFrame(Mac::TxFrame &aFrame) in PrepareDiscoveryRequestFrame() 180 Mac::TxFrame *frame = &aFrame; in PrepareDiscoveryRequestFrame() 194 IgnoreError(Get<Mac::Mac>().SetTemporaryChannel(mScanChannel)); in PrepareDiscoveryRequestFrame() 258 Get<Mac::Mac>().ClearTemporaryChannel(); in HandleDiscoverComplete() [all …]
|
| D | neighbor.hpp | 126 AddressMatcher(Mac::ShortAddress aShortAddress, StateFilter aStateFilter) in AddressMatcher() 137 AddressMatcher(const Mac::ExtAddress &aExtAddress, StateFilter aStateFilter) in AddressMatcher() 138 : AddressMatcher(aStateFilter, Mac::kShortAddrInvalid, &aExtAddress) in AddressMatcher() 148 AddressMatcher(const Mac::Address &aMacAddress, StateFilter aStateFilter) in AddressMatcher() 150 … aMacAddress.IsShort() ? aMacAddress.GetShort() : Mac::kShortAddrInvalid, in AddressMatcher() 161 : AddressMatcher(aStateFilter, Mac::kShortAddrInvalid, nullptr) in AddressMatcher() 176 …AddressMatcher(StateFilter aStateFilter, Mac::ShortAddress aShortAddress, const Mac::ExtAddress *a… in AddressMatcher() 184 Mac::ShortAddress mShortAddress; 185 const Mac::ExtAddress *mExtAddress; 342 const Mac::ExtAddress &GetExtAddress(void) const { return mMacAddr; } in GetExtAddress() [all …]
|
| /openthread-latest/tests/gtest/ |
| D | radio_spinel_rcp_test.cpp | 57 constexpr Mac::PanId kSrcPanId = 0x1234; in TEST() 58 constexpr Mac::PanId kDstPanId = 0x4321; in TEST() 64 Mac::TxFrame txFrame{}; in TEST() 69 Mac::TxFrame::Info frameInfo; in TEST() 71 frameInfo.mType = Mac::Frame::kTypeData; in TEST() 72 frameInfo.mVersion = Mac::Frame::kVersion2006; in TEST() 77 frameInfo.mSecurityLevel = Mac::Frame::kSecurityEncMic32; in TEST() 86 Mac::Frame &frame = *static_cast<Mac::Frame *>(aFrame); in TEST() 101 constexpr Mac::PanId kSrcPanId = 0x1234; in TEST() 102 constexpr Mac::PanId kDstPanId = 0x4321; in TEST() [all …]
|
| /openthread-latest/src/core/mac/ |
| D | wakeup_tx_scheduler.cpp | 54 Error WakeupTxScheduler::WakeUp(const Mac::ExtAddress &aWedAddress, uint16_t aIntervalUs, uint16_t … in WakeUp() 74 void WakeupTxScheduler::RequestWakeupFrameTransmission(void) { Get<Mac::Mac>().RequestWakeupFrameTr… in RequestWakeupFrameTransmission() 78 Mac::TxFrame *WakeupTxScheduler::PrepareWakeupFrame(Mac::TxFrames &aTxFrames) in PrepareWakeupFrame() 80 Mac::TxFrame *frame = nullptr; in PrepareWakeupFrame() 81 Mac::Address target; in PrepareWakeupFrame() 82 Mac::Address source; in PrepareWakeupFrame() 86 Mac::ConnectionIe *connectionIe; in PrepareWakeupFrame() 91 source.SetExtended(Get<Mac::Mac>().GetExtAddress()); in PrepareWakeupFrame() 96 frame = &aTxFrames.GetTxFrame(Mac::kRadioTypeIeee802154); in PrepareWakeupFrame() 101 …VerifyOrExit(frame->GenerateWakeupFrame(Get<Mac::Mac>().GetPanId(), target, source) == kErrorNone,… in PrepareWakeupFrame() [all …]
|
| D | data_poll_sender.cpp | 95 VerifyOrExit(!Get<Mac::Mac>().GetRxOnWhenIdle(), error = kErrorInvalidState); in SendDataPoll() 101 SuccessOrExit(error = Get<Mac::Mac>().RequestDataPollTransmission()); in SendDataPoll() 127 Error DataPollSender::GetPollDestinationAddress(Mac::Address &aDest, Mac::RadioType &aRadioType) co… in GetPollDestinationAddress() 129 Error DataPollSender::GetPollDestinationAddress(Mac::Address &aDest) const in GetPollDestinationAddress() 138 if ((Get<Mac::Mac>().GetShortAddress() == Mac::kShortAddrInvalid) || in GetPollDestinationAddress() 193 void DataPollSender::HandlePollSent(Mac::TxFrame &aFrame, Error aError) in HandlePollSent() 195 Mac::Address macDest; in HandlePollSent() 310 void DataPollSender::ProcessRxFrame(const Mac::RxFrame &aFrame) in ProcessRxFrame() 326 void DataPollSender::ProcessTxDone(const Mac::TxFrame &aFrame, const Mac::RxFrame *aAckFrame, Error… in ProcessTxDone() 495 if (Get<Mac::Mac>().GetCslPeriodInMsec() > 0) in CalculatePollPeriod() [all …]
|
| D | data_poll_handler.hpp | 69 friend class Mac::Mac; 119 Mac::RadioType GetLastPollRadioType(void) const { return mLastPollRadioType; } in GetLastPollRadioType() 120 …void SetLastPollRadioType(Mac::RadioType aRadioType) { mLastPollRadioType = aRadioType; } in SetLastPollRadioType() 131 Mac::RadioType mLastPollRadioType; // The radio link last data poll frame was received on. 188 void HandleDataPoll(Mac::RxFrame &aFrame); 189 Mac::TxFrame *HandleFrameRequest(Mac::TxFrames &aTxFrames); 190 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError); 192 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild);
|
| D | data_poll_sender.hpp | 134 void HandlePollSent(Mac::TxFrame &aFrame, Error aError); 149 void ProcessRxFrame(const Mac::RxFrame &aFrame); 162 void ProcessTxDone(const Mac::TxFrame &aFrame, const Mac::RxFrame *aAckFrame, Error aError); 237 Mac::TxFrame *PrepareDataRequest(Mac::TxFrames &aTxFrames); 262 Error GetPollDestinationAddress(Mac::Address &aDest, Mac::RadioType &aRadioType) const; 264 Error GetPollDestinationAddress(Mac::Address &aDest) const;
|
| D | mac.cpp | 44 namespace Mac { namespace 48 const otExtAddress Mac::sMode2ExtAddress = { 52 Mac::Mac(Instance &aInstance) in Mac() function in ot::Mac::Mac 128 void Mac::SetEnabled(bool aEnable) in SetEnabled() 142 Error Mac::ActiveScan(uint32_t aScanChannels, uint16_t aScanDuration, ActiveScanHandler aHandler, v… in ActiveScan() 163 Error Mac::EnergyScan(uint32_t aScanChannels, uint16_t aScanDuration, EnergyScanHandler aHandler, v… in EnergyScan() 179 void Mac::Scan(Operation aScanOperation, uint32_t aScanChannels, uint16_t aScanDuration) in Scan() 194 bool Mac::IsInTransmitState(void) const in IsInTransmitState() 226 Error Mac::ConvertBeaconToActiveScanResult(const RxFrame *aBeaconFrame, ActiveScanResult &aResult) in ConvertBeaconToActiveScanResult() 277 Error Mac::UpdateScanChannel(void) in UpdateScanChannel() [all …]
|
| /openthread-latest/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-latest/src/core/radio/ |
| D | radio.hpp | 152 void HandleReceiveDone(Mac::RxFrame *aFrame, Error aError); 159 void HandleTransmitStarted(Mac::TxFrame &aFrame); 171 void HandleTransmitDone(Mac::TxFrame &aFrame, Mac::RxFrame *aAckFrame, Error aError); 197 void HandleDiagsReceiveDone(Mac::RxFrame *aFrame, Error aError); 208 void HandleDiagsTransmitDone(Mac::TxFrame &aFrame, Error aError); 306 void GetIeeeEui64(Mac::ExtAddress &aIeeeEui64); 334 void SetPanId(Mac::PanId aPanId); 341 void SetExtendedAddress(const Mac::ExtAddress &aExtAddress); 348 void SetShortAddress(Mac::ShortAddress aShortAddress); 355 void SetAlternateShortAddress(Mac::ShortAddress aShortAddress); [all …]
|
| D | radio.cpp | 65 SetPanId(Mac::kPanIdBroadcast); in Init() 66 SetExtendedAddress(Mac::ExtAddress{}); in Init() 67 SetShortAddress(Mac::kShortAddrInvalid); in Init() 68 SetMacKey(0, 0, Mac::KeyMaterial{}, Mac::KeyMaterial{}, Mac::KeyMaterial{}); in Init() 79 void Radio::SetExtendedAddress(const Mac::ExtAddress &aExtAddress) in SetExtendedAddress() 81 Mac::ExtAddress address; in SetExtendedAddress() 83 address.Set(aExtAddress.m8, Mac::ExtAddress::kReverseByteOrder); in SetExtendedAddress() 91 void Radio::SetShortAddress(Mac::ShortAddress aShortAddress) in SetShortAddress() 100 Error Radio::AddSrcMatchExtEntry(const Mac::ExtAddress &aExtAddress) in AddSrcMatchExtEntry() 102 Mac::ExtAddress address; in AddSrcMatchExtEntry() [all …]
|
| D | trel_link.cpp | 48 , mPanId(Mac::kPanIdBroadcast) in Link() 62 mTxFrame.SetRadioType(Mac::kRadioTypeTrel); in Link() 63 mRxFrame.SetRadioType(Mac::kRadioTypeTrel); in Link() 116 Mac::Address destAddr; in BeginTransmit() 117 Mac::PanId destPanId; in BeginTransmit() 121 Mac::RxFrame *ackFrame = nullptr; in BeginTransmit() 176 isDiscovery = (keyIdMode == Mac::Frame::kKeyIdMode2); in BeginTransmit() 182 destPanId = Mac::kPanIdBroadcast; in BeginTransmit() 201 txPacket.GetHeader().SetSource(Get<Mac::Mac>().GetExtAddress()); in BeginTransmit() 215 uint16_t fcf = Mac::Frame::kTypeAck; in BeginTransmit() [all …]
|
| D | radio_callbacks.cpp | 40 void Radio::Callbacks::HandleReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleReceiveDone() 45 Get<Mac::SubMac>().HandleReceiveDone(aFrame, aError); in HandleReceiveDone() 48 void Radio::Callbacks::HandleTransmitStarted(Mac::TxFrame &aFrame) { Get<Mac::SubMac>().HandleTrans… in HandleTransmitStarted() 50 void Radio::Callbacks::HandleTransmitDone(Mac::TxFrame &aFrame, Mac::RxFrame *aAckFrame, Error aErr… in HandleTransmitDone() 55 Get<Mac::SubMac>().HandleTransmitDone(aFrame, aAckFrame, aError); in HandleTransmitDone() 58 void Radio::Callbacks::HandleEnergyScanDone(int8_t aMaxRssi) { Get<Mac::SubMac>().HandleEnergyScanD… in HandleEnergyScanDone() 71 void Radio::Callbacks::HandleDiagsReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleDiagsReceiveDone() 81 void Radio::Callbacks::HandleDiagsTransmitDone(Mac::TxFrame &aFrame, Error aError) in HandleDiagsTransmitDone()
|
| D | radio_platform.cpp | 49 Mac::RxFrame *rxFrame = static_cast<Mac::RxFrame *>(aFrame); in otPlatRadioReceiveDone() 56 rxFrame->SetRadioType(Mac::kRadioTypeIeee802154); in otPlatRadioReceiveDone() 69 Mac::TxFrame &txFrame = *static_cast<Mac::TxFrame *>(aFrame); in otPlatRadioTxStarted() 74 txFrame.SetRadioType(Mac::kRadioTypeIeee802154); in otPlatRadioTxStarted() 86 Mac::TxFrame &txFrame = *static_cast<Mac::TxFrame *>(aFrame); in otPlatRadioTxDone() 87 Mac::RxFrame *ackFrame = static_cast<Mac::RxFrame *>(aAckFrame); in otPlatRadioTxDone() 94 ackFrame->SetRadioType(Mac::kRadioTypeIeee802154); in otPlatRadioTxDone() 97 txFrame.SetRadioType(Mac::kRadioTypeIeee802154); in otPlatRadioTxDone() 131 Mac::RxFrame *rxFrame = static_cast<Mac::RxFrame *>(aFrame); in otPlatDiagRadioReceiveDone() 136 rxFrame->SetRadioType(Mac::kRadioTypeIeee802154); in otPlatDiagRadioReceiveDone() [all …]
|
| /openthread-latest/src/core/utils/ |
| D | channel_manager.cpp | 88 if (aChannel == Get<Mac::Mac>().GetPanChannel()) in RequestNetworkChannelChange() 115 if (!(!Get<Mle::Mle>().IsRxOnWhenIdle() && Get<Mac::Mac>().IsCslEnabled())) in ChangeCslChannel() 121 if (aChannel == Get<Mac::Mac>().GetCslChannel()) in ChangeCslChannel() 132 Get<Mac::Mac>().SetCslChannel(aChannel); in ChangeCslChannel() 233 Mac::ChannelMask favoredAndSupported; in FindBetterChannel() 234 Mac::ChannelMask favoredBest; in FindBetterChannel() 235 Mac::ChannelMask supportedBest; in FindBetterChannel() 282 uint16_t ccaFailureRate = Get<Mac::Mac>().GetCcaFailureRate(); in ShouldAttemptChannelChange() 353 if (Get<Mac::Mac>().IsCslEnabled() && (Get<Mac::Mac>().GetCslChannel() != 0)) in RequestChannelSelect() 355 curChannel = Get<Mac::Mac>().GetCslChannel(); in RequestChannelSelect() [all …]
|
| /openthread-latest/tests/nexus/platform/ |
| D | nexus_radio.hpp | 53 struct Frame : public Mac::Frame 62 bool Matches(const Mac::Address &aAddress, Mac::PanId aPanId) const; 63 bool HasFramePendingFor(const Mac::Address &aAddress) const; 69 Mac::PanId mPanId; 70 Mac::ShortAddress mShortAddress; 71 Mac::ExtAddress mExtAddress; 74 Array<Mac::ExtAddress, kMaxSrcMatchExt> mSrcMatchExtEntries;
|
| D | nexus_node.cpp | 80 SuccessOrQuit(Get<Mac::Filter>().AddAddress(aNode.Get<Mac::Mac>().GetExtAddress())); in AllowList() 81 Get<Mac::Filter>().SetMode(Mac::Filter::kModeAllowlist); in AllowList() 84 void Node::UnallowList(Node &aNode) { Get<Mac::Filter>().RemoveAddress(aNode.Get<Mac::Mac>().GetExt… in UnallowList()
|