Skip to content

Commit 0c52ab9

Browse files
committed
feature: add 0x8060 Report Rate
1 parent 1a5ee1c commit 0c52ab9

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
************************
2+
Report Rate (``0x8060``)
3+
************************
4+
5+
Feature to change the device report rate
6+
7+
.. table:: Table 1 - Functions
8+
9+
== ====================== =========================================================
10+
ID Name Description
11+
== ====================== =========================================================
12+
0 ``GetReportRateList`` Retrieve the various report rates supported by the device
13+
1 ``GetReportRate`` Return the current report rate in ms
14+
2 ``SetReportRate`` Set the report rate in ms
15+
== ====================== =========================================================
16+
17+
18+
Functions
19+
=========
20+
21+
22+
``GetReportRateList``
23+
~~~~~~~~~~~~~~~~~~~~~
24+
25+
Retrieve the various report rates supported by the device.
26+
Standard report rates are 1, 2, 4 and 8ms.
27+
28+
Arguments
29+
- None
30+
31+
Returns
32+
- [8bits] reportRateList
33+
34+
+-----+-----+-----+-----+----+-----+-----+-----+
35+
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
36+
+=====+=====+=====+=====+====+=====+=====+=====+
37+
| 8ms | 7ms | 6ms | 5ms |4ms | 3ms | 2ms | 1ms |
38+
+-----+-----+-----+-----+----+-----+-----+-----+
39+
40+
0 = rate not supported, 1 supported
41+
42+
Errors
43+
- None
44+
45+
46+
``GetReportRate``
47+
~~~~~~~~~~~~~~~~~
48+
49+
Arguments
50+
- None
51+
52+
Returns
53+
- [8bits] reportRate The current report rate in ms.
54+
55+
Errors
56+
- None
57+
58+
59+
``SetReportRate``
60+
~~~~~~~~~~~~~~~~~
61+
62+
This function can be called only in host mode
63+
64+
Parameters
65+
- [8bits] reportRate The new report rate in ms
66+
67+
Returns
68+
- None
69+
70+
Errors
71+
- InvalidArgument (2) Invalid reportRate, not in host mode
72+

0 commit comments

Comments
 (0)