Home
last modified time | relevance | path

Searched refs:aByte (Results 1 – 10 of 10) sorted by relevance

/openthread-3.6.0/src/lib/hdlc/
Dhdlc.cpp51 static uint16_t UpdateFcs(uint16_t aFcs, uint8_t aByte);
73 uint16_t UpdateFcs(uint16_t aFcs, uint8_t aByte) in UpdateFcs() argument
95 return (aFcs >> 8) ^ sFcsTable[(aFcs ^ aByte) & 0xff]; in UpdateFcs()
98 static bool HdlcByteNeedsEscape(uint8_t aByte) in HdlcByteNeedsEscape() argument
102 switch (aByte) in HdlcByteNeedsEscape()
133 otError Encoder::Encode(uint8_t aByte) in Encode() argument
137 if (HdlcByteNeedsEscape(aByte)) in Encode()
142 IgnoreError(mWritePointer.WriteByte(aByte ^ 0x20)); in Encode()
146 SuccessOrExit(error = mWritePointer.WriteByte(aByte)); in Encode()
149 mFcs = UpdateFcs(mFcs, aByte); in Encode()
Dhdlc.hpp90 otError Encode(uint8_t aByte);
/openthread-3.6.0/src/core/common/
Dcrc16.cpp44 void Crc16::Update(uint8_t aByte) in Update() argument
48 mCrc = mCrc ^ static_cast<uint16_t>(aByte << 8); in Update()
Dcrc16.hpp76 void Update(uint8_t aByte);
/openthread-3.6.0/src/lib/spinel/
Dspinel_buffer.hpp183 otError InFrameFeedByte(uint8_t aByte);
608 otError InFrameAppend(uint8_t aByte);
Dmulti_frame_buffer.hpp87 otError WriteByte(uint8_t aByte) in WriteByte() argument
89 … return CanWrite(sizeof(uint8_t)) ? (*mWritePointer++ = aByte, mRemainingLength--, OT_ERROR_NONE) in WriteByte()
Dspinel_buffer.cpp224 otError Buffer::InFrameAppend(uint8_t aByte) in InFrameAppend() argument
236 *mWriteSegmentTail = aByte; in InFrameAppend()
360 otError Buffer::InFrameFeedByte(uint8_t aByte) in InFrameFeedByte() argument
369 error = InFrameAppend(aByte); in InFrameFeedByte()
/openthread-3.6.0/src/core/mac/
Dmac_types.hpp119 void Fill(uint8_t aByte) { memset(this, aByte, sizeof(*this)); } in Fill() argument
/openthread-3.6.0/tools/spi-hdlc-adapter/
Dspi-hdlc-adapter.c745 static uint16_t hdlc_crc16(uint16_t aFcs, uint8_t aByte) in hdlc_crc16() argument
771 return (aFcs >> 8) ^ sFcsTable[(aFcs ^ aByte) & 0xff]; in hdlc_crc16()
777 aFcs ^= aByte; in hdlc_crc16()
/openthread-3.6.0/examples/platforms/simulation/
Dradio.c331 static uint16_t crc16_citt(uint16_t aFcs, uint8_t aByte) in crc16_citt() argument
356 return (aFcs >> 8) ^ sFcsTable[(aFcs ^ aByte) & 0xff]; in crc16_citt()