/external/openthread/examples/platforms/utils/ |
D | mac_frame.cpp | 36 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::kFcfFrameAck; in otMacFrameIsAck() 74 bool otMacFrameIsData(const otRadioFrame *aFrame) in otMacFrameIsData() argument 76 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kFcfFrameData; in otMacFrameIsData() 79 bool otMacFrameIsCommand(const otRadioFrame *aFrame) in otMacFrameIsCommand() argument 81 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kFcfFrameMacCmd; in otMacFrameIsCommand() 84 bool otMacFrameIsDataRequest(const otRadioFrame *aFrame) in otMacFrameIsDataRequest() argument 86 return static_cast<const Mac::Frame *>(aFrame)->IsDataRequestCommand(); in otMacFrameIsDataRequest() [all …]
|
D | mac_frame.h | 80 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); 176 uint8_t otMacFrameGetSequence(const otRadioFrame *aFrame); 186 void otMacFrameProcessTransmitAesCcm(otRadioFrame *aFrame, const otExtAddress *aExtAddress); [all …]
|
/external/openthread/src/ncp/ |
D | ncp_base_radio.cpp | 62 otError NcpBase::PackRadioFrame(otRadioFrame *aFrame, otError aError) in PackRadioFrame() argument 67 if (aFrame != nullptr && aError == OT_ERROR_NONE) in PackRadioFrame() 70 SuccessOrExit(mEncoder.WriteDataWithLen(aFrame->mPsdu, aFrame->mLength)); in PackRadioFrame() 79 SuccessOrExit(mEncoder.WriteInt8(aFrame ? aFrame->mInfo.mRxInfo.mRssi : 0)); // RSSI in PackRadioFrame() 82 if (aFrame != nullptr) in PackRadioFrame() 84 if (aFrame->mInfo.mRxInfo.mAckedWithFramePending) in PackRadioFrame() 89 if (aFrame->mInfo.mRxInfo.mAckedWithSecEnhAck) in PackRadioFrame() 98 …SuccessOrExit(mEncoder.WriteUint8(aFrame ? aFrame->mChannel : 0)); // 802.15.4 channel (Receive ch… in PackRadioFrame() 99 SuccessOrExit(mEncoder.WriteUint8(aFrame ? aFrame->mInfo.mRxInfo.mLqi in PackRadioFrame() 102 …SuccessOrExit(mEncoder.WriteUint64(aFrame ? aFrame->mInfo.mRxInfo.mTimestamp : 0)); // The timesta… in PackRadioFrame() [all …]
|
/external/openthread/src/core/mac/ |
D | mac.cpp | 833 void Mac::ProcessTransmitSecurity(TxFrame &aFrame) in ProcessTransmitSecurity() argument 839 VerifyOrExit(aFrame.GetSecurityEnabled()); in ProcessTransmitSecurity() 841 IgnoreError(aFrame.GetKeyIdMode(keyIdMode)); in ProcessTransmitSecurity() 846 aFrame.SetAesKey(keyManager.GetKek()); in ProcessTransmitSecurity() 849 if (!aFrame.IsHeaderUpdated()) in ProcessTransmitSecurity() 851 aFrame.SetFrameCounter(keyManager.GetKekFrameCounter()); in ProcessTransmitSecurity() 865 VerifyOrExit(aFrame.GetRadioType() != kRadioTypeIeee802154); in ProcessTransmitSecurity() 870 aFrame.SetAesKey(*mLinks.GetCurrentMacKey(aFrame)); in ProcessTransmitSecurity() 879 if (!aFrame.IsHeaderUpdated()) in ProcessTransmitSecurity() 881 mLinks.SetMacFrameCounter(aFrame); in ProcessTransmitSecurity() [all …]
|
D | data_poll_handler.cpp | 52 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() 128 void DataPollHandler::HandleDataPoll(Mac::RxFrame &aFrame) in HandleDataPoll() argument 134 VerifyOrExit(aFrame.GetSecurityEnabled()); in HandleDataPoll() 137 SuccessOrExit(aFrame.GetSrcAddr(macSource)); in HandleDataPoll() 144 child->SetLastPollRadioType(aFrame.GetRadioType()); in HandleDataPoll() 150 aFrame.GetRssi(), aFrame.IsAckedWithFramePending()); in HandleDataPoll() 152 if (!aFrame.IsAckedWithFramePending()) in HandleDataPoll() [all …]
|
D | sub_mac_callbacks.cpp | 54 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 79 Get<Mac>().RecordFrameTransmitStatus(aFrame, aAckFrame, aError, aRetryCount, aWillRetx); in RecordFrameTransmitStatus() 82 void SubMac::Callbacks::TransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, Error aError) in TransmitDone() argument 87 Get<LinkRaw>().InvokeTransmitDone(aFrame, aAckFrame, aError); in TransmitDone() 92 Get<Mac>().HandleTransmitDone(aFrame, aAckFrame, aError); in TransmitDone() 117 void SubMac::Callbacks::ReceiveDone(RxFrame *aFrame, Error aError) in ReceiveDone() argument 119 Get<LinkRaw>().InvokeReceiveDone(aFrame, aError); in ReceiveDone() [all …]
|
D | mac_links.cpp | 141 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 …]
|
D | sub_mac.cpp | 284 void SubMac::HandleReceiveDone(RxFrame *aFrame, Error aError) in HandleReceiveDone() argument 286 if (mPcapCallback && (aFrame != nullptr) && (aError == kErrorNone)) in HandleReceiveDone() 288 mPcapCallback(aFrame, false, mPcapCallbackContext); in HandleReceiveDone() 291 …if (!ShouldHandleTransmitSecurity() && aFrame != nullptr && aFrame->mInfo.mRxInfo.mAckedWithSecEnh… in HandleReceiveDone() 293 SignalFrameCounterUsed(aFrame->mInfo.mRxInfo.mAckFrameCounter); in HandleReceiveDone() 297 if (aFrame != nullptr && aError == kErrorNone) in HandleReceiveDone() 300 if ((mCslPeriod > 0) && aFrame->mInfo.mRxInfo.mAckedWithSecEnhAck) in HandleReceiveDone() 302 mCslLastSync = TimeMicro(static_cast<uint32_t>(aFrame->mInfo.mRxInfo.mTimestamp)); in HandleReceiveDone() 308 …mIsCslSampling ? "CslSample" : "CslSleep", static_cast<uint32_t>(aFrame->mInfo.mRxInfo.mTimestamp)… in HandleReceiveDone() 310 … static_cast<uint32_t>(aFrame->mInfo.mRxInfo.mTimestamp) - mCslSampleTime.GetValue()); in HandleReceiveDone() [all …]
|
D | link_raw.cpp | 182 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, in RecordFrameTransmitStatus() argument 288 aFrame.GetMaxFrameRetries(), aFrame.ToInfoString().AsCString()); in RecordFrameTransmitStatus()
|
D | mac.hpp | 386 void HandleReceivedFrame(RxFrame *aFrame, Error aError); 414 void RecordFrameTransmitStatus(const TxFrame &aFrame, 431 void HandleTransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, Error aError); 751 Error ProcessReceiveSecurity(RxFrame &aFrame, const Address &aSrcAddr, Neighbor *aNeighbor); 752 void ProcessTransmitSecurity(TxFrame &aFrame); 770 bool HandleMacCommand(RxFrame &aFrame); 784 void LogFrameRxFailure(const RxFrame *aFrame, Error aError) const; 785 …void LogFrameTxFailure(const TxFrame &aFrame, Error aError, uint8_t aRetryCount, bool aWillRetx) c… 789 uint8_t GetTimeIeOffset(const Frame &aFrame); 793 void ProcessCsl(const RxFrame &aFrame, const Address &aSrcAddr); [all …]
|
D | data_poll_sender.cpp | 206 void DataPollSender::HandlePollSent(Mac::TxFrame &aFrame, Error aError) in HandlePollSent() argument 213 if (!aFrame.IsEmpty()) in HandlePollSent() 215 IgnoreError(aFrame.GetDstAddr(macDest)); in HandlePollSent() 216 … Get<MeshForwarder>().UpdateNeighborOnSentFrame(aFrame, aError, macDest, /* aIsDataPoll */ true); in HandlePollSent() 261 (aFrame.GetHeaderIe(Mac::CslIe::kHeaderIeId) != nullptr) ? kMaxCslPollRetxAttempts in HandlePollSent() 270 …((aFrame.GetHeaderIe(Mac::CslIe::kHeaderIeId) != nullptr) ? kMaxCslPollRetxAttempts : kMaxPollRetx… in HandlePollSent() 325 void DataPollSender::ProcessRxFrame(const Mac::RxFrame &aFrame) in ProcessRxFrame() argument 331 if (aFrame.GetFramePending()) in ProcessRxFrame() 341 void DataPollSender::ProcessTxDone(const Mac::TxFrame &aFrame, const Mac::RxFrame *aAckFrame, Error… in ProcessTxDone() argument 347 VerifyOrExit(aFrame.GetSecurityEnabled()); in ProcessTxDone() [all …]
|
D | data_poll_handler.hpp | 177 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);
|
D | sub_mac.hpp | 137 void ReceiveDone(RxFrame *aFrame, Error aError); 169 void RecordFrameTransmitStatus(const TxFrame &aFrame, 187 void TransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, Error aError); 618 void HandleReceiveDone(RxFrame *aFrame, Error aError); 619 void HandleTransmitStarted(TxFrame &aFrame); 620 void HandleTransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, Error aError); 621 void SignalFrameCounterUsedOnTxDone(const TxFrame &aFrame);
|
D | mac_frame.cpp | 1204 void TxFrame::GenerateImmAck(const RxFrame &aFrame, bool aIsFramePending) in GenerateImmAck() argument 1206 uint16_t fcf = kFcfFrameAck | aFrame.GetVersion(); in GenerateImmAck() 1208 mChannel = aFrame.mChannel; in GenerateImmAck() 1217 mPsdu[kSequenceIndex] = aFrame.GetSequence(); in GenerateImmAck() 1223 Error TxFrame::GenerateEnhAck(const RxFrame &aFrame, bool aIsFramePending, const uint8_t *aIeData, … in GenerateEnhAck() argument 1234 mChannel = aFrame.mChannel; in GenerateEnhAck() 1243 if (aFrame.GetSecurityEnabled()) in GenerateEnhAck() 1248 if (aFrame.IsPanIdCompressed()) in GenerateEnhAck() 1254 if ((aFrame.GetFrameControlField() & kFcfSrcAddrMask) == kFcfSrcAddrExt) in GenerateEnhAck() 1258 else if ((aFrame.GetFrameControlField() & kFcfSrcAddrMask) == kFcfSrcAddrShort) in GenerateEnhAck() [all …]
|
/external/openthread/src/core/radio/ |
D | radio_callbacks.cpp | 41 void Radio::Callbacks::HandleReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleReceiveDone() argument 43 Get<Mac::SubMac>().HandleReceiveDone(aFrame, aError); in HandleReceiveDone() 46 void Radio::Callbacks::HandleTransmitStarted(Mac::TxFrame &aFrame) in HandleTransmitStarted() argument 48 Get<Mac::SubMac>().HandleTransmitStarted(aFrame); in HandleTransmitStarted() 51 void Radio::Callbacks::HandleTransmitDone(Mac::TxFrame &aFrame, Mac::RxFrame *aAckFrame, Error aErr… in HandleTransmitDone() argument 53 Get<Mac::SubMac>().HandleTransmitDone(aFrame, aAckFrame, aError); in HandleTransmitDone() 62 void Radio::Callbacks::HandleDiagsReceiveDone(Mac::RxFrame *aFrame, Error aError) in HandleDiagsReceiveDone() argument 66 HandleReceiveDone(aFrame, aError); in HandleDiagsReceiveDone() 68 Get<FactoryDiags::Diags>().ReceiveDone(aFrame, aError); in HandleDiagsReceiveDone() 72 void Radio::Callbacks::HandleDiagsTransmitDone(Mac::TxFrame &aFrame, Error aError) in HandleDiagsTransmitDone() argument [all …]
|
D | radio_platform.cpp | 48 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() 120 extern "C" void otPlatDiagRadioReceiveDone(otInstance *aInstance, otRadioFrame *aFrame, otError aEr… in otPlatDiagRadioReceiveDone() argument 122 Mac::RxFrame *rxFrame = static_cast<Mac::RxFrame *>(aFrame); in otPlatDiagRadioReceiveDone() 134 extern "C" void otPlatDiagRadioTransmitDone(otInstance *aInstance, otRadioFrame *aFrame, otError aE… in otPlatDiagRadioTransmitDone() argument 136 Mac::TxFrame &txFrame = *static_cast<Mac::TxFrame *>(aFrame); in otPlatDiagRadioTransmitDone()
|
/external/openthread/src/core/thread/ |
D | csl_tx_scheduler.cpp | 47 inline Error CslTxScheduler::Callbacks::PrepareFrameForChild(Mac::TxFrame &aFrame, in PrepareFrameForChild() argument 51 return Get<IndirectSender>().PrepareFrameForChild(aFrame, aContext, aChild); in PrepareFrameForChild() 54 inline void CslTxScheduler::Callbacks::HandleSentFrameToChild(const Mac::TxFrame &aFrame, in HandleSentFrameToChild() argument 59 Get<IndirectSender>().HandleSentFrameToChild(aFrame, aContext, aError, aChild); in HandleSentFrameToChild() 229 void CslTxScheduler::HandleSentFrame(const Mac::TxFrame &aFrame, Error aError) in HandleSentFrame() argument 239 HandleSentFrame(aFrame, aError, *child); in HandleSentFrame() 245 void CslTxScheduler::HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild) in HandleSentFrame() argument 255 OT_ASSERT(!aFrame.GetSecurityEnabled() || aFrame.IsHeaderUpdated()); in HandleSentFrame() 277 if (!aFrame.IsEmpty()) in HandleSentFrame() 279 aChild.SetIndirectDataSequenceNumber(aFrame.GetSequence()); in HandleSentFrame() [all …]
|
D | mesh_forwarder.cpp | 58 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 mChannel = aFrame.GetChannel(); in SetFrom() 79 mRss = aFrame.GetRssi(); in SetFrom() 80 mLqi = aFrame.GetLqi(); in SetFrom() 81 mLinkSecurity = aFrame.GetSecurityEnabled(); in SetFrom() 83 if (aFrame.GetTimeIe() != nullptr) in SetFrom() 85 mNetworkTimeOffset = aFrame.ComputeNetworkTimeOffset(); in SetFrom() [all …]
|
D | indirect_sender.cpp | 327 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, kSupervisionMsgAckRequest); in PrepareFrameForChild() 361 uint16_t IndirectSender::PrepareDataFrame(Mac::TxFrame &aFrame, Child &aChild, Message &aMessage) in PrepareDataFrame() argument 388 nextOffset = Get<MeshForwarder>().PrepareDataFrame(aFrame, aMessage, macSource, macDest); in PrepareDataFrame() 399 aFrame.SetFramePending(true); in PrepareDataFrame() 405 void IndirectSender::PrepareEmptyFrame(Mac::TxFrame &aFrame, Child &aChild, bool aAckRequest) in PrepareEmptyFrame() argument 409 Get<MeshForwarder>().PrepareEmptyFrame(aFrame, macDest, aAckRequest); in PrepareEmptyFrame() 412 void IndirectSender::HandleSentFrameToChild(const Mac::TxFrame &aFrame, in HandleSentFrameToChild() argument [all …]
|
D | mesh_forwarder.hpp | 158 void SetFrom(const Mac::RxFrame &aFrame); 453 uint16_t PrepareDataFrame(Mac::TxFrame & aFrame, 461 … void PrepareEmptyFrame(Mac::TxFrame &aFrame, const Mac::Address &aMacDest, bool aAckRequest); 471 void SendMesh(Message &aMessage, Mac::TxFrame &aFrame); 488 void HandleReceivedFrame(Mac::RxFrame &aFrame); 490 Neighbor * UpdateNeighborOnSentFrame(Mac::TxFrame & aFrame, 498 void HandleSentFrame(Mac::TxFrame &aFrame, Error aError); 521 void AppendHeaderIe(const Message *aMessage, Mac::TxFrame &aFrame); 536 void LogFrame(const char *aActionText, const Mac::Frame &aFrame, Error aError);
|
D | indirect_sender.hpp | 213 Error PrepareFrameForChild(Mac::TxFrame &aFrame, FrameContext &aContext, Child &aChild); 214 …void HandleSentFrameToChild(const Mac::TxFrame &aFrame, const FrameContext &aContext, Error aErro… 220 uint16_t PrepareDataFrame(Mac::TxFrame &aFrame, Child &aChild, Message &aMessage); 221 void PrepareEmptyFrame(Mac::TxFrame &aFrame, Child &aChild, bool aAckRequest);
|
D | csl_tx_scheduler.hpp | 146 Error PrepareFrameForChild(Mac::TxFrame &aFrame, FrameContext &aContext, Child &aChild); 160 void HandleSentFrameToChild(const Mac::TxFrame &aFrame, 197 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError); 199 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild);
|
/external/openthread/src/lib/hdlc/ |
D | hdlc.hpp | 366 otError GetNextSavedFrame(uint8_t *&aFrame, uint16_t &aLength) in GetNextSavedFrame() argument 370 OT_ASSERT(aFrame == nullptr || (mBuffer <= aFrame && aFrame < GetArrayEnd(mBuffer))); in GetNextSavedFrame() 372 aFrame = (aFrame == nullptr) ? mBuffer : aFrame + aLength; in GetNextSavedFrame() 374 if (aFrame != mWriteFrameStart) in GetNextSavedFrame() 376 … uint16_t totalLength = Encoding::LittleEndian::ReadUint16(aFrame + kHeaderTotalLengthOffset); in GetNextSavedFrame() 377 … uint16_t skipLength = Encoding::LittleEndian::ReadUint16(aFrame + kHeaderSkipLengthOffset); in GetNextSavedFrame() 380 aFrame += kHeaderSize + skipLength; in GetNextSavedFrame() 385 aFrame = nullptr; in GetNextSavedFrame()
|
/external/openthread/src/android/thread_network_hal/ |
D | hal_interface.cpp | 213 otError HalInterface::SendFrame(const uint8_t *aFrame, uint16_t aLength) in SendFrame() argument 218 VerifyOrExit((aFrame != nullptr) && (aLength <= kMaxFrameSize), error = OT_ERROR_INVALID_ARGS); in SendFrame() 219 status = mThreadChip->sendSpinelFrame(std::vector<uint8_t>(aFrame, aFrame + aLength)); in SendFrame() 228 void HalInterface::ReceiveFrameCallback(const std::vector<uint8_t> &aFrame) in ReceiveFrameCallback() argument 232 VerifyOrExit(aFrame.size() > 0, error = OT_ERROR_FAILED); in ReceiveFrameCallback() 234 for (uint32_t i = 0; i < aFrame.size(); i++) in ReceiveFrameCallback() 236 if ((error = mRxFrameBuffer.WriteByte(aFrame[i])) != OT_ERROR_NONE) in ReceiveFrameCallback()
|
/external/openthread/examples/platforms/simulation/ |
D | radio.c | 99 static void radioTransmit(struct RadioMessage *aMessage, const struct otRadioFrame *aFrame); 182 static bool hasFramePending(const otRadioFrame *aFrame) in hasFramePending() argument 188 otEXPECT(otMacFrameGetSrcAddr(aFrame, &src) == OT_ERROR_NONE); in hasFramePending() 479 otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame) in otPlatRadioTransmit() argument 482 OT_UNUSED_VARIABLE(aFrame); in otPlatRadioTransmit() 485 assert(aFrame != NULL); in otPlatRadioTransmit() 493 sCurrentChannel = aFrame->mChannel; in otPlatRadioTransmit() 623 static otError radioProcessTransmitSecurity(otRadioFrame *aFrame) in radioProcessTransmitSecurity() argument 630 otEXPECT(otMacFrameIsSecurityEnabled(aFrame) && otMacFrameIsKeyIdMode1(aFrame) && in radioProcessTransmitSecurity() 631 !aFrame->mInfo.mTxInfo.mIsSecurityProcessed); in radioProcessTransmitSecurity() [all …]
|