import { type DataViewReader } from "./data-view-reader.js"; /**
The RSC Measurement characteristic (RSC refers to Running Speed and Cadence) is a variable length structure containing a Flags field, an Instantaneous Speed field and an Instantaneous Cadence field and, based on the contents of the Flags field, may contain a Stride Length field and a Total Distance field.
*/ export interface RscMeasurement { /** *Format: `8bit`
*These flags define which data fields are present in the Characteristic value.
* * Bit field: * * | index | size | req | name | * | ----- | ---- | --- | ----------------------------------- | * | 0 | 1 | C1 | Instantaneous Stride Length Present | * | 1 | 1 | C2 | Total Distance Present | * | 2 | 1 | | Walking or Running Status bits | * | 3 | 5 | | Reserved for future use | * */ flags: number; /** *Format: `uint8`
*Unit: `org.bluetooth.unit.angular_velocity.revolution_per_minute`
*Unit is in 1/minute (or RPM) with a resolutions of 1 1/min (or 1 RPM)
*/ instantaneousCadence: number; /** *Format: `uint16`
*Unit: `org.bluetooth.unit.velocity.metres_per_second`
*Unit is in m/s with a resolution of 1/256 s
*/ instantaneousSpeed: number; /** *Format: `uint16`
*Unit: `org.bluetooth.unit.length.meter`
*C1: Field exists if the key of bit 0 of the Flags field is set to 1.
*- Unit is in meter with a resolution of 1/100 m (or centimeter).
*/ instantaneousStrideLength?: number | undefined; /** *Format: `uint32`
*Unit: `org.bluetooth.unit.length.meter`
*C2: Field exists if the key of bit 1 of the Flags field is set to 1.
*- Unit is in meter with a resolution of 1/10 m (or decimeter).
*/ totalDistance?: number | undefined; /** * | value | description | * | ----- | ----------- | * | 0 | Walking | * | 1 | Running | */ walkRun: number; } /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.rsc_measurement.xml | Rsc Measurement} */ export declare class RscMeasurementImpl implements RscMeasurement { static readonly UUID_PREFIX = 10835; static readonly TYPE_NAME = "org.bluetooth.characteristic.rsc_measurement"; static readonly NAME = "RSC Measurement"; /** Parse from a DataView into {@link RscMeasurement}. */ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): RscMeasurementImpl; readonly flags: number; readonly instantaneousCadence: number; readonly instantaneousSpeed: number; readonly instantaneousStrideLength?: number | undefined; readonly totalDistance?: number | undefined; readonly walkRun: number; constructor(rscMeasurement: RscMeasurement); } /** Parse from a DataView into {@link RscMeasurement}. */ export declare function rscMeasurementFromDataView(dataView: DataView | DataViewReader, indexStart?: number): RscMeasurement; //# sourceMappingURL=rsc-measurement.d.ts.map