Difference between revisions of "IRRST Shared Memory"

From 3dbrew
Jump to navigation Jump to search
(Created page with "This is the shared-memory for "ir:rst". The additional New 3DS HID data is stored here. The structure of this is similar to the HID_Shared_Memory sections...")
 
Line 1: Line 1:
 
This is the shared-memory for [[IR_Services|"ir:rst"]]. The additional [[New 3DS]] HID data is stored here. The structure of this is similar to the [[HID_Shared_Memory]] sections.
 
This is the shared-memory for [[IR_Services|"ir:rst"]]. The additional [[New 3DS]] HID data is stored here. The structure of this is similar to the [[HID_Shared_Memory]] sections.
 +
 +
The total size of this shared-mem is 0x98-bytes.
  
 
=Offset 0x0=
 
=Offset 0x0=

Revision as of 04:16, 14 October 2014

This is the shared-memory for "ir:rst". The additional New 3DS HID data is stored here. The structure of this is similar to the HID_Shared_Memory sections.

The total size of this shared-mem is 0x98-bytes.

Offset 0x0

Relative offset Size Description
0x0 0x8 svcGetSystemTick tick-count output, for when IR 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 IR module.
0x10 0x4 Index in the following array which was last updated by IR module.
0x24 0x80 Array of 8 entries, where each entry(see below) is 0x10-bytes.

IR 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

Relative offset Size Description
0x0 0x2 16bit value (probably C-Stick)
0x2 0x2 16bit value (probably C-Stick)
0x4 0x4 PAD state
0x8 0x4 ?
0xC 0x4 ?