aboutsummaryrefslogtreecommitdiff
path: root/pw_bluetooth
diff options
context:
space:
mode:
authorFaraaz Sareshwala <faraazs@gmail.com>2023-10-05 20:07:35 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-05 20:07:35 +0000
commitcec0875b5d3dadafbcad3f03320e89d61056d89e (patch)
treedf34ba0222dcd7d58658eefcc5287811344257d6 /pw_bluetooth
parentbd20e21439b57f232463870d711e7485e1dbb083 (diff)
downloadpigweed-cec0875b5d3dadafbcad3f03320e89d61056d89e.tar.gz
pw_bluetooth: Format Emboss files
Change-Id: I959493e8c66c88fa817b292c662adc4b7aecec07 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/174832 Reviewed-by: Ben Lawson <benlawson@google.com> Pigweed-Auto-Submit: Faraaz Sareshwala <fsareshwala@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_common.emb3
-rw-r--r--pw_bluetooth/public/pw_bluetooth/hci_events.emb16
2 files changed, 4 insertions, 15 deletions
diff --git a/pw_bluetooth/public/pw_bluetooth/hci_common.emb b/pw_bluetooth/public/pw_bluetooth/hci_common.emb
index 7aeb4e605..211d80489 100644
--- a/pw_bluetooth/public/pw_bluetooth/hci_common.emb
+++ b/pw_bluetooth/public/pw_bluetooth/hci_common.emb
@@ -273,7 +273,7 @@ enum GenericEnableParam:
enum GenericPresenceParam:
[maximum_bits: 8]
NOT_PRESENT = 0x00
- PRESENT = 0x01
+ PRESENT = 0x01
struct BdAddr:
@@ -419,7 +419,6 @@ enum IoCapability:
KEYBOARD_ONLY = 0x02
NO_INPUT_NO_OUTPUT = 0x03
-
# inclusive-language: disable
diff --git a/pw_bluetooth/public/pw_bluetooth/hci_events.emb b/pw_bluetooth/public/pw_bluetooth/hci_events.emb
index f5b4668fd..24af07e2f 100644
--- a/pw_bluetooth/public/pw_bluetooth/hci_events.emb
+++ b/pw_bluetooth/public/pw_bluetooth/hci_events.emb
@@ -798,7 +798,6 @@ struct ChangeConnectionLinkKeyCompleteEvent:
$next [+2] UInt connection_handle
[requires: 0x0000 <= this <= 0x0EFF]
-
# 7.7.10 Link Key Type Changed event
# HCI_Link_Key_Type_Changed
# TODO: b/265052417 - Definition needs to be added
@@ -835,7 +834,6 @@ struct ReadRemoteVersionInfoCompleteEvent:
$next [+2] UInt subversion
-- Revision of the LMP or Link Layer implementation in the remote Controller. This value is vendor-specific.
-
# 7.7.13 QoS Setup Complete event
# HCI_QoS_Setup_Complete
# TODO: b/265052417 - Definition needs to be added
@@ -854,6 +852,7 @@ struct SimpleCommandCompleteEvent:
struct ReadLocalVersionInfoCommandCompleteEvent:
-- 7.7.14 Command Complete event (7.4.1 Read Local Version Information command)
+
let hdr_size = hci.CommandCompleteEvent.$size_in_bytes
0 [+hdr_size] hci.CommandCompleteEvent command_complete
@@ -992,7 +991,6 @@ struct CommandStatusEvent:
$next [+1] UInt num_hci_command_packets
$next [+2] hci.OpCodeBits command_opcode
-
# 7.7.16 Hardware Error event
# HCI_Hardware_Error
# TODO: b/265052417 - Definition needs to be added
@@ -1015,7 +1013,6 @@ struct RoleChangeEvent:
$next [+1] hci.ConnectionRole role
-- The new role for the specified address.
-
# 7.7.19 Number Of Completed Packets event
# HCI_Number_Of_Completed_Packets
# TODO: b/265052417 - Definition needs to be added
@@ -1059,7 +1056,6 @@ struct LinkKeyNotificationEvent:
$next [+1] KeyType key_type
-- Type of key used when pairing.
-
# 7.7.25 Loopback Command event
# HCI_Loopback_Command
# TODO: b/265052417 - Definition needs to be added
@@ -1072,7 +1068,6 @@ struct DataBufferOverflowEvent:
0 [+hdr_size] hci.EventHeader header
$next [+1] LinkType ll_type
-
# 7.7.27 Max Slots Change event
# HCI_Max_Slots_Change
# TODO: b/265052417 - Definition needs to be added
@@ -1192,7 +1187,6 @@ struct SynchronousConnectionCompleteEvent:
$next [+1] hci.CodingFormat air_mode
-
# 7.7.36 Synchronous Connection Changed event
# HCI_Synchronous_Connection_Changed
# TODO: b/265052417 - Definition needs to be added
@@ -1292,7 +1286,6 @@ struct UserPasskeyRequestEvent:
$next [+hci.BdAddr.$size_in_bytes] hci.BdAddr bd_addr
-- Address of the device involved in simple pairing process
-
# 7.7.44 Remote OOB Data Request event
# HCI_Remote_OOB_Data_Request
# TODO: b/265052417 - Definition needs to be added
@@ -1307,7 +1300,6 @@ struct SimplePairingCompleteEvent:
$next [+hci.BdAddr.$size_in_bytes] hci.BdAddr bd_addr
-- Address of the device involved in simple pairing process
-
# 7.7.46 Link Supervision Timeout Changed event
# HCI_Link_Supervision_Timeout_Changed
# TODO: b/265052417 - Definition needs to be added
@@ -1330,7 +1322,6 @@ struct UserPasskeyNotificationEvent:
-- Numeric value (passkey) entered by user.
[requires: 0 <= this <= 999999]
-
# 7.7.49 Keypress Notification event
# HCI_Keypress_Notification
# TODO: b/265052417 - Definition needs to be added
@@ -1357,6 +1348,7 @@ struct LEMetaEvent:
struct LEConnectionCompleteSubevent:
-- 7.7.65.1 LE Connection Complete event
-- HCI_LE_Connection_Complete
+
0 [+LEMetaEvent.$size_in_bytes] LEMetaEvent le_meta_event
$next [+1] hci.StatusCode status
@@ -1388,7 +1380,6 @@ struct LEConnectionCompleteSubevent:
$next [+1] LEClockAccuracy central_clock_accuracy
-- Only valid for a peripheral. On a central, this parameter shall be set to 0x00.
-
# 7.7.65.2 LE Advertising Report event
# HCI_LE_Advertising_Report
# TODO: b/265052417 - Definition needs to be added
@@ -1397,6 +1388,7 @@ struct LEConnectionCompleteSubevent:
struct LEConnectionUpdateCompleteSubevent:
-- 7.7.65.3 LE Connection Update Complete event
-- HCI_LE_Connection_Update_Complete
+
0 [+LEMetaEvent.$size_in_bytes] LEMetaEvent le_meta_event
$next [+1] hci.StatusCode status
@@ -1442,7 +1434,6 @@ struct LELongTermKeyRequestSubevent:
$next [+8] UInt random_number
$next [+2] UInt encrypted_diversifier
-
# 7.7.65.6 LE Remote Connection Parameter Request event
# HCI_LE_Remote_Connection_Parameter_Request
# TODO: b/265052417 - Definition needs to be added
@@ -1544,7 +1535,6 @@ struct LEExtendedAdvertisingReportSubevent(reports_size: UInt:8):
$next [+reports_size] UInt:8[reports_size] reports
-- Since each report has a variable length, they are stored in a UInt:8 array.
-
# 7.7.65.14 LE Periodic Advertising Sync Established event
# HCI_LE_Periodic_Advertising_Sync_Established
# TODO: b/265052417 - Definition needs to be added