HID Shared Memory: Difference between revisions
No edit summary |
|||
Line 281: | Line 281: | ||
=Offset 0x238= | =Offset 0x238= | ||
{| class="wikitable" border="1" | |||
|- | |||
! Relative offset | |||
! Size | |||
! Description | |||
|- | |||
| 0x0 | |||
| 0x8 | |||
| [[SVC|svcGetSystemTick]] tick-count output, for when HID module updates entry index0 in the below array. | |||
|- | |||
| 0x8 | |||
| 0x8 | |||
| Before the above tick-count field is updated, that value is copied into this field. Therefore, this contains the tick-count for the previous time that entry index0 in the below array was updated by HID module. | |||
|- | |||
| 0x10 | |||
| 0x4 | |||
| Index in the following array which was last updated by HID module. | |||
|- | |||
| 0x18 | |||
| 0x60 | |||
| Array containing 8 entries, see below. | |||
|} | |||
The size of this region is 0x78-bytes. Initially this contains 0xFF/0x00 bytes. | The size of this region is 0x78-bytes. Initially this contains 0xFF/0x00 bytes. | ||
HID module first updates index0, then index1, and so on. When updating the array when the index is already 7, the index is reset to 0. | |||
==Entry format== | |||
{| class="wikitable" border="1" | |||
|- | |||
! Relative offset | |||
! Size | |||
! Description | |||
|- | |||
| 0x0 | |||
| 0x2 | |||
| ? | |||
|- | |||
| 0x2 | |||
| 0x2 | |||
| ? | |||
|- | |||
| 0x4 | |||
| 0x2 | |||
| ? | |||
|- | |||
| 0x6 | |||
| 0x1 | |||
| ? | |||
|- | |||
| 0x7 | |||
| 0x1 | |||
| ? | |||
|- | |||
| 0x8 | |||
| 0x1 | |||
| ? | |||
|- | |||
| 0x9 | |||
| 0x1 | |||
| ? | |||
|- | |||
| 0xA | |||
| 0x2 | |||
| Padding, not written by HID module. | |||
|} |