src.bluetooth_sig.gatt.characteristics.csc_feature

CSC Feature characteristic implementation.

Classes

Name

Description

CSCFeatureCharacteristic

CSC Feature characteristic (0x2A5C).

CSCFeatureData

Parsed data from CSC Feature characteristic.

CSCFeatures

CSC Feature flags as per Bluetooth SIG specification.

Module Contents

class src.bluetooth_sig.gatt.characteristics.csc_feature.CSCFeatureCharacteristic

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

CSC Feature characteristic (0x2A5C).

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

expected_length: int = 2
class src.bluetooth_sig.gatt.characteristics.csc_feature.CSCFeatureData

Bases: msgspec.Struct

Parsed data from CSC Feature characteristic.

crank_revolution_data_supported: bool
features: CSCFeatures
multiple_sensor_locations_supported: bool
wheel_revolution_data_supported: bool
class src.bluetooth_sig.gatt.characteristics.csc_feature.CSCFeatures

Bases: enum.IntFlag

CSC Feature flags as per Bluetooth SIG specification.

CRANK_REVOLUTION_DATA_SUPPORTED = 2
MULTIPLE_SENSOR_LOCATIONS_SUPPORTED = 4
WHEEL_REVOLUTION_DATA_SUPPORTED = 1