forked from oesmith/gatt-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.bluetooth.characteristic.csc_measurement.xml
75 lines (75 loc) · 3.01 KB
/
org.bluetooth.characteristic.csc_measurement.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright 2011 Bluetooth SIG, Inc. All rights reserved.-->
<Characteristic xsi:noNamespaceSchemaLocation="http://schemas.bluetooth.org/Documents/characteristic.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="CSC Measurement"
type="org.bluetooth.characteristic.csc_measurement" uuid="2A5B"
last-modified="2012-04-12" approved="Yes">
<InformativeText>
<Summary>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.</Summary>
</InformativeText>
<Value>
<Field name="Flags">
<InformativeText>These flags define which data fields are
present in the Characteristic value.</InformativeText>
<Requirement>Mandatory</Requirement>
<Format>8bit</Format>
<BitField>
<Bit index="0" size="1"
name="Wheel Revolution Data Present">
<Enumerations>
<Enumeration key="0" value="False" />
<Enumeration key="1" value="True" requires="C1" />
</Enumerations>
</Bit>
<Bit index="1" size="1"
name="Crank Revolution Data Present">
<Enumerations>
<Enumeration key="0" value="False" />
<Enumeration key="1" value="True" requires="C2" />
</Enumerations>
</Bit>
<ReservedForFutureUse index="2" size="6" />
</BitField>
</Field>
<Field name="Cumulative Wheel Revolutions">
<InformativeText>C1: Field exists if the key of bit 0 of the
Flags field is set to 1.</InformativeText>
<Requirement>C1</Requirement>
<Format>uint32</Format>
<Unit>org.bluetooth.unit.unitless</Unit>
</Field>
<Field name="Last Wheel Event Time">
<InformativeText>Unit has a resolution of 1/1024s.
<br>C1: Field exists if the key of bit 0 of the Flags field
is set to 1.</br></InformativeText>
<Requirement>C1</Requirement>
<Format>uint16</Format>
<Unit>org.bluetooth.unit.time.second</Unit>
<BinaryExponent>-10</BinaryExponent>
</Field>
<Field name="Cumulative Crank Revolutions">
<InformativeText>C2: Field exists if the key of bit 1 of the
Flags field is set to 1.</InformativeText>
<Requirement>C2</Requirement>
<Format>uint16</Format>
<Unit>org.bluetooth.unit.unitless</Unit>
</Field>
<Field name="Last Crank Event Time">
<InformativeText>C2: Field exists if the key of bit 1 of the
Flags field is set to 1.
<br>Unit has a resolution of 1/1024s.</br></InformativeText>
<Requirement>C2</Requirement>
<Format>uint16</Format>
<Unit>org.bluetooth.unit.time.second</Unit>
<BinaryExponent>-10</BinaryExponent>
</Field>
</Value>
<Note>The fields in the above table are in the order of LSO to
MSO. Where LSO = Least Significant Octet and MSO = Most
Significant Octet.</Note>
</Characteristic>