-
Notifications
You must be signed in to change notification settings - Fork 12
feature: add 0x8060 Report Rate #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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. | ||
|
|
||
| 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
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can be removed.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Description in the next line. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No tab here.