Home
last modified time | relevance | path

Searched refs:aNcpBuffer (Results 1 – 5 of 5) sorted by relevance

/external/openthread/tests/unit/
Dtest_spinel_buffer.cpp132 Spinel::Buffer * aNcpBuffer) in FrameAddedCallback() argument
136 VerifyOrQuit(aNcpBuffer != nullptr, "Null Spinel::Buffer in the callback"); in FrameAddedCallback()
139 …VerifyOrQuit(aTag == aNcpBuffer->InFrameGetLastTag(), "InFrameGetLastTag() does not match the tag … in FrameAddedCallback()
149 Spinel::Buffer * aNcpBuffer) in FrameRemovedCallback() argument
153 VerifyOrQuit(aNcpBuffer != nullptr, "Null Spinel::Buffer in the callback"); in FrameRemovedCallback()
163 void ReadAndVerifyContent(Spinel::Buffer &aNcpBuffer, const uint8_t *aContentBuffer, uint16_t aBuff… in ReadAndVerifyContent() argument
167 …VerifyOrQuit(aNcpBuffer.OutFrameHasEnded() == false, "Out frame ended before end of expected conte… in ReadAndVerifyContent()
169 VerifyOrQuit(aNcpBuffer.OutFrameReadByte() == *aContentBuffer++, in ReadAndVerifyContent()
174 void WriteTestFrame1(Spinel::Buffer &aNcpBuffer, Spinel::Buffer::Priority aPriority) in WriteTestFrame1() argument
185 aNcpBuffer.InFrameBegin(aPriority); in WriteTestFrame1()
[all …]
Dtest_spinel_encoder.cpp43 otError ReadFrame(Spinel::Buffer &aNcpBuffer, uint8_t *aFrame, uint16_t &aFrameLen) in ReadFrame() argument
47 SuccessOrExit(error = aNcpBuffer.OutFrameBegin()); in ReadFrame()
48 aFrameLen = aNcpBuffer.OutFrameGetLength(); in ReadFrame()
49 VerifyOrExit(aNcpBuffer.OutFrameRead(aFrameLen, aFrame) == aFrameLen, error = OT_ERROR_FAILED); in ReadFrame()
50 SuccessOrExit(error = aNcpBuffer.OutFrameRemove()); in ReadFrame()
/external/openthread/src/lib/spinel/
Dspinel_encoder.hpp61 explicit Encoder(Spinel::Buffer &aNcpBuffer) in Encoder() argument
62 : mNcpBuffer(aNcpBuffer) in Encoder()
/external/openthread/src/ncp/
Dncp_base.hpp268 Spinel::Buffer * aNcpBuffer);
Dncp_base.cpp408 Spinel::Buffer * aNcpBuffer) in HandleFrameRemovedFromNcpBuffer() argument
410 OT_UNUSED_VARIABLE(aNcpBuffer); in HandleFrameRemovedFromNcpBuffer()