Home
last modified time | relevance | path

Searched refs:aFcs (Results 1 – 3 of 3) sorted by relevance

/openthread-latest/src/lib/hdlc/
Dhdlc.cpp50 static uint16_t UpdateFcs(uint16_t aFcs, uint8_t aByte);
71 uint16_t UpdateFcs(uint16_t aFcs, uint8_t aByte) in UpdateFcs() argument
93 return (aFcs >> 8) ^ sFcsTable[(aFcs ^ aByte) & 0xff]; in UpdateFcs()
/openthread-latest/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()
776 aFcs = (uint16_t)((aFcs >> 8) | (aFcs << 8)); in hdlc_crc16()
777 aFcs ^= aByte; in hdlc_crc16()
778 aFcs ^= ((aFcs & 0xff) >> 4); in hdlc_crc16()
779 aFcs ^= (aFcs << 12); in hdlc_crc16()
780 aFcs ^= ((aFcs & 0xff) << 5); in hdlc_crc16()
781 return aFcs; in hdlc_crc16()
/openthread-latest/examples/platforms/simulation/
Dradio.c316 static uint16_t crc16_citt(uint16_t aFcs, uint8_t aByte) in crc16_citt() argument
341 return (aFcs >> 8) ^ sFcsTable[(aFcs ^ aByte) & 0xff]; in crc16_citt()