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
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-03 16:41 +0000
1"""LE HID Operation Mode characteristic (0x2C24).
3Operation mode for LE HID devices.
5References:
6 Bluetooth SIG HID over GATT Profile specification
7"""
9from __future__ import annotations
11from enum import IntEnum
13from .base import BaseCharacteristic
14from .templates import EnumTemplate
17class LEHIDOperationModeValue(IntEnum):
18 """LE HID Operation Mode values."""
20 REPORT_MODE = 0x00
21 BOOT_MODE = 0x01
24class LEHIDOperationModeCharacteristic(BaseCharacteristic[LEHIDOperationModeValue]):
25 """LE HID Operation Mode characteristic (0x2C24).
27 org.bluetooth.characteristic.le_hid_operation_mode
29 Indicates the current operation mode of the LE HID device.
30 """
32 _characteristic_name = "LE HID Operation Mode"
33 _template = EnumTemplate.uint8(LEHIDOperationModeValue)