Changes

Jump to navigation Jump to search
941 bytes added ,  23:15, 20 August 2014
no edit summary
Line 175: Line 175:     
=Offset 0x108=
 
=Offset 0x108=
 +
{| 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
 +
| 0x6
 +
| Current accelerometer state entry.
 +
|-
 +
| 0x20
 +
| 0x30
 +
| Array containing 8 accelerometer entries.
 +
|}
 +
 
The size of this region is 0x50-bytes. This contains the accelerometer state.
 
The size of this region is 0x50-bytes. This contains the accelerometer state.
 +
 +
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
 +
| s16. X?
 +
|-
 +
| 0x2
 +
| 0x2
 +
| s16. Y?
 +
|-
 +
|-
 +
| 0x4
 +
| 0x2
 +
| s16. Z?
 +
|}
    
=Offset 0x158=
 
=Offset 0x158=

Navigation menu