From cba8918fe60cd67d2f284f8c5c565eec6ad7b52e Mon Sep 17 00:00:00 2001 From: Josh Conner Date: Mon, 4 Dec 2023 20:57:23 +0000 Subject: 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 Commit-Queue: Josh Conner --- pw_bluetooth/public/pw_bluetooth/hci_commands.emb | 30 ++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'pw_bluetooth') 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 ========== -- cgit v1.2.3