src.bluetooth_sig.gatt.characteristics.csc_measurement¶
CSC Measurement characteristic implementation.
Classes¶
Name | Description |
|---|---|
CSC (Cycling Speed and Cadence) Measurement characteristic (0x2A5B). |
|
Parsed data from CSC Measurement characteristic. |
|
CSC Measurement flags as per Bluetooth SIG specification. |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.csc_measurement.CSCMeasurementCharacteristic¶
Bases:
src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[CSCMeasurementData]CSC (Cycling Speed and Cadence) Measurement characteristic (0x2A5B).
Used to transmit cycling speed and cadence data.
- CSC_TIME_RESOLUTION = 1024.0¶
- allow_variable_length = True¶
- max_length = 11¶
- min_length = 1¶
- class src.bluetooth_sig.gatt.characteristics.csc_measurement.CSCMeasurementData¶
Bases:
msgspec.StructParsed data from CSC Measurement characteristic.
- flags: CSCMeasurementFlags¶
- class src.bluetooth_sig.gatt.characteristics.csc_measurement.CSCMeasurementFlags¶
Bases:
enum.IntFlagCSC Measurement flags as per Bluetooth SIG specification.
- CRANK_REVOLUTION_DATA_PRESENT = 2¶
- WHEEL_REVOLUTION_DATA_PRESENT = 1¶