Coverage for src / bluetooth_sig / gatt / characteristics / constant_tone_extension_enable.py: 100%
9 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"""Constant Tone Extension Enable characteristic."""
3from __future__ import annotations
5from enum import IntFlag
7from .base import BaseCharacteristic
8from .templates import FlagTemplate
11class CTEEnableFlags(IntFlag):
12 """Constant Tone Extension enable flags (bitfield).
14 Bit 0: Enable AoA CTE on ACL connection.
15 Bit 1: Enable AoD CTE in advertising packets.
16 """
18 AOA_ACL = 0x01
19 AOD_ADVERTISING = 0x02
22class ConstantToneExtensionEnableCharacteristic(BaseCharacteristic[CTEEnableFlags]):
23 """Constant Tone Extension Enable characteristic (0x2BAD).
25 org.bluetooth.characteristic.constant_tone_extension_enable
27 1-byte bitfield controlling CTE transmission.
28 Bit 0: AoA CTE on ACL connection. Bit 1: AoD CTE in advertising.
29 """
31 _template = FlagTemplate.uint8(CTEEnableFlags)