Searched refs:aByte (Results 1 – 10 of 10) sorted by relevance
51 static uint16_t UpdateFcs(uint16_t aFcs, uint8_t aByte);73 uint16_t UpdateFcs(uint16_t aFcs, uint8_t aByte) in UpdateFcs() argument95 return (aFcs >> 8) ^ sFcsTable[(aFcs ^ aByte) & 0xff]; in UpdateFcs()98 static bool HdlcByteNeedsEscape(uint8_t aByte) in HdlcByteNeedsEscape() argument102 switch (aByte) in HdlcByteNeedsEscape()133 otError Encoder::Encode(uint8_t aByte) in Encode() argument137 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()
90 otError Encode(uint8_t aByte);
44 void Crc16::Update(uint8_t aByte) in Update() argument48 mCrc = mCrc ^ static_cast<uint16_t>(aByte << 8); in Update()
76 void Update(uint8_t aByte);
183 otError InFrameFeedByte(uint8_t aByte);608 otError InFrameAppend(uint8_t aByte);
87 otError WriteByte(uint8_t aByte) in WriteByte() argument89 … return CanWrite(sizeof(uint8_t)) ? (*mWritePointer++ = aByte, mRemainingLength--, OT_ERROR_NONE) in WriteByte()
224 otError Buffer::InFrameAppend(uint8_t aByte) in InFrameAppend() argument236 *mWriteSegmentTail = aByte; in InFrameAppend()360 otError Buffer::InFrameFeedByte(uint8_t aByte) in InFrameFeedByte() argument369 error = InFrameAppend(aByte); in InFrameFeedByte()
119 void Fill(uint8_t aByte) { memset(this, aByte, sizeof(*this)); } in Fill() argument
745 static uint16_t hdlc_crc16(uint16_t aFcs, uint8_t aByte) in hdlc_crc16() argument771 return (aFcs >> 8) ^ sFcsTable[(aFcs ^ aByte) & 0xff]; in hdlc_crc16()777 aFcs ^= aByte; in hdlc_crc16()
331 static uint16_t crc16_citt(uint16_t aFcs, uint8_t aByte) in crc16_citt() argument356 return (aFcs >> 8) ^ sFcsTable[(aFcs ^ aByte) & 0xff]; in crc16_citt()