Skip to content

Commit

Permalink
Add Published Audio Capabilities Service
Browse files Browse the repository at this point in the history
  • Loading branch information
zxzxwu committed Nov 30, 2023
1 parent a9c4c58 commit 2c14a55
Show file tree
Hide file tree
Showing 3 changed files with 672 additions and 1 deletion.
16 changes: 15 additions & 1 deletion bumble/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,10 +1055,24 @@ def __str__(self):


# -----------------------------------------------------------------------------
# LE Role
# Shared Assigned Numbers
# -----------------------------------------------------------------------------
class LeRole(enum.IntEnum):
PERIPHERAL_ONLY = 0x00
CENTRAL_ONLY = 0x01
BOTH_PERIPHERAL_PREFERRED = 0x02
BOTH_CENTRAL_PREFERRED = 0x03


class CodingFormat(enum.IntEnum):
# fmt: off
U_LOW = 0x00
A_LOG = 0x01
CVSD = 0x02
TRANSPARENT = 0x03
LINEAR_PCM = 0x04
MSBC = 0x05
LC3 = 0x06
G_729A = 0x07

VENDOR_SPECIFIC = 0xFF
Loading

0 comments on commit 2c14a55

Please sign in to comment.