Skip to content

Commit

Permalink
pw_bluetooth: Add new HCI definition
Browse files Browse the repository at this point in the history
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 <[email protected]>
Commit-Queue: Josh Conner <[email protected]>
  • Loading branch information
josh-conner authored and CQ Bot Account committed Dec 4, 2023
1 parent aaf73fe commit cba8918
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions pw_bluetooth/public/pw_bluetooth/hci_commands.emb
Original file line number Diff line number Diff line change
Expand Up @@ -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 ==========

Expand Down

0 comments on commit cba8918

Please sign in to comment.