Coverage for src / bluetooth_sig / gatt / characteristics / ugt_features.py: 100%
14 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"""UGT Features characteristic (0x2C02)."""
3from __future__ import annotations
5from enum import IntFlag
7from .base import BaseCharacteristic
8from .templates import FlagTemplate
11class UGTFeatures(IntFlag):
12 """Unicast Game Terminal feature flags."""
14 UGT_SOURCE = 0x01
15 UGT_80_KBPS_SOURCE = 0x02
16 UGT_SINK = 0x04
17 UGT_64_KBPS_SINK = 0x08
18 UGT_MULTIPLEX = 0x10
19 UGT_MULTISINK = 0x20
20 UGT_MULTISOURCE = 0x40
23class UGTFeaturesCharacteristic(BaseCharacteristic[UGTFeatures]):
24 """UGT Features characteristic (0x2C02).
26 org.bluetooth.characteristic.ugt_features
28 Bitfield indicating the supported Unicast Game Terminal features.
29 """
31 _template = FlagTemplate.uint8(UGTFeatures)