src.bluetooth_sig.gatt.characteristics.volume_control_point¶
Volume Control Point characteristic (0x2B7E).
Classes¶
Name | Description |
|---|---|
Volume Control Point characteristic (0x2B7E). |
|
Parsed data from Volume Control Point characteristic. |
|
Volume Control Point operation codes. |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.volume_control_point.VolumeControlPointCharacteristic(info: src.bluetooth_sig.types.CharacteristicInfo | None = None, validation: src.bluetooth_sig.gatt.characteristics.characteristic_meta.ValidationConfig | None = None)¶
Bases:
src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[VolumeControlPointData]Volume Control Point characteristic (0x2B7E).
org.bluetooth.characteristic.volume_control_point
Used for controlling volume settings in the Volume Control Service.
- allow_variable_length = True¶
- min_length = 2¶
- class src.bluetooth_sig.gatt.characteristics.volume_control_point.VolumeControlPointData¶
Bases:
msgspec.StructParsed data from Volume Control Point characteristic.
The parameter field contains opcode-specific data as raw bytes, or None for opcodes with no additional parameters beyond change_counter.
- op_code: VolumeControlPointOpCode¶
- class src.bluetooth_sig.gatt.characteristics.volume_control_point.VolumeControlPointOpCode¶
Bases:
enum.IntEnumVolume Control Point operation codes.
- MUTE = 6¶
- RELATIVE_VOLUME_DOWN = 0¶
- RELATIVE_VOLUME_UP = 1¶
- SET_ABSOLUTE_VOLUME = 4¶
- UNMUTE = 5¶
- UNMUTE_RELATIVE_VOLUME_DOWN = 2¶
- UNMUTE_RELATIVE_VOLUME_UP = 3¶