commit | 0a3c752936f95f2b5becf2e1a34534ae734edaa0 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Thu Aug 25 22:33:03 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 25 22:33:03 2022 +0000 |
tree | df24703c1cc4125511c24972911291b19eb741d6 | |
parent | a8edf4c784f7222ad53f0276b14a9ed1e5ae453a [diff] |
pw_hdlc: Decoder for HDLC frames and non-HDLC data - The FrameAndNonFrameDecoder class yields valid HDLC frames from a stream of HDLC or raw data. It tracks non-HDLC data and calls a callback when it is clear the data is not HDLC. - Update the existing test cases to add an optional third raw data field for testing raw data parsing. - Add tests to cover the MTU, timeout, and shared flag byte features. - Update the documentation. Fixes: 242936021 Change-Id: I64d3f2ef6ae23e9852f216fc51e6183fd112952c Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108131 Reviewed-by: Keir Mierle <keir@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.