Skip to content

Commit

Permalink
pw_bluetooth: Add UserPasskeyNotificationEvent Emboss definition
Browse files Browse the repository at this point in the history
Test: pw presubmit --step gn_emboss_nanopb_build
Change-Id: Ib0a38f94ae3ea9c55d10bbc72d9d614aee2552bd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/169917
Reviewed-by: Ali Saeed <[email protected]>
Commit-Queue: Ben Lawson <[email protected]>
BenjaminLawson authored and CQ Bot Account committed Sep 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f0da6aa commit 6d6d517
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pw_bluetooth/public/pw_bluetooth/hci_events.emb
Original file line number Diff line number Diff line change
@@ -774,3 +774,15 @@ struct SimplePairingCompleteEvent:
$next [+1] hci.StatusCode status
$next [+hci.BdAddr.$size_in_bytes] hci.BdAddr bd_addr
-- Address of the device involved in simple pairing process


struct UserPasskeyNotificationEvent:
-- User Passkey Notification Event (v2.1 + EDR) (BR/EDR)
let hdr_size = hci.EventHeader.$size_in_bytes
0 [+hdr_size] hci.EventHeader header
$next [+hci.BdAddr.$size_in_bytes] hci.BdAddr bd_addr
-- Address of the device involved in simple pairing process

$next [+4] UInt passkey
-- Numeric value (passkey) entered by user.
[requires: 0 <= this <= 999999]

0 comments on commit 6d6d517

Please sign in to comment.