|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
Thread spinel / HDLC-lite framing codec - implementation. More...
Go to the source code of this file.
Thread spinel / HDLC-lite framing codec - implementation.
HDLC-lite: [payload | FCS(lo,hi)] byte-stuffed and Flag-terminated. The FCS is CRC-16/X-25 (poly 0x1021 reflected = 0x8408, init 0xFFFF, reflected, final XOR 0xFFFF); the reserved bytes 0x7E / 0x7D / 0x11 / 0x13 are escaped as 0x7D, (byte XOR 0x20).
Definition in file thread.cpp.