aboutsummaryrefslogtreecommitdiff
path: root/pw_bluetooth
diff options
context:
space:
mode:
authorFaraaz Sareshwala <faraazs@gmail.com>2023-10-19 23:52:52 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-19 23:52:52 +0000
commit16d9aa7b128ef89ce3fa57f03c4591b54c5324d9 (patch)
tree505df92176eae10bb0e7a5b7e815c607940e9895 /pw_bluetooth
parente539a0b0def3b6a651958df740c3c8d9f278ddc7 (diff)
downloadpigweed-16d9aa7b128ef89ce3fa57f03c4591b54c5324d9.tar.gz
pw_bluetooth: Define LEChannelSelectionAlgorithmSubevent
Change-Id: I984de317b05675f5202d7fb23f838c0b8af3a7ca Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/176577 Reviewed-by: Lulu Wang <luluwang@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Pigweed-Auto-Submit: Faraaz Sareshwala <fsareshwala@google.com> Reviewed-by: Ben Lawson <benlawson@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'pw_bluetooth')
-rw-r--r--pw_bluetooth/public/pw_bluetooth/hci_events.emb17
1 files changed, 14 insertions, 3 deletions
diff --git a/pw_bluetooth/public/pw_bluetooth/hci_events.emb b/pw_bluetooth/public/pw_bluetooth/hci_events.emb
index 5d63d69e9..ca47f9dcf 100644
--- a/pw_bluetooth/public/pw_bluetooth/hci_events.emb
+++ b/pw_bluetooth/public/pw_bluetooth/hci_events.emb
@@ -674,6 +674,12 @@ bits SupportedCommands(octet: UInt:8):
0 [+1] Flag le_extended_create_connection_v2
1 [+1] Flag le_set_periodic_advertising_parameters_v2
+
+enum LEChannelSelectionAlgorithm:
+ [maximum_bits: 8]
+ ALGORITHM1 = 0x00
+ ALGORITHM2 = 0x01
+
# ========================= HCI Event packets ===========================
# Core Spec v5.3 Vol 4, Part E, Section 7.7
@@ -1565,10 +1571,15 @@ struct LEScanTimeoutSubevent:
# TODO: b/265052417 - Definition needs to be added
-# 7.7.65.20 LE Channel Selection Algorithm event
-# HCI_LE_Channel_Selection_Algorithm
-# TODO: b/265052417 - Definition needs to be added
+struct LEChannelSelectionAlgorithmSubevent:
+ -- 7.7.65.20 LE Channel Selection Algorithm event
+ -- HCI_LE_Channel_Selection_Algorithm
+ 0 [+LEMetaEvent.$size_in_bytes] LEMetaEvent le_meta_event
+ $next [+2] UInt connection_handle
+ -- Only the lower 12-bits are meaningful.
+ [requires: 0x0000 <= this <= 0x0EFF]
+ $next [+1] LEChannelSelectionAlgorithm channel_selection_algorithm
# 7.7.65.21 LE Connectionless IQ Report event
# HCI_LE_Connectionless_IQ_Report