ir:rst

The interface snx::ctr::irrst of irrst.swipc, the service ir:rst. 3 commands; the handlers are in src/3ds/services.

ir:rst, the New 3DS's ZL, ZR and C-stick (Azahar's ir_rst.cpp). WriteToTwoFields (0x9) has no handler there either

GetHandles irrst.swipc

command 0x1: request 0x00010000, response 0x00010043

Request

WordContents
0header 0x00010000: command 0x1, 0 normal words, 0 translated

Response

WordContents
0header 0x00010043: command 0x1, 1 normal word, 3 translated
1the result: 0 for success. A failed command's response is the header and the result alone
20x4000010: moved handles, 2
3memory: handle<move>
4event: handle<move>

Handler

uint32_t snx_ctr_irrst_GetHandles(SnxCtrIpc* c, uint32_t* a_memory, uint32_t* a_event)

irrst.c, line 87

Initialize irrst.swipc

command 0x2: request 0x00020080, response 0x00020040

Request

WordContents
0header 0x00020080: command 0x2, 2 normal words, 0 translated
1update_period: u32
2raw_c_stick: u32

Response

WordContents
0header 0x00020040: command 0x2, 1 normal word, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone

Handler

uint32_t snx_ctr_irrst_Initialize(SnxCtrIpc* c, uint32_t a_update_period, uint32_t a_raw_c_stick)

irrst.c, line 111

Shutdown irrst.swipc

command 0x3: request 0x00030000, response 0x00030040

Request

WordContents
0header 0x00030000: command 0x3, 0 normal words, 0 translated

Response

WordContents
0header 0x00030040: command 0x3, 1 normal word, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone

Handler

uint32_t snx_ctr_irrst_Shutdown(SnxCtrIpc* c)

irrst.c, line 127


Made from ScarletNX's Sail at 166ad3910f80. The schemas and the handlers are ScarletNX's (GPL-3.0-or-later).