Home
last modified time | relevance | path

Searched refs:aFrame (Results 1 – 25 of 69) sorted by relevance

123

/openthread-latest/examples/platforms/utils/
Dmac_frame.cpp36 bool otMacFrameDoesAddrMatch(const otRadioFrame *aFrame, in otMacFrameDoesAddrMatch() argument
41 const Mac::Frame &frame = *static_cast<const Mac::Frame *>(aFrame); in otMacFrameDoesAddrMatch()
69 bool otMacFrameIsAck(const otRadioFrame *aFrame) in otMacFrameIsAck() argument
71 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeAck; in otMacFrameIsAck()
74 bool otMacFrameIsData(const otRadioFrame *aFrame) in otMacFrameIsData() argument
76 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeData; in otMacFrameIsData()
79 bool otMacFrameIsCommand(const otRadioFrame *aFrame) in otMacFrameIsCommand() argument
81 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeMacCmd; in otMacFrameIsCommand()
84 bool otMacFrameIsDataRequest(const otRadioFrame *aFrame) in otMacFrameIsDataRequest() argument
86 return static_cast<const Mac::Frame *>(aFrame)->IsDataRequestCommand(); in otMacFrameIsDataRequest()
[all …]
Dmac_frame.h80 bool otMacFrameIsAck(const otRadioFrame *aFrame);
91 bool otMacFrameIsData(const otRadioFrame *aFrame);
102 bool otMacFrameIsCommand(const otRadioFrame *aFrame);
114 bool otMacFrameIsDataRequest(const otRadioFrame *aFrame);
125 bool otMacFrameIsAckRequested(const otRadioFrame *aFrame);
139 bool otMacFrameDoesAddrMatch(const otRadioFrame *aFrame,
154 otError otMacFrameGetSrcAddr(const otRadioFrame *aFrame, otMacAddress *aMacAddress);
166 otError otMacFrameGetDstAddr(const otRadioFrame *aFrame, otMacAddress *aMacAddress);
178 otError otMacFrameGetSequence(const otRadioFrame *aFrame, uint8_t *aSequence);
188 void otMacFrameProcessTransmitAesCcm(otRadioFrame *aFrame, const otExtAddress *aExtAddress);
[all …]
/openthread-latest/src/ncp/
Dncp_base_radio.cpp69 otError NcpBase::PackRadioFrame(otRadioFrame *aFrame, otError aError) in PackRadioFrame() argument
74 if (aFrame != nullptr && aError == OT_ERROR_NONE) in PackRadioFrame()
77 SuccessOrExit(mEncoder.WriteDataWithLen(aFrame->mPsdu, aFrame->mLength)); in PackRadioFrame()
86 SuccessOrExit(mEncoder.WriteInt8(aFrame ? aFrame->mInfo.mRxInfo.mRssi : 0)); // RSSI in PackRadioFrame()
89 if (aFrame != nullptr) in PackRadioFrame()
91 if (aFrame->mInfo.mRxInfo.mAckedWithFramePending) in PackRadioFrame()
96 if (aFrame->mInfo.mRxInfo.mAckedWithSecEnhAck) in PackRadioFrame()
105 …SuccessOrExit(mEncoder.WriteUint8(aFrame ? aFrame->mChannel : 0)); // 802.15.4 channel (Receive ch… in PackRadioFrame()
106 SuccessOrExit(mEncoder.WriteUint8(aFrame ? aFrame->mInfo.mRxInfo.mLqi in PackRadioFrame()
109 …SuccessOrExit(mEncoder.WriteUint64(aFrame ? aFrame->mInfo.mRxInfo.mTimestamp : 0)); // The timesta… in PackRadioFrame()
[all …]
/openthread-latest/src/core/radio/
Dradio_callbacks.cpp41 void Radio::Callbacks::HandleReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleReceiveDone() argument
46 Get<Mac::SubMac>().HandleReceiveDone(aFrame, aError); in HandleReceiveDone()
49 …:Callbacks::HandleTransmitStarted(Mac::TxFrame &aFrame) { Get<Mac::SubMac>().HandleTransmitStarted… in HandleTransmitStarted() argument
51 void Radio::Callbacks::HandleTransmitDone(Mac::TxFrame &aFrame, Mac::RxFrame *aAckFrame, Error aErr… in HandleTransmitDone() argument
54 Get<RadioStatistics>().RecordTxDone(aError, aFrame.GetLength()); in HandleTransmitDone()
56 Get<Mac::SubMac>().HandleTransmitDone(aFrame, aAckFrame, aError); in HandleTransmitDone()
69 void Radio::Callbacks::HandleDiagsReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleDiagsReceiveDone() argument
73 HandleReceiveDone(aFrame, aError); in HandleDiagsReceiveDone()
75 Get<FactoryDiags::Diags>().ReceiveDone(aFrame, aError); in HandleDiagsReceiveDone()
79 void Radio::Callbacks::HandleDiagsTransmitDone(Mac::TxFrame &aFrame, Error aError) in HandleDiagsTransmitDone() argument
[all …]
Dradio_platform.cpp48 extern "C" void otPlatRadioReceiveDone(otInstance *aInstance, otRadioFrame *aFrame, otError aError) in otPlatRadioReceiveDone() argument
51 Mac::RxFrame *rxFrame = static_cast<Mac::RxFrame *>(aFrame); in otPlatRadioReceiveDone()
68 extern "C" void otPlatRadioTxStarted(otInstance *aInstance, otRadioFrame *aFrame) in otPlatRadioTxStarted() argument
71 Mac::TxFrame &txFrame = *static_cast<Mac::TxFrame *>(aFrame); in otPlatRadioTxStarted()
85 extern "C" void otPlatRadioTxDone(otInstance *aInstance, otRadioFrame *aFrame, otRadioFrame *aAckFr… in otPlatRadioTxDone() argument
88 Mac::TxFrame &txFrame = *static_cast<Mac::TxFrame *>(aFrame); in otPlatRadioTxDone()
131 extern "C" void otPlatDiagRadioReceiveDone(otInstance *aInstance, otRadioFrame *aFrame, otError aEr… in otPlatDiagRadioReceiveDone() argument
133 Mac::RxFrame *rxFrame = static_cast<Mac::RxFrame *>(aFrame); in otPlatDiagRadioReceiveDone()
145 extern "C" void otPlatDiagRadioTransmitDone(otInstance *aInstance, otRadioFrame *aFrame, otError aE… in otPlatDiagRadioTransmitDone() argument
147 Mac::TxFrame &txFrame = *static_cast<Mac::TxFrame *>(aFrame); in otPlatDiagRadioTransmitDone()
/openthread-latest/src/core/mac/
Ddata_poll_handler.cpp52 inline Error DataPollHandler::Callbacks::PrepareFrameForChild(Mac::TxFrame &aFrame, in PrepareFrameForChild() argument
56 return Get<IndirectSender>().PrepareFrameForChild(aFrame, aContext, aChild); in PrepareFrameForChild()
59 inline void DataPollHandler::Callbacks::HandleSentFrameToChild(const Mac::TxFrame &aFrame, in HandleSentFrameToChild() argument
64 Get<IndirectSender>().HandleSentFrameToChild(aFrame, aContext, aError, aChild); in HandleSentFrameToChild()
129 void DataPollHandler::HandleDataPoll(Mac::RxFrame &aFrame) in HandleDataPoll() argument
135 VerifyOrExit(aFrame.GetSecurityEnabled()); in HandleDataPoll()
138 SuccessOrExit(aFrame.GetSrcAddr(macSource)); in HandleDataPoll()
145 child->SetLastPollRadioType(aFrame.GetRadioType()); in HandleDataPoll()
151 aFrame.GetRssi(), aFrame.IsAckedWithFramePending()); in HandleDataPoll()
153 if (!aFrame.IsAckedWithFramePending()) in HandleDataPoll()
[all …]
Dsub_mac_callbacks.cpp54 void SubMac::Callbacks::ReceiveDone(RxFrame *aFrame, Error aError) in ReceiveDone() argument
59 Get<LinkRaw>().InvokeReceiveDone(aFrame, aError); in ReceiveDone()
64 Get<Mac>().HandleReceivedFrame(aFrame, aError); in ReceiveDone()
73 void SubMac::Callbacks::RecordFrameTransmitStatus(const TxFrame &aFrame, in RecordFrameTransmitStatus() argument
78 Get<Mac>().RecordFrameTransmitStatus(aFrame, aError, aRetryCount, aWillRetx); in RecordFrameTransmitStatus()
81 void SubMac::Callbacks::TransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, Error aError) in TransmitDone() argument
86 Get<LinkRaw>().InvokeTransmitDone(aFrame, aAckFrame, aError); in TransmitDone()
91 Get<Mac>().HandleTransmitDone(aFrame, aAckFrame, aError); in TransmitDone()
116 void SubMac::Callbacks::ReceiveDone(RxFrame *aFrame, Error aError) { Get<LinkRaw>().InvokeReceiveDo… in ReceiveDone() argument
120 void SubMac::Callbacks::RecordFrameTransmitStatus(const TxFrame &aFrame, in RecordFrameTransmitStatus() argument
[all …]
Dmac.cpp849 void Mac::ProcessTransmitSecurity(TxFrame &aFrame) in ProcessTransmitSecurity() argument
855 VerifyOrExit(aFrame.GetSecurityEnabled()); in ProcessTransmitSecurity()
857 IgnoreError(aFrame.GetKeyIdMode(keyIdMode)); in ProcessTransmitSecurity()
862 aFrame.SetAesKey(keyManager.GetKek()); in ProcessTransmitSecurity()
865 if (!aFrame.IsHeaderUpdated()) in ProcessTransmitSecurity()
867 aFrame.SetFrameCounter(keyManager.GetKekFrameCounter()); in ProcessTransmitSecurity()
881 VerifyOrExit(aFrame.GetRadioType() != kRadioTypeIeee802154); in ProcessTransmitSecurity()
886 aFrame.SetAesKey(*mLinks.GetCurrentMacKey(aFrame)); in ProcessTransmitSecurity()
895 if (!aFrame.IsHeaderUpdated()) in ProcessTransmitSecurity()
897 mLinks.SetMacFrameCounter(aFrame); in ProcessTransmitSecurity()
[all …]
Dmac_links.cpp141 void Links::Send(TxFrame &aFrame, RadioTypes aRadioTypes) in Send() argument
146 mTxFrames.mTxFrame802154.CopyFrom(aFrame); in Send()
152 mTxFrames.mTxFrameTrel.CopyFrom(aFrame); in Send()
172 const KeyMaterial *Links::GetCurrentMacKey(const Frame &aFrame) const in GetCurrentMacKey()
178 RadioType radioType = aFrame.GetRadioType(); in GetCurrentMacKey()
199 OT_UNUSED_VARIABLE(aFrame); in GetCurrentMacKey()
205 const KeyMaterial *Links::GetTemporaryMacKey(const Frame &aFrame, uint32_t aKeySequence) const in GetTemporaryMacKey() argument
212 RadioType radioType = aFrame.GetRadioType(); in GetTemporaryMacKey()
244 OT_UNUSED_VARIABLE(aFrame); in GetTemporaryMacKey()
251 void Links::SetMacFrameCounter(TxFrame &aFrame) in SetMacFrameCounter() argument
[all …]
Dsub_mac.cpp272 void SubMac::HandleReceiveDone(RxFrame *aFrame, Error aError) in HandleReceiveDone() argument
274 if (mPcapCallback.IsSet() && (aFrame != nullptr) && (aError == kErrorNone)) in HandleReceiveDone()
276 mPcapCallback.Invoke(aFrame, false); in HandleReceiveDone()
279 …if (!ShouldHandleTransmitSecurity() && aFrame != nullptr && aFrame->mInfo.mRxInfo.mAckedWithSecEnh… in HandleReceiveDone()
281 … SignalFrameCounterUsed(aFrame->mInfo.mRxInfo.mAckFrameCounter, aFrame->mInfo.mRxInfo.mAckKeyId); in HandleReceiveDone()
285 UpdateCslLastSyncTimestamp(aFrame, aError); in HandleReceiveDone()
292 mCallbacks.ReceiveDone(aFrame, aError); in HandleReceiveDone()
493 void SubMac::HandleTransmitStarted(TxFrame &aFrame) in HandleTransmitStarted() argument
497 mPcapCallback.Invoke(&aFrame, true); in HandleTransmitStarted()
500 if (ShouldHandleAckTimeout() && aFrame.GetAckRequest()) in HandleTransmitStarted()
[all …]
Dsub_mac_csl_receiver.cpp59 void SubMac::UpdateCslLastSyncTimestamp(TxFrame &aFrame, RxFrame *aAckFrame) in UpdateCslLastSyncTimestamp() argument
63 if (aAckFrame != nullptr && aFrame.HasCslIe()) in UpdateCslLastSyncTimestamp()
69 void SubMac::UpdateCslLastSyncTimestamp(RxFrame *aFrame, Error aError) in UpdateCslLastSyncTimestamp() argument
71 VerifyOrExit(aFrame != nullptr && aError == kErrorNone); in UpdateCslLastSyncTimestamp()
74 LogReceived(aFrame); in UpdateCslLastSyncTimestamp()
78 if ((mCslPeriod > 0) && aFrame->mInfo.mRxInfo.mAckedWithSecEnhAck) in UpdateCslLastSyncTimestamp()
83 mCslLastSync = TimeMicro(static_cast<uint32_t>(aFrame->mInfo.mRxInfo.mTimestamp)); in UpdateCslLastSyncTimestamp()
262 void SubMac::LogReceived(RxFrame *aFrame) in LogReceived() argument
271 IgnoreError(aFrame->GetDstAddr(dst)); in LogReceived()
278 ToUlong(static_cast<uint32_t>(aFrame->mInfo.mRxInfo.mTimestamp))); in LogReceived()
[all …]
Dlink_raw.cpp182 void LinkRaw::InvokeReceiveDone(RxFrame *aFrame, Error aError) in InvokeReceiveDone() argument
184 …LogDebg("ReceiveDone(%d bytes), error:%s", (aFrame != nullptr) ? aFrame->mLength : 0, ErrorToStrin… in InvokeReceiveDone()
188 mReceiveDoneCallback(&GetInstance(), aFrame, aError); in InvokeReceiveDone()
205 void LinkRaw::InvokeTransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, Error aError) in InvokeTransmitDone() argument
207 LogDebg("TransmitDone(%d bytes), error:%s", aFrame.mLength, ErrorToString(aError)); in InvokeTransmitDone()
211 mTransmitDoneCallback(&GetInstance(), &aFrame, aAckFrame, aError); in InvokeTransmitDone()
276 void LinkRaw::RecordFrameTransmitStatus(const TxFrame &aFrame, Error aError, uint8_t aRetryCount, b… in RecordFrameTransmitStatus() argument
283 aFrame.GetMaxFrameRetries(), aFrame.ToInfoString().AsCString()); in RecordFrameTransmitStatus()
Dsub_mac.hpp136 void ReceiveDone(RxFrame *aFrame, Error aError);
167 …void RecordFrameTransmitStatus(const TxFrame &aFrame, Error aError, uint8_t aRetryCount, bool aWil…
181 void TransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, Error aError);
530 void UpdateCslLastSyncTimestamp(TxFrame &aFrame, RxFrame *aAckFrame);
531 void UpdateCslLastSyncTimestamp(RxFrame *aFrame, Error aError);
537 void LogReceived(RxFrame *aFrame);
630 void HandleReceiveDone(RxFrame *aFrame, Error aError);
631 void HandleTransmitStarted(TxFrame &aFrame);
632 void HandleTransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, Error aError);
633 void SignalFrameCounterUsedOnTxDone(const TxFrame &aFrame);
Dmac.hpp390 void HandleReceivedFrame(RxFrame *aFrame, Error aError);
417 …void RecordFrameTransmitStatus(const TxFrame &aFrame, Error aError, uint8_t aRetryCount, bool aWil…
430 void HandleTransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, Error aError);
797 Error ProcessReceiveSecurity(RxFrame &aFrame, const Address &aSrcAddr, Neighbor *aNeighbor);
798 void ProcessTransmitSecurity(TxFrame &aFrame);
817 bool HandleMacCommand(RxFrame &aFrame);
828 void LogFrameRxFailure(const RxFrame *aFrame, Error aError) const;
829 …void LogFrameTxFailure(const TxFrame &aFrame, Error aError, uint8_t aRetryCount, bool aWillRetx) c…
833 uint8_t GetTimeIeOffset(const Frame &aFrame);
837 void ProcessCsl(const RxFrame &aFrame, const Address &aSrcAddr);
[all …]
Ddata_poll_sender.cpp203 void DataPollSender::HandlePollSent(Mac::TxFrame &aFrame, Error aError) in HandlePollSent() argument
210 if (!aFrame.IsEmpty()) in HandlePollSent()
212 IgnoreError(aFrame.GetDstAddr(macDest)); in HandlePollSent()
213 … Get<MeshForwarder>().UpdateNeighborOnSentFrame(aFrame, aError, macDest, /* aIsDataPoll */ true); in HandlePollSent()
258 aFrame.HasCslIe() ? kMaxCslPollRetxAttempts : kMaxPollRetxAttempts); in HandlePollSent()
265 … if (mPollTxFailureCounter < (aFrame.HasCslIe() ? kMaxCslPollRetxAttempts : kMaxPollRetxAttempts)) in HandlePollSent()
320 void DataPollSender::ProcessRxFrame(const Mac::RxFrame &aFrame) in ProcessRxFrame() argument
326 if (aFrame.GetFramePending()) in ProcessRxFrame()
336 void DataPollSender::ProcessTxDone(const Mac::TxFrame &aFrame, const Mac::RxFrame *aAckFrame, Error… in ProcessTxDone() argument
342 VerifyOrExit(aFrame.GetSecurityEnabled()); in ProcessTxDone()
[all …]
Ddata_poll_handler.hpp177 Error PrepareFrameForChild(Mac::TxFrame &aFrame, FrameContext &aContext, Child &aChild);
191 void HandleSentFrameToChild(const Mac::TxFrame &aFrame,
272 void HandleDataPoll(Mac::RxFrame &aFrame);
274 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError);
276 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild);
/openthread-latest/src/core/thread/
Dcsl_tx_scheduler.cpp48 inline Error CslTxScheduler::Callbacks::PrepareFrameForChild(Mac::TxFrame &aFrame, in PrepareFrameForChild() argument
52 return Get<IndirectSender>().PrepareFrameForChild(aFrame, aContext, aChild); in PrepareFrameForChild()
55 inline void CslTxScheduler::Callbacks::HandleSentFrameToChild(const Mac::TxFrame &aFrame, in HandleSentFrameToChild() argument
60 Get<IndirectSender>().HandleSentFrameToChild(aFrame, aContext, aError, aChild); in HandleSentFrameToChild()
264 void CslTxScheduler::HandleSentFrame(const Mac::TxFrame &aFrame, Error aError) in HandleSentFrame() argument
274 HandleSentFrame(aFrame, aError, *child); in HandleSentFrame()
280 void CslTxScheduler::HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild) in HandleSentFrame() argument
290 OT_ASSERT(!aFrame.GetSecurityEnabled() || aFrame.IsHeaderUpdated()); in HandleSentFrame()
312 if (!aFrame.IsEmpty()) in HandleSentFrame()
314 aChild.SetIndirectDataSequenceNumber(aFrame.GetSequence()); in HandleSentFrame()
[all …]
Dmesh_forwarder.cpp58 void ThreadLinkInfo::SetFrom(const Mac::RxFrame &aFrame) in SetFrom() argument
62 if (kErrorNone != aFrame.GetSrcPanId(mPanId)) in SetFrom()
64 IgnoreError(aFrame.GetDstPanId(mPanId)); in SetFrom()
70 if (kErrorNone != aFrame.GetDstPanId(dstPanId)) in SetFrom()
78 if (aFrame.GetSecurityEnabled()) in SetFrom()
85 IgnoreError(aFrame.GetKeyIdMode(keyIdMode)); in SetFrom()
93 mChannel = aFrame.GetChannel(); in SetFrom()
94 mRss = aFrame.GetRssi(); in SetFrom()
95 mLqi = aFrame.GetLqi(); in SetFrom()
97 if (aFrame.GetTimeIe() != nullptr) in SetFrom()
[all …]
Dindirect_sender.cpp327 Error IndirectSender::PrepareFrameForChild(Mac::TxFrame &aFrame, FrameContext &aContext, Child &aCh… in PrepareFrameForChild() argument
336 PrepareEmptyFrame(aFrame, aChild, /* aAckRequest */ true); in PrepareFrameForChild()
344 aContext.mMessageNextOffset = PrepareDataFrame(aFrame, aChild, *message); in PrepareFrameForChild()
348 PrepareEmptyFrame(aFrame, aChild, /* aAckRequest */ true); in PrepareFrameForChild()
360 uint16_t IndirectSender::PrepareDataFrame(Mac::TxFrame &aFrame, Child &aChild, Message &aMessage) in PrepareDataFrame() argument
387 nextOffset = Get<MeshForwarder>().PrepareDataFrameWithNoMeshHeader(aFrame, aMessage, macAddrs); in PrepareDataFrame()
398 aFrame.SetFramePending(true); in PrepareDataFrame()
404 void IndirectSender::PrepareEmptyFrame(Mac::TxFrame &aFrame, Child &aChild, bool aAckRequest) in PrepareEmptyFrame() argument
408 Get<MeshForwarder>().PrepareEmptyFrame(aFrame, macDest, aAckRequest); in PrepareEmptyFrame()
411 void IndirectSender::HandleSentFrameToChild(const Mac::TxFrame &aFrame, in HandleSentFrameToChild() argument
[all …]
Dmesh_forwarder.hpp159 void SetFrom(const Mac::RxFrame &aFrame);
538 void PrepareMacHeaders(Mac::TxFrame &aFrame,
545 uint16_t PrepareDataFrame(Mac::TxFrame &aFrame,
552 …uint16_t PrepareDataFrameWithNoMeshHeader(Mac::TxFrame &aFrame, Message &aMessage, const Mac::Addr…
553 … void PrepareEmptyFrame(Mac::TxFrame &aFrame, const Mac::Address &aMacDest, bool aAckRequest);
563 void SendMesh(Message &aMessage, Mac::TxFrame &aFrame);
578 void HandleReceivedFrame(Mac::RxFrame &aFrame);
580 Neighbor *UpdateNeighborOnSentFrame(Mac::TxFrame &aFrame,
585 void HandleSentFrame(Mac::TxFrame &aFrame, Error aError);
602 void AppendHeaderIe(const Message *aMessage, Mac::TxFrame &aFrame);
[all …]
Dcsl_tx_scheduler.hpp191 Error PrepareFrameForChild(Mac::TxFrame &aFrame, FrameContext &aContext, Child &aChild);
205 void HandleSentFrameToChild(const Mac::TxFrame &aFrame,
251 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError);
253 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild);
/openthread-latest/src/lib/spinel/
Dmulti_frame_buffer.hpp368 otError GetNextSavedFrame(uint8_t *&aFrame, uint16_t &aLength) in GetNextSavedFrame() argument
372 assert(aFrame == nullptr || (mBuffer <= aFrame && aFrame < GetArrayEnd(mBuffer))); in GetNextSavedFrame()
374 aFrame = (aFrame == nullptr) ? mBuffer : aFrame + aLength; in GetNextSavedFrame()
376 if (HasSavedFrame() && (aFrame != mWriteFrameStart)) in GetNextSavedFrame()
378 … uint16_t totalLength = Lib::Utils::LittleEndian::ReadUint16(aFrame + kHeaderTotalLengthOffset); in GetNextSavedFrame()
379 … uint16_t skipLength = Lib::Utils::LittleEndian::ReadUint16(aFrame + kHeaderSkipLengthOffset); in GetNextSavedFrame()
382 aFrame += kHeaderSize + skipLength; in GetNextSavedFrame()
387 aFrame = nullptr; in GetNextSavedFrame()
Dspinel_interface.hpp100 virtual otError SendFrame(const uint8_t *aFrame, uint16_t aLength) = 0;
178 bool IsSpinelResetCommand(const uint8_t *aFrame, uint16_t aLength) in IsSpinelResetCommand() argument
187 if (!((aFrame[0] & SPINEL_HEADER_IID_MASK) == SPINEL_HEADER_IID_0)) in IsSpinelResetCommand()
194 if (!((aFrame[0] & ~SPINEL_HEADER_IID_MASK) == SPINEL_HEADER_FLAG)) in IsSpinelResetCommand()
200 if (!(aFrame[1] == SPINEL_CMD_RESET)) in IsSpinelResetCommand()
Dradio_spinel.hpp64 void (*mReceiveDone)(otInstance *aInstance, otRadioFrame *aFrame, Error aError);
79 …void (*mTransmitDone)(otInstance *aInstance, otRadioFrame *aFrame, otRadioFrame *aAckFrame, Error …
105 void (*mTxStarted)(otInstance *aInstance, otRadioFrame *aFrame);
129 void (*mDiagReceiveDone)(otInstance *aInstance, otRadioFrame *aFrame, Error aError);
143 void (*mDiagTransmitDone)(otInstance *aInstance, otRadioFrame *aFrame, Error aError);
590 otError Transmit(otRadioFrame &aFrame);
1184 …otError ParseRadioFrame(otRadioFrame &aFrame, const uint8_t *aBuffer, uint16_t aLength, spinel_ssi…
1202 void HandleNotification(const uint8_t *aFrame, uint16_t aLength, bool &aShouldSaveFrame);
1203 void HandleNotification(const uint8_t *aFrame, uint16_t aLength);
1212 void TransmitDone(otRadioFrame *aFrame, otRadioFrame *aAckFrame, otError aError);
[all …]
/openthread-latest/examples/platforms/simulation/
Dradio.c95 static void radioTransmit(struct RadioMessage *aMessage, const struct otRadioFrame *aFrame);
298 static bool hasFramePending(const otRadioFrame *aFrame) in hasFramePending() argument
304 otEXPECT(otMacFrameGetSrcAddr(aFrame, &src) == OT_ERROR_NONE); in hasFramePending()
514 otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame) in otPlatRadioTransmit() argument
517 OT_UNUSED_VARIABLE(aFrame); in otPlatRadioTransmit()
520 assert(aFrame != NULL); in otPlatRadioTransmit()
528 sCurrentChannel = aFrame->mChannel; in otPlatRadioTransmit()
662 static otError radioProcessTransmitSecurity(otRadioFrame *aFrame) in radioProcessTransmitSecurity() argument
669 otEXPECT(otMacFrameIsSecurityEnabled(aFrame) && otMacFrameIsKeyIdMode1(aFrame) && in radioProcessTransmitSecurity()
670 !aFrame->mInfo.mTxInfo.mIsSecurityProcessed); in radioProcessTransmitSecurity()
[all …]

123