diff options
author | Josh Conner <joshconner@google.com> | 2023-12-14 20:35:31 +0000 |
---|---|---|
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-12-14 20:35:31 +0000 |
commit | 752d18a519176d462bc61428bb4d2e1b617b3d6f (patch) | |
tree | b625d2356cc8b65348d4b602f1cde581cf56cb81 /pw_bluetooth | |
parent | f47652dfb78c0ad8e38efe1f419f39bd52b695bd (diff) | |
download | pigweed-752d18a519176d462bc61428bb4d2e1b617b3d6f.tar.gz |
pw_bluetooth: Add LE Read Buffer Size [v2] command complete event
Add emboss definition for the command complete event (including
return parameters) from an LE Read Buffer Size [v2] command.
Bug: b/311639040
Test: pw presubmit --step gn_chre_googletest_nanopb_sapphire_build
Change-Id: I5e3c6a0e7f191b425cda66a5006a63424aa564b5
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/185070
Commit-Queue: Josh Conner <joshconner@google.com>
Reviewed-by: Ali Saeed <saeedali@google.com>
Diffstat (limited to 'pw_bluetooth')
-rw-r--r-- | pw_bluetooth/public/pw_bluetooth/hci_events.emb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pw_bluetooth/public/pw_bluetooth/hci_events.emb b/pw_bluetooth/public/pw_bluetooth/hci_events.emb index 349cfda79..e6af9529a 100644 --- a/pw_bluetooth/public/pw_bluetooth/hci_events.emb +++ b/pw_bluetooth/public/pw_bluetooth/hci_events.emb @@ -998,6 +998,33 @@ struct ReadBdAddrCommandCompleteEvent: $next [+hci.BdAddr.$size_in_bytes] hci.BdAddr bd_addr +struct LEReadBufferSizeV2CommandCompleteEvent: + -- 7.7.14 Command Complete event (7.8.2 LE Read Buffer Size [v2] command) + + let hdr_size = hci.CommandCompleteEvent.$size_in_bytes + + 0 [+hdr_size] hci.CommandCompleteEvent command_complete + + $next [+1] hci.StatusCode status + + $next [+2] UInt le_acl_data_packet_length + -- Maximum length (in octets) of the data portion of each HCI ACL data packet, + -- or 0 if no dedicated LE buffer exists. + [requires: 0x001b <= this <= 0xFFFF || this == 0x0000] + + $next [+1] UInt total_num_le_acl_data_packets + -- The total number of HCI ACL data packets that can be stored in the data + -- buffers of the Controller, or 0 if no dedicated LE buffer exists. + + $next [+2] UInt iso_data_packet_length + -- The maximum length (in octets) of the data portion of each HCI ISO data + -- packet, or 0 if no dedicated ISO buffer exists. + + $next [+1] UInt total_num_iso_data_packets + -- The total number of HCI ISO data packets that can be stored in the ISO + -- buffers of the controller, or 0 if no dedicated ISO buffer exists. + + struct LEReadLocalSupportedFeaturesCommandCompleteEvent: -- 7.7.14 Command Complete event (7.8.3 LE Read Local Supported Features command) let hdr_size = hci.CommandCompleteEvent.$size_in_bytes |