Home
last modified time | relevance | path

Searched refs:Mac (Results 1 – 25 of 148) sorted by relevance

123456

/openthread-3.7.0/examples/platforms/utils/
Dmac_frame.cpp41 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.7.0/src/core/api/
Dlink_api.cpp51 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 …]
Dlink_raw_api.cpp54 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.7.0/src/core/thread/
Dradio_selector.cpp50 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 …]
Dradio_selector.hpp90 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 …]
Dmesh_forwarder.hpp91 Mac::PanId GetPanId(void) const { return mPanId; } in GetPanId()
159 void SetFrom(const Mac::RxFrame &aFrame);
168 friend class Mac::Mac;
250 void SetDiscoverParameters(const Mac::ChannelMask &aScanChannels);
502 void SendIcmpErrorIfDstUnreach(const Message &aMessage, const Mac::Addresses &aMacAddrs);
503 Error CheckReachability(const FrameData &aFrameData, const Mac::Addresses &aMeshAddrs);
504 void UpdateRoutes(const FrameData &aFrameData, const Mac::Addresses &aMeshAddrs);
507 const Mac::Addresses &aMacAddrs,
509 void GetMacDestinationAddress(const Ip6::Address &aIp6Addr, Mac::Address &aMacAddr);
510 void GetMacSourceAddress(const Ip6::Address &aIp6Addr, Mac::Address &aMacAddr);
[all …]
Dmesh_forwarder.cpp58 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 …]
Ddiscover_scanner.cpp61 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()
265 Get<Mac::Mac>().ClearTemporaryChannel(); in HandleDiscoverComplete()
[all …]
Dcsl_tx_scheduler.cpp47 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 …]
Dneighbor.hpp131 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 …]
Dneighbor_table.hpp101 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::ExtAddress &aExtAddress);
200 Neighbor *FindRxOnlyNeighborRouter(const Mac::Address &aMacAddress);
Dcsl_tx_scheduler.hpp63 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);
/openthread-3.7.0/src/core/mac/
Ddata_poll_sender.cpp105 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 …]
Ddata_poll_handler.hpp68 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);
Ddata_poll_sender.hpp142 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;
Ddata_poll_handler.cpp52 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 …]
Dmac.cpp59 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.7.0/tests/unit/
Dtest_mac_frame.cpp56 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.7.0/src/core/radio/
Dradio.hpp196 void HandleReceiveDone(Mac::RxFrame *aFrame, Error aError);
204 void HandleTransmitStarted(Mac::TxFrame &aFrame);
217 void HandleTransmitDone(Mac::TxFrame &aFrame, Mac::RxFrame *aAckFrame, Error aError);
240 void HandleDiagsReceiveDone(Mac::RxFrame *aFrame, Error aError);
252 void HandleDiagsTransmitDone(Mac::TxFrame &aFrame, Error aError);
288 void GetIeeeEui64(Mac::ExtAddress &aIeeeEui64);
320 void SetPanId(Mac::PanId aPanId);
328 void SetExtendedAddress(const Mac::ExtAddress &aExtAddress);
336 void SetShortAddress(Mac::ShortAddress aShortAddress);
350 const Mac::KeyMaterial &aPrevKey,
[all …]
Dtrel_link.cpp52 , 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 …]
Dradio_callbacks.cpp41 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()
Dradio_platform.cpp51 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 …]
Dradio.cpp69 SetPanId(Mac::kPanIdBroadcast); in Init()
70 SetExtendedAddress(Mac::ExtAddress{}); in Init()
71 SetShortAddress(Mac::kShortAddrInvalid); in Init()
72 SetMacKey(0, 0, Mac::KeyMaterial{}, Mac::KeyMaterial{}, Mac::KeyMaterial{}); 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 …uint32_t txTimeUs = (aPsduLength + Mac::Frame::kPhyHeaderSize) * Radio::kSymbolsPerOctet * Radio::… 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()
Dtrel_packet.hpp157 Mac::PanId GetPanId(void) const { return BigEndian::HostSwap16(mPanId); } in GetPanId()
165 void SetPanId(Mac::PanId aPanId) { mPanId = BigEndian::HostSwap16(aPanId); } in SetPanId()
189 const Mac::ExtAddress &GetSource(void) const { return mSource; } in GetSource()
197 void SetSource(const Mac::ExtAddress &aSource) { mSource = aSource; } in SetSource()
207 const Mac::ExtAddress &GetDestination(void) const { return mDestination; } in GetDestination()
217 void SetDestination(const Mac::ExtAddress &aDest) { mDestination = aDest; } in SetDestination()
249 Mac::ExtAddress mSource;
250 Mac::ExtAddress mDestination; // Present in `kTypeAck` or `kTypeUnicast` packet types.
/openthread-3.7.0/src/core/utils/
Dchannel_manager.cpp97 if (aChannel == Get<Mac::Mac>().GetPanChannel()) in RequestNetworkChannelChange()
124 if (!(!Get<Mle::Mle>().IsRxOnWhenIdle() && Get<Mac::Mac>().IsCslEnabled())) in ChangeCslChannel()
130 if (aChannel == Get<Mac::Mac>().GetCslChannel()) in ChangeCslChannel()
141 Get<Mac::Mac>().SetCslChannel(aChannel); in ChangeCslChannel()
242 Mac::ChannelMask favoredAndSupported; in FindBetterChannel()
243 Mac::ChannelMask favoredBest; in FindBetterChannel()
244 Mac::ChannelMask supportedBest; in FindBetterChannel()
291 uint16_t ccaFailureRate = Get<Mac::Mac>().GetCcaFailureRate(); in ShouldAttemptChannelChange()
362 if (Get<Mac::Mac>().IsCslEnabled() && (Get<Mac::Mac>().GetCslChannel() != 0)) in RequestChannelSelect()
364 curChannel = Get<Mac::Mac>().GetCslChannel(); in RequestChannelSelect()
[all …]

123456