import { type DataViewReader } from "./data-view-reader.js"; /**
The CP Feature characteristic is used to report a list of features supported by the device.
*/ export interface CyclingPowerFeature { /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ accumulatedEnergySupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ accumulatedTorqueSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ chainLengthAdjustmentSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ chainWeightAdjustmentSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ crankLengthAdjustmentSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ crankRevolutionDataSupported: number; /** *Format: `32bit`
* * Bit field: * * | index | size | name | * | ----- | ---- | ------------------------------------------------------------------ | * | 0 | 1 | Pedal Power Balance Supported | * | 1 | 1 | Accumulated Torque Supported | * | 2 | 1 | Wheel Revolution Data Supported | * | 3 | 1 | Crank Revolution Data Supported | * | 4 | 1 | Extreme Magnitudes Supported | * | 5 | 1 | Extreme Angles Supported | * | 6 | 1 | Top and Bottom Dead Spot Angles Supported | * | 7 | 1 | Accumulated Energy Supported | * | 8 | 1 | Offset Compensation Indicator Supported | * | 9 | 1 | Offset Compensation Supported | * | 10 | 1 | Cycling Power Measurement Characteristic Content Masking Supported | * | 11 | 1 | Multiple Sensor Locations Supported | * | 12 | 1 | Crank Length Adjustment Supported | * | 13 | 1 | Chain Length Adjustment Supported | * | 14 | 1 | Chain Weight Adjustment Supported | * | 15 | 1 | Span Length Adjustment Supported | * | 16 | 1 | Sensor Measurement Context | * | 17 | 1 | Instantaneous Measurement Direction Supported | * | 18 | 1 | Factory Calibration Date Supported | * | 19 | 1 | Enhanced Offset Compensation Supported | * | 20 | 2 | Distribute System Support | * | 22 | 10 | Reserved for future use | * */ cyclingPowerFeature: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ cyclingPowerMeasurementCharacteristicContentMaskingSupported: number; /** * | value | description | * | ----- | ----------------------------------- | * | 0 | Unspecified (legacy sensor) | * | 1 | Not for use in a distributed system | * | 2 | Can be used in a distributed system | * | 3 | RFU | */ distributeSystemSupport: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ enhancedOffsetCompensationSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ extremeAnglesSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ extremeMagnitudesSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ factoryCalibrationDateSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ instantaneousMeasurementDirectionSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ multipleSensorLocationsSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ offsetCompensationIndicatorSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ offsetCompensationSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ pedalPowerBalanceSupported: number; /** * | value | description | * | ----- | ------------ | * | 0 | Force based | * | 1 | Torque based | */ sensorMeasurementContext: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ spanLengthAdjustmentSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ topAndBottomDeadSpotAnglesSupported: number; /** * | value | description | * | ----- | ----------- | * | 0 | False | * | 1 | True | */ wheelRevolutionDataSupported: number; } /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.cycling_power_feature.xml | Cycling Power Feature} */ export declare class CyclingPowerFeatureImpl implements CyclingPowerFeature { static readonly UUID_PREFIX = 10853; static readonly TYPE_NAME = "org.bluetooth.characteristic.cycling_power_feature"; static readonly NAME = "Cycling Power Feature"; /** Parse from a DataView into {@link CyclingPowerFeature}. */ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): CyclingPowerFeatureImpl; readonly accumulatedEnergySupported: number; readonly accumulatedTorqueSupported: number; readonly chainLengthAdjustmentSupported: number; readonly chainWeightAdjustmentSupported: number; readonly crankLengthAdjustmentSupported: number; readonly crankRevolutionDataSupported: number; readonly cyclingPowerFeature: number; readonly cyclingPowerMeasurementCharacteristicContentMaskingSupported: number; readonly distributeSystemSupport: number; readonly enhancedOffsetCompensationSupported: number; readonly extremeAnglesSupported: number; readonly extremeMagnitudesSupported: number; readonly factoryCalibrationDateSupported: number; readonly instantaneousMeasurementDirectionSupported: number; readonly multipleSensorLocationsSupported: number; readonly offsetCompensationIndicatorSupported: number; readonly offsetCompensationSupported: number; readonly pedalPowerBalanceSupported: number; readonly sensorMeasurementContext: number; readonly spanLengthAdjustmentSupported: number; readonly topAndBottomDeadSpotAnglesSupported: number; readonly wheelRevolutionDataSupported: number; constructor(cyclingPowerFeature: CyclingPowerFeature); } /** Parse from a DataView into {@link CyclingPowerFeature}. */ export declare function cyclingPowerFeatureFromDataView(dataView: DataView | DataViewReader, indexStart?: number): CyclingPowerFeature; //# sourceMappingURL=cycling-power-feature.d.ts.map