trouble-host

Crates

0.2.0

Versions

default

Flavors

Constant CROSS_TRAINER_DATA

Source
pub const CROSS_TRAINER_DATA: BluetoothUuid16;
Expand description

Bluetooth characteristic UUID.

0x2ace Cross Trainer Data

The Cross Trainer Data characteristic is used to represent data related to cross trainer activity.


§Structure

§Data Type

FieldFlags
Typeboolean24
Size3

§Description

See sec:org.bluetooth.characteristic.cross_trainer_data/field/flags

––///

§Data Type

FieldInstantaneous Speed
Typeuint16
Size0 or 2

§Description

Base Unit: org.bluetooth.unit.velocity.kilometre_per_hour Represented values: M = 1, d = -2, b = 0 Unit is 1/100 of a kilometer per hour Present if bit 0 of Flags field is set to 0

––///

§Data Type

FieldAverage Speed
Typeuint16
Size0 or 2

§Description

Base Unit: org.bluetooth.unit.velocity.kilometre_per_hour Represented values: M = 1, d = -2, b = 0 Unit is 1/100 of a kilometer per hour The Average Speed field represents the average speed since the beginning of the training session. Present if bit 1 of Flags field is set to 1

––///

§Data Type

FieldTotal Distance
Typeuint24
Size0 or 3

§Description

Unit: org.bluetooth.unit.length.metre The Total Distance field represents the total distance reported by the Server since the beginning of the training session. Present if bit 2 of Flags field is set to 1

––///

§Data Type

FieldSteps Per Minute
Typeuint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.step_per_minute The Step per Minute Rate field represents the average step rate of a user during a period of one minute. Present if bit 3 of Flags field is set to 1

––///

§Data Type

FieldAverage Step Rate
Typeuint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.step_per_minute The Average Step Rate field represents the average step rate since the beginning of the training session. Present if bit 3 of Flags field is set to 1

––///

§Data Type

FieldStride Count
Typeuint16
Size0 or 2

§Description

Base Unit: org.bluetooth.unit.unitless Represented values: M = 1, d = -1, b = 0 Unit is 1/10 A stride is a pair of steps The Stride Count field represents the total number of strides since the beginning of the training session. Present if bit 4 of Flags field is set to 1

––///

§Data Type

FieldPositive Elevation Gain
Typeuint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.length.metre The Positive Elevation Gain field represents the positive elevation gain since the training session has started. Present if bit 5 of Flags field is set to 1

––///

§Data Type

FieldNegative Elevation Gain
Typeuint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.length.metre The Negative Elevation Gain field represents the negative elevation gain since the training session has started. Present if bit 5 of Flags field is set to 1

––///

§Data Type

FieldInclination
Typesint16
Size0 or 2

§Description

Base Unit: org.bluetooth.unit.percentage Represented values: M = 1, d = -1, b = 0 Unit is 1/10 of a percent The Inclination field represents the current inclination of the Server. A positive value means that the user feels as if they are going uphill and a negative value means that the user feels as if they are going downhill. Present if bit 6 of Flags field is set to 1

––///

§Data Type

FieldRamp Setting
Typesint16
Size0 or 2

§Description

Base Unit: org.bluetooth.unit.plane_angle.degree Represented values: M = 1, d = -1, b = 0 Unit is 1/10 of a degree The Ramp Angle Setting field represents the current setting of the ramp angle of the Server. Present if bit 6 of Flags field is set to 1

––///

§Data Type

FieldResistance Level
Typeuint8
Size0 or 1

§Description

Base Unit: org.bluetooth.unit.unitless Represented values: M = 1, d = 1, b = 0 Unit is 1 The Resistance Level field represents the value of the current value of the resistance level of the Server. Present if bit 7 of Flags field is set to 1

––///

§Data Type

FieldInstantaneous Power
Typesint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.power.watt The Instantaneous Power field represents the value of the instantaneous power measured by the Server. Present if bit 8 of Flags field is set to 1

––///

§Data Type

FieldAverage Power
Typesint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.power.watt The Average Power field represents the value of the average power measured by the Server since the beginning of the training session. Present if bit 9 of Flags field is set to 1

––///

§Data Type

FieldTotal Energy
Typeuint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.energy.kilogram_calorie The Total Energy field represents the total expended energy of a user since the training session has started. Present if bit 10 of Flags field is set to 1

––///

§Data Type

FieldEnergy Per Hour
Typeuint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.energy.kilogram_calorie The Energy per Hour field represents the average expended energy of a user during a period of one hour. Present if bit 10 of Flags field is set to 1

––///

§Data Type

FieldEnergy Per Minute
Typeuint8
Size0 or 1

§Description

Unit: org.bluetooth.unit.energy.kilogram_calorie The Energy per Minute field represents the average expended energy of a user during a period of one minute. Present if bit 10 of Flags field is set to 1

––///

§Data Type

FieldHeart Rate
Typeuint8
Size0 or 1

§Description

Unit: org.bluetooth.unit.period.beats_per_minute The Heart Rate field represents the current heart rate value of the user (e.g., measured via the contact heart rate or any other means). Present if bit 11 of Flags field is set to 1

––///

§Data Type

FieldMetabolic Equivalent
Typeuint8
Size0 or 1

§Description

Base Unit: org.bluetooth.unit.metabolic_equivalent Represented values: M = 1, d = -1, b = 0 Unit is 1/10 metabolic equivalent The Metabolic Equivalent field represents the metabolic equivalent of the user. Present if bit 12 of Flags field is set to 1

––///

§Data Type

FieldElapsed Time
Typeuint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.time.second The Elapsed Time field represents the elapsed time of a training session since the training session has started. Present if bit 13 of Flags field is set to 1

––///

§Data Type

FieldRemaining Time
Typeuint16
Size0 or 2

§Description

Unit: org.bluetooth.unit.time.second The Remaining Time field represents the remaining time of a training session that has been selected. Present if bit 14 of Flags field is set to 1


more information