src.bluetooth_sig.gatt.characteristics.hearing_aid_preset_control_point

Hearing Aid Preset Control Point characteristic (0x2BDB).

Control point for Hearing Aid presets.

References

Bluetooth SIG Hearing Access Service specification

Classes

Name

Description

HearingAidPresetControlPointCharacteristic

Hearing Aid Preset Control Point characteristic (0x2BDB).

HearingAidPresetControlPointData

Parsed data from Hearing Aid Preset Control Point.

HearingAidPresetControlPointOpCode

Hearing Aid Preset Control Point Op Codes.

Module Contents

class src.bluetooth_sig.gatt.characteristics.hearing_aid_preset_control_point.HearingAidPresetControlPointCharacteristic

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

Hearing Aid Preset Control Point characteristic (0x2BDB).

org.bluetooth.characteristic.hearing_aid_preset_control_point

Control point for managing presets in the Hearing Access Service.

allow_variable_length = True
min_length = 1
class src.bluetooth_sig.gatt.characteristics.hearing_aid_preset_control_point.HearingAidPresetControlPointData

Bases: msgspec.Struct

Parsed data from Hearing Aid Preset Control Point.

opcode

The operation code.

parameter

Raw parameter bytes (variable per opcode). Empty if none.

opcode: HearingAidPresetControlPointOpCode
parameter: bytes = b''
class src.bluetooth_sig.gatt.characteristics.hearing_aid_preset_control_point.HearingAidPresetControlPointOpCode

Bases: enum.IntEnum

Hearing Aid Preset Control Point Op Codes.

PRESET_CHANGED = 3
READ_PRESETS_REQUEST = 1
READ_PRESET_RESPONSE = 2
SET_ACTIVE_PRESET = 5
SET_ACTIVE_PRESET_SYNCED_LOCALLY = 8
SET_NEXT_PRESET = 6
SET_NEXT_PRESET_SYNCED_LOCALLY = 9
SET_PREVIOUS_PRESET = 7
SET_PREVIOUS_PRESET_SYNCED_LOCALLY = 10
WRITE_PRESET_NAME = 4