pw_i2c: Add feature support to Initiator class We allow the user to specify the supported features of their initiator upon construction. All i2c messages are validated against this set of features before transmission. If new features are added in the future, the initiator-author will need to add them to the constructor to allow that new feature's use. The supported features are read, ten bit addressing, and write continuations. Bug: 385199775 Change-Id: I2c095e8162e6211acefdc007165b069ee7d8e964 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/259972 Commit-Queue: Ryan Albarelli <albarelli@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Anton Markov <amarkov@google.com> Docs-Not-Needed: Ryan Albarelli <albarelli@google.com> Reviewed-by: Austin Foxley <afoxley@google.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/.