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

9 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-11 20:14 +0000

1"""Heart Rate Control Point characteristic implementation.""" 

2 

3from __future__ import annotations 

4 

5from enum import IntEnum 

6 

7from .base import BaseCharacteristic 

8from .templates import EnumTemplate 

9 

10 

11class HeartRateControlCommand(IntEnum): 

12 """Heart Rate Control Point command values.""" 

13 

14 RESERVED = 0x00 

15 RESET_ENERGY_EXPENDED = 0x01 

16 

17 

18class HeartRateControlPointCharacteristic(BaseCharacteristic[int]): 

19 """Heart Rate Control Point characteristic (0x2A39). 

20 

21 org.bluetooth.characteristic.heart_rate_control_point 

22 

23 Control point for Heart Rate Service operations (e.g., reset energy expended). 

24 """ 

25 

26 _template = EnumTemplate.uint8(HeartRateControlCommand)