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

9 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-03 16:41 +0000

1"""Volume Flags characteristic (0x2B7F).""" 

2 

3from __future__ import annotations 

4 

5from enum import IntFlag 

6 

7from .base import BaseCharacteristic 

8from .templates import FlagTemplate 

9 

10 

11class VolumeFlags(IntFlag): 

12 """Volume flags.""" 

13 

14 RESET_VOLUME_SETTING = 0x00 

15 USER_SET_VOLUME_SETTING = 0x01 

16 

17 

18class VolumeFlagsCharacteristic(BaseCharacteristic[VolumeFlags]): 

19 """Volume Flags characteristic (0x2B7F). 

20 

21 org.bluetooth.characteristic.volume_flags 

22 

23 Bitfield indicating volume-related flags. 

24 """ 

25 

26 _template = FlagTemplate.uint8(VolumeFlags)