src.bluetooth_sig.gatt.characteristics.hid_information

HID Information characteristic implementation.

Attributes

Classes

Name

Description

HidInformationCharacteristic

HID Information characteristic (0x2A4A).

HidInformationData

Parsed data from HID Information characteristic.

HidInformationFlags

HID Information flags as per Bluetooth HID specification.

Module Contents

class src.bluetooth_sig.gatt.characteristics.hid_information.HidInformationCharacteristic

Bases: src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[HidInformationData]

HID Information characteristic (0x2A4A).

org.bluetooth.characteristic.hid_information

HID Information characteristic.

expected_length: int = 4
class src.bluetooth_sig.gatt.characteristics.hid_information.HidInformationData

Bases: msgspec.Struct

Parsed data from HID Information characteristic.

bcd_hid

HID version in BCD format (uint16)

b_country_code

Country code (uint8)

flags

HID information flags

b_country_code: int
bcd_hid: int
flags: HidInformationFlags
class src.bluetooth_sig.gatt.characteristics.hid_information.HidInformationFlags

Bases: enum.IntFlag

HID Information flags as per Bluetooth HID specification.

NORMALLY_CONNECTABLE = 2
REMOTE_WAKE = 1
src.bluetooth_sig.gatt.characteristics.hid_information.BCD_HID_MAX = 65535
src.bluetooth_sig.gatt.characteristics.hid_information.COUNTRY_CODE_MAX = 255
src.bluetooth_sig.gatt.characteristics.hid_information.HID_INFO_DATA_LENGTH = 4