src.bluetooth_sig.gatt.characteristics.rsc_feature

RSC Feature characteristic implementation.

Classes

Name

Description

RSCFeatureCharacteristic

RSC Feature characteristic (0x2A54).

RSCFeatureData

Parsed data from RSC Feature characteristic.

RSCFeatures

RSC Feature flags as per Bluetooth SIG specification.

Module Contents

class src.bluetooth_sig.gatt.characteristics.rsc_feature.RSCFeatureCharacteristic

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

RSC Feature characteristic (0x2A54).

Used to expose the supported features of an RSC sensor. Contains a 16-bit bitmask indicating supported measurement capabilities.

expected_length: int = 2
class src.bluetooth_sig.gatt.characteristics.rsc_feature.RSCFeatureData

Bases: msgspec.Struct

Parsed data from RSC Feature characteristic.

calibration_procedure_supported: bool
features: RSCFeatures
instantaneous_stride_length_supported: bool
multiple_sensor_locations_supported: bool
total_distance_supported: bool
walking_or_running_status_supported: bool
class src.bluetooth_sig.gatt.characteristics.rsc_feature.RSCFeatures

Bases: enum.IntFlag

RSC Feature flags as per Bluetooth SIG specification.

CALIBRATION_PROCEDURE_SUPPORTED = 8
INSTANTANEOUS_STRIDE_LENGTH_SUPPORTED = 1
MULTIPLE_SENSOR_LOCATIONS_SUPPORTED = 16
TOTAL_DISTANCE_SUPPORTED = 2
WALKING_OR_RUNNING_STATUS_SUPPORTED = 4