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

10 statements  

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

1"""LE HID Operation Mode characteristic (0x2C24). 

2 

3Operation mode for LE HID devices. 

4 

5References: 

6 Bluetooth SIG HID over GATT Profile specification 

7""" 

8 

9from __future__ import annotations 

10 

11from enum import IntEnum 

12 

13from .base import BaseCharacteristic 

14from .templates import EnumTemplate 

15 

16 

17class LEHIDOperationModeValue(IntEnum): 

18 """LE HID Operation Mode values.""" 

19 

20 REPORT_MODE = 0x00 

21 BOOT_MODE = 0x01 

22 

23 

24class LEHIDOperationModeCharacteristic(BaseCharacteristic[LEHIDOperationModeValue]): 

25 """LE HID Operation Mode characteristic (0x2C24). 

26 

27 org.bluetooth.characteristic.le_hid_operation_mode 

28 

29 Indicates the current operation mode of the LE HID device. 

30 """ 

31 

32 _characteristic_name = "LE HID Operation Mode" 

33 _template = EnumTemplate.uint8(LEHIDOperationModeValue)