Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions hidpp20/features/0x8060-ReportRate.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
************************
Report Rate (``0x8060``)
************************

Feature to change the device report rate

.. table:: Table 1 - Functions
:widths: auto

== ====================== =========================================================
ID Name Description
== ====================== =========================================================
0 ``GetReportRateList`` Retrieve the various report rates supported by the device
1 ``GetReportRate`` Return the current report rate in ms
2 ``SetReportRate`` Set the report rate in ms
== ====================== =========================================================


Functions
=========


``GetReportRateList``
~~~~~~~~~~~~~~~~~~~~~

Retrieve the various report rates supported by the device.
Standard report rates are 1, 2, 4 and 8ms.
Comment on lines +26 to +27
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tab here.


Arguments
- None

Returns
- reportRateList

.. table::
:widths: auto

+------+----------------+-----+-----+-----+-----+----+-----+-----+-----+
| byte | bit |
+------+----------------+-----+-----+-----+-----+----+-----+-----+-----+
| | field | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+======+================+=====+=====+=====+=====+====+=====+=====+=====+
| 0 | reportRateList | 8ms | 7ms | 6ms | 5ms |4ms | 3ms | 2ms | 1ms |
+------+----------------+-----+-----+-----+-----+----+-----+-----+-----+

0 = rate not supported, 1 supported

``GetReportRate``
~~~~~~~~~~~~~~~~~

Arguments
- None
Comment on lines +50 to +52
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no place else that says what the arguments are, now that this information is removed from the initial section, so I think that this should stay.


Returns
- reportRate
The current report rate in ms.

.. table::
:widths: auto

+------+----------------+-----+-----+-----+-----+----+-----+-----+-----+
| byte | bit |
+------+----------------+-----+-----+-----+-----+----+-----+-----+-----+
| | field | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+======+================+=====+=====+=====+=====+====+=====+=====+=====+
| 0 | reportRate | |
+------+----------------+-----+-----+-----+-----+----+-----+-----+-----+


``SetReportRate``
~~~~~~~~~~~~~~~~~

This function can be called only in host mode

Parameters
- reportRate
The new report rate in ms


.. table::
:widths: auto

+------+----------------+-----+-----+-----+-----+----+-----+-----+-----+
| byte | bit |
+------+----------------+-----+-----+-----+-----+----+-----+-----+-----+
| | field | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+======+================+=====+=====+=====+=====+====+=====+=====+=====+
| 0 | reportRate | |
+------+----------------+-----+-----+-----+-----+----+-----+-----+-----+

Returns
- None

Errors
- InvalidArgument (2) Invalid reportRate, not in host mode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description in the next line.