Coverage for src / bluetooth_sig / gatt / characteristics / media_control_point_opcodes_supported.py: 100%
28 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
1"""Media Control Point Opcodes Supported characteristic (0x2BA5)."""
3from __future__ import annotations
5from enum import IntFlag
7from .base import BaseCharacteristic
8from .templates import FlagTemplate
11class MediaControlPointOpcodes(IntFlag):
12 """Supported media control point opcodes."""
14 PLAY = 0x00000001
15 PAUSE = 0x00000002
16 FAST_REWIND = 0x00000004
17 FAST_FORWARD = 0x00000008
18 STOP = 0x00000010
19 MOVE_RELATIVE = 0x00000020
20 PREVIOUS_SEGMENT = 0x00000040
21 NEXT_SEGMENT = 0x00000080
22 FIRST_SEGMENT = 0x00000100
23 LAST_SEGMENT = 0x00000200
24 GOTO_SEGMENT = 0x00000400
25 PREVIOUS_TRACK = 0x00000800
26 NEXT_TRACK = 0x00001000
27 FIRST_TRACK = 0x00002000
28 LAST_TRACK = 0x00004000
29 GOTO_TRACK = 0x00008000
30 PREVIOUS_GROUP = 0x00010000
31 NEXT_GROUP = 0x00020000
32 FIRST_GROUP = 0x00040000
33 LAST_GROUP = 0x00080000
34 GOTO_GROUP = 0x00100000
37class MediaControlPointOpcodesSupportedCharacteristic(BaseCharacteristic[MediaControlPointOpcodes]):
38 """Media Control Point Opcodes Supported characteristic (0x2BA5).
40 org.bluetooth.characteristic.media_control_point_opcodes_supported
42 Bitfield indicating the supported media control point opcodes.
43 """
45 _template = FlagTemplate.uint32(MediaControlPointOpcodes)