pw_bluetooth_sapphire: Add command opcode definition
Add opcode definition for the Write Simple Pairing Debug Mode
command.
Test: Builds
Change-Id: Ia67d8fbe939974f71ed36c5bcdc8ed0acdaaa618
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/354233
Tests-Not-Needed: Ben Lawson <benlawson@google.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
Docs-Not-Needed: Ben Lawson <benlawson@google.com>
Copybara-Verified: Copybara Prod <copybara-worker-blackhole@google.com>
Commit-Queue: Josh Conner <joshconner@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/pw_bluetooth_sapphire/host/hci-spec/public/pw_bluetooth_sapphire/internal/host/hci-spec/protocol.h b/pw_bluetooth_sapphire/host/hci-spec/public/pw_bluetooth_sapphire/internal/host/hci-spec/protocol.h
index 61bcef3..061fb38 100644
--- a/pw_bluetooth_sapphire/host/hci-spec/public/pw_bluetooth_sapphire/internal/host/hci-spec/protocol.h
+++ b/pw_bluetooth_sapphire/host/hci-spec/public/pw_bluetooth_sapphire/internal/host/hci-spec/protocol.h
@@ -486,6 +486,18 @@
inline constexpr OpCode kReadLocalSupportedControllerDelay =
InformationalParamsOpCode(0x000F);
+// ======= Testing Commands =======
+// Core Spec v6.1 Vol 4, Part E, Section 7.6
+inline constexpr uint8_t kTestingCommandsOGF = 0x06;
+constexpr OpCode TestingCommandsOpCode(const uint16_t ocf) {
+ return DefineOpCode(kTestingCommandsOGF, ocf);
+}
+
+// ====================================================
+// Write Simple Pairing Debug Mode Command (v2.1 + EDR)
+inline constexpr OpCode kWriteSimplePairingDebugMode =
+ TestingCommandsOpCode(0x0004);
+
// ======= Events =======
// Core Spec v5.0 Vol 2, Part E, Section 7.7