APT:S

The interface snx::ctr::apt_wire of apt.swipc, the service APT:S. 10 commands; the handlers are in src/3ds/services.

Scalar/owned-handle commands. PreloadLibraryApplet and GetAppletInfo, like the parameter commands' static buffers and objects (Send, Receive, Glance, StartLibraryApplet), are checked in apt.c.

GetLockHandle apt.swipc

command 0x1: request 0x00010040, response 0x000100c2

Request

WordContents
0header 0x00010040: command 0x1, 1 normal word, 0 translated
1attributes: u32

Response

WordContents
0header 0x000100c2: command 0x1, 3 normal words, 2 translated
1the result: 0 for success. A failed command's response is the header and the result alone
2corrected: u32
3state: u32
40x0: copied handle, 1
5lock: handle<copy>

Handler

uint32_t snx_ctr_apt_wire_GetLockHandle(SnxCtrIpc* c, uint32_t a_attributes, uint32_t* a_corrected, uint32_t* a_state, uint32_t* a_lock)

apt.c, line 27

Initialize apt.swipc

command 0x2: request 0x00020080, response 0x00020043

Request

WordContents
0header 0x00020080: command 0x2, 2 normal words, 0 translated
1app_id: u32
2attributes: u32

Response

WordContents
0header 0x00020043: command 0x2, 1 normal word, 3 translated
1the result: 0 for success. A failed command's response is the header and the result alone
20x4000000: copied handles, 2
3notification: handle<copy>
4parameter: handle<copy>

Handler

uint32_t snx_ctr_apt_wire_Initialize(SnxCtrIpc* c, uint32_t a_app_id, uint32_t a_attributes, uint32_t* a_notification, uint32_t* a_parameter)

apt.c, line 50

Enable apt.swipc

command 0x3: request 0x00030040, response 0x00030040

Request

WordContents
0header 0x00030040: command 0x3, 1 normal word, 0 translated
1attributes: u32

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_apt_wire_Enable(SnxCtrIpc* c, uint32_t a_attributes)

apt.c, line 72

IsRegistered apt.swipc

command 0x9: request 0x00090040, response 0x00090080

Request

WordContents
0header 0x00090040: command 0x9, 1 normal word, 0 translated
1app_id: u32

Response

WordContents
0header 0x00090080: command 0x9, 2 normal words, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone
2registered: u32

Handler

uint32_t snx_ctr_apt_wire_IsRegistered(SnxCtrIpc* c, uint32_t a_app_id, uint32_t* a_registered)

apt.c, line 104

CancelParameter apt.swipc

command 0xf: request 0x000f0100, response 0x000f0080

Request

WordContents
0header 0x000f0100: command 0xf, 4 normal words, 0 translated
1check_sender: u32
2sender: u32
3check_receiver: u32
4receiver: u32

Response

WordContents
0header 0x000f0080: command 0xf, 2 normal words, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone
2cancelled: u32

Handler

uint32_t snx_ctr_apt_wire_CancelParameter(SnxCtrIpc* c, uint32_t a_check_sender, uint32_t a_sender, uint32_t a_check_receiver, uint32_t a_receiver, uint32_t* a_cancelled)

apt.c, line 115

PrepareToStartLibraryApplet apt.swipc

command 0x18: request 0x00180040, response 0x00180040

Request

WordContents
0header 0x00180040: command 0x18, 1 normal word, 0 translated
1app_id: u32

Response

WordContents
0header 0x00180040: command 0x18, 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_apt_wire_PrepareToStartLibraryApplet(SnxCtrIpc* c, uint32_t a_app_id)

apt.c, line 126

NotifyToWait apt.swipc

command 0x43: request 0x00430040, response 0x00430040

Request

WordContents
0header 0x00430040: command 0x43, 1 normal word, 0 translated
1app_id: u32

Response

WordContents
0header 0x00430040: command 0x43, 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_apt_wire_NotifyToWait(SnxCtrIpc* c, uint32_t a_app_id)

apt.c, line 81

GetSharedFont apt.swipc

command 0x44: request 0x00440000, response 0x00440082

Request

WordContents
0header 0x00440000: command 0x44, 0 normal words, 0 translated

Response

WordContents
0header 0x00440082: command 0x44, 2 normal words, 2 translated
1the result: 0 for success. A failed command's response is the header and the result alone
2address: u32
30x0: copied handle, 1
4font: handle<copy>

Handler

uint32_t snx_ctr_apt_wire_GetSharedFont(SnxCtrIpc* c, uint32_t* a_address, uint32_t* a_font)

apt.c, line 187

GetTargetPlatform apt.swipc

command 0x101: request 0x01010000, response 0x01010080

Request

WordContents
0header 0x01010000: command 0x101, 0 normal words, 0 translated

Response

WordContents
0header 0x01010080: command 0x101, 2 normal words, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone
2platform: u32

Handler

uint32_t snx_ctr_apt_wire_GetTargetPlatform(SnxCtrIpc* c, uint32_t* a_platform)

apt.c, line 191

IsNew3DS apt.swipc

command 0x102: request 0x01020000, response 0x01020080

Request

WordContents
0header 0x01020000: command 0x102, 0 normal words, 0 translated

Response

WordContents
0header 0x01020080: command 0x102, 2 normal words, 0 translated
1the result: 0 for success. A failed command's response is the header and the result alone
2is_new: u32

Handler

uint32_t snx_ctr_apt_wire_IsNew3DS(SnxCtrIpc* c, uint32_t* a_is_new)

apt.c, line 195


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