This extends the HDLC encoder and decoder in both C++ and Python to use
HDLC extended addressing, where the address field is a one-terminated
LSB varint.
Classes using HDLC, such as the HDLC ChannelOutput and WirePacketParser,
are updated accordingly.
Change-Id: I6affc4443079628567d33939d809218f7b7bdf41
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/38020
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
This adds a PacketParser for wire-encoded HDLC frames to the HDLC
module. To support this, the decoder is updated to calculate the FCS in
a single pass as it processes data.
Change-Id: Ided11f4442d3b804a3d5a6b66b588bb50a5d0176
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/30180
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Alexei Frolov <frolv@google.com>