import { type DataViewReader } from "./data-view-reader.js"; /**
The CSC Measurement characteristic (CSC refers to Cycling Speed and Cadence) is a variable length structure containing a Flags field and, based on the contents of the Flags field, may contain one or more additional fields as shown in the tables below.
*/ export interface CscMeasurement { /** *Format: `uint16`
*Unit: `org.bluetooth.unit.unitless`
*C2: Field exists if the key of bit 1 of the Flags field is set to 1.
*/ cumulativeCrankRevolutions?: number | undefined; /** *Format: `uint32`
*Unit: `org.bluetooth.unit.unitless`
*C1: Field exists if the key of bit 0 of the Flags field is set to 1.
*/ cumulativeWheelRevolutions?: number | undefined; /** *Format: `8bit`
*These flags define which data fields are present in the Characteristic value.
* * Bit field: * * | index | size | req | name | * | ----- | ---- | --- | ----------------------------- | * | 0 | 1 | C1 | Wheel Revolution Data Present | * | 1 | 1 | C2 | Crank Revolution Data Present | * | 2 | 6 | | Reserved for future use | * */ flags: number; /** *Format: `uint16`
*Unit: `org.bluetooth.unit.time.second`
*/ lastCrankEventTime?: number | undefined; /** *Format: `uint16`
*Unit: `org.bluetooth.unit.time.second`
*/ lastWheelEventTime?: number | undefined; } /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.csc_measurement.xml | Csc Measurement} */ export declare class CscMeasurementImpl implements CscMeasurement { static readonly UUID_PREFIX = 10843; static readonly TYPE_NAME = "org.bluetooth.characteristic.csc_measurement"; static readonly NAME = "CSC Measurement"; /** Parse from a DataView into {@link CscMeasurement}. */ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): CscMeasurementImpl; readonly cumulativeCrankRevolutions?: number | undefined; readonly cumulativeWheelRevolutions?: number | undefined; readonly flags: number; readonly lastCrankEventTime?: number | undefined; readonly lastWheelEventTime?: number | undefined; constructor(cscMeasurement: CscMeasurement); } /** Parse from a DataView into {@link CscMeasurement}. */ export declare function cscMeasurementFromDataView(dataView: DataView | DataViewReader, indexStart?: number): CscMeasurement; //# sourceMappingURL=csc-measurement.d.ts.map