aboutsummaryrefslogtreecommitdiff
path: root/pw_bluetooth
diff options
context:
space:
mode:
authorBen <benlawson@google.com>2023-09-11 19:15:27 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-09-11 19:15:27 +0000
commit6815514b563270b4430b8f101f10942893aa0ac6 (patch)
tree1169a4d6350e01b3fdb18d9bd06da3ed03435571 /pw_bluetooth
parent328d99d5847cb386cf12152e87559d18ce76bbd1 (diff)
downloadpigweed-6815514b563270b4430b8f101f10942893aa0ac6.tar.gz
pw_bluetooth: Add ReadBufferSizeCommandComplete Emboss definition
Test: pw presubmit --step gn_emboss_nanopb_build Change-Id: I644974d3869df5183b8c202470f8f0e0fdd398d1 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/169869 Pigweed-Auto-Submit: Ben Lawson <benlawson@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Reviewed-by: Ali Saeed <saeedali@google.com>
Diffstat (limited to 'pw_bluetooth')
-rw-r--r--pw_bluetooth/public/pw_bluetooth/hci_events.emb30
1 files changed, 30 insertions, 0 deletions
diff --git a/pw_bluetooth/public/pw_bluetooth/hci_events.emb b/pw_bluetooth/public/pw_bluetooth/hci_events.emb
index 92adbad32..8383bbce4 100644
--- a/pw_bluetooth/public/pw_bluetooth/hci_events.emb
+++ b/pw_bluetooth/public/pw_bluetooth/hci_events.emb
@@ -832,3 +832,33 @@ struct ReadBdAddrCommandCompleteEvent:
0 [+hdr_size] hci.CommandCompleteEvent command_complete
$next [+1] hci.StatusCode status
$next [+hci.BdAddr.$size_in_bytes] hci.BdAddr bd_addr
+
+
+struct ReadBufferSizeCommandCompleteEvent:
+ -- Read Buffer Size Command (v1.1)
+
+ let hdr_size = hci.CommandCompleteEvent.$size_in_bytes
+
+ 0 [+hdr_size] hci.CommandCompleteEvent command_complete
+
+ $next [+1] hci.StatusCode status
+
+ $next [+2] UInt acl_data_packet_length
+ -- Maximum length (in octets) of the data portion of each HCI ACL Data
+ -- packet that the Controller is able to accept.
+ [requires: 0x0001 <= this <= 0xFFFF]
+
+ $next [+1] UInt synchronous_data_packet_length
+ -- Maximum length (in octets) of the data portion of each HCI Synchronous
+ -- Data packet that the Controller is able to accept.
+ [requires: 0x01 <= this <= 0xFF]
+
+ $next [+2] UInt total_num_acl_data_packets
+ -- Total number of HCI ACL Data packets that can be stored in the data
+ -- buffers of the Controller.
+ [requires: 0x0001 <= this <= 0xFFFF]
+
+ $next [+2] UInt total_num_synchronous_data_packets
+ -- Total number of HCI Synchronous Data packets that can be stored in the
+ -- data buffers of the Controller. A value of 0 indicates that the
+ -- Controller does not support SCO or eSCO over HCI.