aboutsummaryrefslogtreecommitdiff
path: root/pw_bluetooth
diff options
context:
space:
mode:
authorJosh Conner <joshconner@google.com>2023-12-04 20:57:23 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-12-04 20:57:23 +0000
commitcba8918fe60cd67d2f284f8c5c565eec6ad7b52e (patch)
treedea3de7c80721f6c910a05422dcc24d3ff15731d /pw_bluetooth
parentaaf73fe286b785828e99f0ac7f7e7ff8a26153b9 (diff)
downloadpigweed-cba8918fe60cd67d2f284f8c5c565eec6ad7b52e.tar.gz
pw_bluetooth: Add new HCI definition
Add definitions for the HCI_Read_Local_Supported_Controller_Delay command. Bug: b/311639690 Test: Builds Change-Id: I63886f695cd0d1d0b122d480dced9b368dd5920f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/183771 Reviewed-by: Ali Saeed <saeedali@google.com> Commit-Queue: Josh Conner <joshconner@google.com>
Diffstat (limited to 'pw_bluetooth')
-rw-r--r--pw_bluetooth/public/pw_bluetooth/hci_commands.emb30
1 files changed, 27 insertions, 3 deletions
diff --git a/pw_bluetooth/public/pw_bluetooth/hci_commands.emb b/pw_bluetooth/public/pw_bluetooth/hci_commands.emb
index 6ff9cf1a9..46923f3ee 100644
--- a/pw_bluetooth/public/pw_bluetooth/hci_commands.emb
+++ b/pw_bluetooth/public/pw_bluetooth/hci_commands.emb
@@ -1748,10 +1748,34 @@ struct ReadBdAddrCommand:
# TODO: b/265052417 - Definition needs to be added
-# 7.4.11 Read Local Supported Controller Delay command
-# HCI_Read_Local_Supported_Controller_Delay
-# TODO: b/265052417 - Definition needs to be added
+enum LogicalTransportType:
+ [maximum_bits: 8]
+ BR_EDR_ACL = 0x00
+ -- BR/EDR ACL
+
+ BR_EDR_SCO_OR_ESCO = 0x01
+ -- BR/EDR SCO or eSCO
+
+ LE_CIS = 0x02
+ -- LE CIS
+ LE_BIS = 0x03
+ -- LE BIS
+
+
+struct ReadLocalSupportedControllerDelayCommand:
+ -- 7.4.11 Read Local Supported Controller Delay command (v5.2)
+ -- HCI_Read_Local_Supported_Controller_Delay
+ let hdr_size = hci.CommandHeader.$size_in_bytes
+ 0 [+hdr_size] hci.CommandHeader header
+ $next [+CodecId.$size_in_bytes] CodecId codec_id
+ $next [+1] LogicalTransportType logical_transport_type
+ $next [+1] DataPathDirection direction
+ $next [+1] UInt codec_configuration_length
+ -- Length of codec configuration
+
+ $next [+codec_configuration_length] UInt:8[codec_configuration_length] codec_configuration
+ -- Codec-specific configuration data
# ========== 7.5 Status Parameters ==========