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

1"""UGT Features characteristic (0x2C02).""" 

2 

3from __future__ import annotations 

4 

5from enum import IntFlag 

6 

7from .base import BaseCharacteristic 

8from .templates import FlagTemplate 

9 

10 

11class UGTFeatures(IntFlag): 

12 """Unicast Game Terminal feature flags.""" 

13 

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 

21 

22 

23class UGTFeaturesCharacteristic(BaseCharacteristic[UGTFeatures]): 

24 """UGT Features characteristic (0x2C02). 

25 

26 org.bluetooth.characteristic.ugt_features 

27 

28 Bitfield indicating the supported Unicast Game Terminal features. 

29 """ 

30 

31 _template = FlagTemplate.uint8(UGTFeatures)