Coverage for src / bluetooth_sig / gatt / characteristics / call_control_point_optional_opcodes.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-03 16:41 +0000

1"""Call Control Point Optional Opcodes characteristic (0x2BBF).""" 

2 

3from __future__ import annotations 

4 

5from enum import IntFlag 

6 

7from .base import BaseCharacteristic 

8from .templates import FlagTemplate 

9 

10 

11class CallControlPointOptionalOpcodes(IntFlag): 

12 """Optional opcodes supported by the Call Control Point.""" 

13 

14 LOCAL_HOLD_AND_LOCAL_RETRIEVE = 0x0001 

15 JOIN = 0x0002 

16 

17 

18class CallControlPointOptionalOpcodesCharacteristic( 

19 BaseCharacteristic[CallControlPointOptionalOpcodes], 

20): 

21 """Call Control Point Optional Opcodes characteristic (0x2BBF). 

22 

23 org.bluetooth.characteristic.call_control_point_optional_opcodes 

24 

25 Bitmask of optional opcodes supported by the Call Control Point. 

26 """ 

27 

28 expected_length: int = 2 

29 _template = FlagTemplate.uint16(CallControlPointOptionalOpcodes)