commit | 4a9b1e019b19eb4fa669100c4af332dbee7aacf5 | [log] [tgz] |
---|---|---|
author | Faraaz Sareshwala <fsareshwala@google.com> | Thu Apr 11 21:16:42 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 11 21:16:42 2024 +0000 |
tree | 168dc969784b8344078d6f8d089d285c87e996fa | |
parent | d8c170bbb03c5872ae3cdfd0da2372c828222275 [diff] |
pw_bluetooth: Store length max in virtual field The LE Set Extended Advertising Data Command and LE Set Extended Advertising Data Command have data length fields with a maximum value. We had placed this maximum value restriction in Emboss via a `[requires]` block. However, I'd like to be able to access the maximum value of the restriction programmatically without having to redefine it. This change places the maximum value literal in a virtual field so that it is accessible programmatically. Due to some Emboss limitations, we also have to rework how we apply the `[requires]` block. Test: hardlink pigweed file into Fuchsia's third_party repository, build Change-Id: I72fd5d9b8ebbfc292d70e8ddbf7c24c63c08a066 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/201794 Commit-Queue: Faraaz Sareshwala <fsareshwala@google.com> Reviewed-by: Ben Lawson <benlawson@google.com> Reviewed-by: Lulu Wang <luluwang@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/.