|
| 1 | +************************ |
| 2 | +Report Rate (``0x8060``) |
| 3 | +************************ |
| 4 | + |
| 5 | +Feature to change the device report rate |
| 6 | + |
| 7 | +.. table:: Table 1 - Functions |
| 8 | + :widths: auto |
| 9 | + |
| 10 | + == ====================== ========================================================= |
| 11 | + ID Name Description |
| 12 | + == ====================== ========================================================= |
| 13 | + 0 ``GetReportRateList`` Retrieve the various report rates supported by the device |
| 14 | + 1 ``GetReportRate`` Return the current report rate in ms |
| 15 | + 2 ``SetReportRate`` Set the report rate in ms |
| 16 | + == ====================== ========================================================= |
| 17 | + |
| 18 | + |
| 19 | +Functions |
| 20 | +========= |
| 21 | + |
| 22 | + |
| 23 | +``GetReportRateList`` |
| 24 | +~~~~~~~~~~~~~~~~~~~~~ |
| 25 | + |
| 26 | + Retrieve the various report rates supported by the device. |
| 27 | + Standard report rates are 1, 2, 4 and 8ms. |
| 28 | + |
| 29 | +Arguments |
| 30 | + - None |
| 31 | + |
| 32 | +Returns |
| 33 | + - reportRateList |
| 34 | + |
| 35 | + .. table:: |
| 36 | + :widths: auto |
| 37 | + |
| 38 | + +------+----------------+-----+-----+-----+-----+----+-----+-----+-----+ |
| 39 | + | byte | bit | |
| 40 | + +------+----------------+-----+-----+-----+-----+----+-----+-----+-----+ |
| 41 | + | | field | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| 42 | + +======+================+=====+=====+=====+=====+====+=====+=====+=====+ |
| 43 | + | 0 | reportRateList | 8ms | 7ms | 6ms | 5ms |4ms | 3ms | 2ms | 1ms | |
| 44 | + +------+----------------+-----+-----+-----+-----+----+-----+-----+-----+ |
| 45 | + |
| 46 | + 0 = rate not supported, 1 supported |
| 47 | + |
| 48 | +``GetReportRate`` |
| 49 | +~~~~~~~~~~~~~~~~~ |
| 50 | + |
| 51 | +Arguments |
| 52 | + - None |
| 53 | + |
| 54 | +Returns |
| 55 | + - reportRate |
| 56 | + The current report rate in ms. |
| 57 | + |
| 58 | + .. table:: |
| 59 | + :widths: auto |
| 60 | + |
| 61 | + +------+----------------+-----+-----+-----+-----+----+-----+-----+-----+ |
| 62 | + | byte | bit | |
| 63 | + +------+----------------+-----+-----+-----+-----+----+-----+-----+-----+ |
| 64 | + | | field | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| 65 | + +======+================+=====+=====+=====+=====+====+=====+=====+=====+ |
| 66 | + | 0 | reportRate | | |
| 67 | + +------+----------------+-----+-----+-----+-----+----+-----+-----+-----+ |
| 68 | + |
| 69 | + |
| 70 | +``SetReportRate`` |
| 71 | +~~~~~~~~~~~~~~~~~ |
| 72 | + |
| 73 | + This function can be called only in host mode |
| 74 | + |
| 75 | +Parameters |
| 76 | + - reportRate |
| 77 | + The new report rate in ms |
| 78 | + |
| 79 | + |
| 80 | + .. table:: |
| 81 | + :widths: auto |
| 82 | + |
| 83 | + +------+----------------+-----+-----+-----+-----+----+-----+-----+-----+ |
| 84 | + | byte | bit | |
| 85 | + +------+----------------+-----+-----+-----+-----+----+-----+-----+-----+ |
| 86 | + | | field | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| 87 | + +======+================+=====+=====+=====+=====+====+=====+=====+=====+ |
| 88 | + | 0 | reportRate | | |
| 89 | + +------+----------------+-----+-----+-----+-----+----+-----+-----+-----+ |
| 90 | + |
| 91 | +Returns |
| 92 | + - None |
| 93 | + |
| 94 | +Errors |
| 95 | + - InvalidArgument (2) Invalid reportRate, not in host mode |
| 96 | + |
0 commit comments