src.bluetooth_sig.gatt.characteristics.cycling_power_measurement¶
Cycling Power Measurement characteristic implementation.
Classes¶
Name | Description |
|---|---|
Cycling Power Measurement characteristic (0x2A63). |
|
Parsed data from Cycling Power Measurement characteristic. |
|
Cycling Power Measurement Flags as per Bluetooth SIG specification. |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.cycling_power_measurement.CyclingPowerMeasurementCharacteristic¶
Bases:
src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[CyclingPowerMeasurementData]Cycling Power Measurement characteristic (0x2A63).
Used to transmit cycling power measurement data including instantaneous power, pedal power balance, accumulated energy, and revolution data.
- CRANK_TIME_RESOLUTION = 1024.0¶
- PEDAL_POWER_BALANCE_RESOLUTION = 2.0¶
- UNKNOWN_PEDAL_POWER_BALANCE = 255¶
- WHEEL_TIME_RESOLUTION = 2048.0¶
- class src.bluetooth_sig.gatt.characteristics.cycling_power_measurement.CyclingPowerMeasurementData¶
Bases:
msgspec.StructParsed data from Cycling Power Measurement characteristic.
- class src.bluetooth_sig.gatt.characteristics.cycling_power_measurement.CyclingPowerMeasurementFlags¶
Bases:
enum.IntFlagCycling Power Measurement Flags as per Bluetooth SIG specification.
- ACCUMULATED_ENERGY_PRESENT = 8¶
- ACCUMULATED_ENERGY_RESERVED = 2048¶
- ACCUMULATED_TORQUE_PRESENT = 4¶
- BOTTOM_DEAD_SPOT_ANGLE_PRESENT = 1024¶
- CRANK_REVOLUTION_DATA_PRESENT = 32¶
- EXTREME_ANGLES_PRESENT = 256¶
- EXTREME_FORCE_MAGNITUDES_PRESENT = 64¶
- EXTREME_TORQUE_MAGNITUDES_PRESENT = 128¶
- PEDAL_POWER_BALANCE_PRESENT = 1¶
- PEDAL_POWER_BALANCE_REFERENCE = 2¶
- TOP_DEAD_SPOT_ANGLE_PRESENT = 512¶
- WHEEL_REVOLUTION_DATA_PRESENT = 16¶