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

10 statements  

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

1"""HID ISO Properties characteristic (0x2C23). 

2 

3Bitfield for HID Isochronous properties. 

4 

5References: 

6 Bluetooth SIG HID over GATT Profile specification 

7""" 

8 

9from __future__ import annotations 

10 

11from enum import IntFlag 

12 

13from .base import BaseCharacteristic 

14from .templates import FlagTemplate 

15 

16 

17class HIDISOProperties(IntFlag): 

18 """HID ISO Properties flags.""" 

19 

20 INPUT_REPORT_SUPPORTED = 0x01 

21 OUTPUT_REPORT_SUPPORTED = 0x02 

22 

23 

24class HIDISOPropertiesCharacteristic(BaseCharacteristic[HIDISOProperties]): 

25 """HID ISO Properties characteristic (0x2C23). 

26 

27 org.bluetooth.characteristic.hid_iso_properties 

28 

29 Bitfield indicating supported HID isochronous channel properties. 

30 """ 

31 

32 _characteristic_name = "HID ISO Properties" 

33 _template = FlagTemplate.uint8(HIDISOProperties)