Skip to content

Commit

Permalink
pw_bluetooth: Add L2cap fixed CID definitions
Browse files Browse the repository at this point in the history
Change-Id: Iab9e6a873de122e22f196ab8bbcb10b19e71ccb6
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/247704
Pigweed-Auto-Submit: Austin Foxley <afoxley@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
Docs-Not-Needed: Austin Foxley <afoxley@google.com>
  • Loading branch information
afoxley authored and CQ Bot Account committed Nov 8, 2024
1 parent 781c125 commit dbc5ec0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pw_bluetooth/public/pw_bluetooth/l2cap_frames.emb
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,17 @@ enum L2capSignalingPacketCode:
CREDIT_BASED_RECONFIGURE_REQ = 0x19
CREDIT_BASED_RECONFIGURE_RSP = 0x1A

enum L2capFixedCid:
-- Possible fixed values for L2CAP channel ID. See Core Spec v6.0, Vol 3,
-- Part A, Table 2.1
[maximum_bits: 16]
ACL_U_SIGNALING = 0x0001
CONNECTIONLESS = 0x0002 # Applicable to ACL-U and APB-U
ACL_U_SECURITY_MANAGER = 0x0007
LE_U_ATTRIBUTE_PROTOCOL = 0x0004
LE_U_SIGNALING = 0x0005
LE_U_SECURITY_MANAGER = 0x0006

enum L2capFixedPsmCode:
-- Possible fixed values for PSM or SPSM as assigned by Bluetooth SIG. See
-- Core Spec v5.4, Vol 3, Part A, Section 4.2 and Assigned_Numbers Section 2.5
Expand Down

0 comments on commit dbc5ec0

Please sign in to comment.