Coverage for src/bluetooth_sig/gatt/characteristics/bgs_features.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-06-28 01:26 +0000

1"""BGS Features characteristic (0x2C03).""" 

2 

3from __future__ import annotations 

4 

5from enum import IntFlag 

6 

7from .base import BaseCharacteristic 

8from .templates import FlagTemplate 

9 

10 

11class BGSFeatures(IntFlag): 

12 """Broadcast Game Sender feature flags.""" 

13 

14 MULTISINK = 0x01 

15 MULTIPLEX = 0x02 

16 

17 

18class BGSFeaturesCharacteristic(BaseCharacteristic[BGSFeatures]): 

19 """BGS Features characteristic (0x2C03). 

20 

21 org.bluetooth.characteristic.bgs_features 

22 

23 Bitfield indicating the supported Broadcast Game Sender features. 

24 """ 

25 

26 _template = FlagTemplate.uint8(BGSFeatures)