Manu services: Difference between revisions
No edit summary |
No edit summary |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
= manu = | = manu = | ||
This is "nn::manu::IManu". | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || | | | 0 || [[#InitializeUsbTransferPipeFile|InitializeUsbTransferPipeFile]] | ||
|- | |- | ||
| 1 || | | | 1 || [[#IsFileExist|IsFileExist]] | ||
|- | |- | ||
| 2 || | | | 2 || [[#ReadFile|ReadFile]] | ||
|- | |- | ||
| 3 || | | | 3 || [[#WriteFile|WriteFile]] | ||
|- | |- | ||
| 4 || | | | 4 || [[#InitializeUsbTransferPipeRaw|InitializeUsbTransferPipeRaw]] | ||
|- | |- | ||
| 5 || | | | 5 || [[#ReadRaw|ReadRaw]] | ||
|- | |- | ||
| 6 || | | | 6 || [[#WriteRaw|WriteRaw]] | ||
|- | |- | ||
| 7 || [7.0.0+] | |||
|- | |||
| 8 || [14.0.0+] | |||
|} | |} | ||
This | All commands are wrappers for [[USB_services|usb:ds]] requests with USB configured as: | ||
VID: 0x057E (Nintendo Co., Ltd) | |||
PID: 0x3000 | |||
bcdDevice: 0x0100 (1.00) | |||
Manufacturer: "Nintendo" | |||
Product: "NintendoSdkDebugger" | |||
SerialNumber: "SerialNumber" | |||
[7.0.0+] USB is now configured as: | |||
VID: 0x057E (Nintendo Co., Ltd) | |||
PID: 0x3003 | |||
bcdDevice: 0x0100 (1.00) | |||
Manufacturer: "Nintendo" | |||
Product: "NintendoSdkManufacturing" | |||
SerialNumber: "SerialNumber" | |||
== InitializeUsbTransferPipeFile == | |||
Unofficial name. | |||
Takes an input u32. No output. | |||
Configures a transfer pipe over [[USB_services|usb:ds]] for file access mode. | |||
== IsFileExist == | |||
Unofficial name. | |||
Takes a type-0x9 input buffer containing a path string. Returns an output u64. | |||
Checks whether the specified file exists. | |||
This is "FsFile::Exists" in SystemInitializer. | |||
== ReadFile == | |||
Unofficial name. | |||
Takes a type-0x6 output buffer, a type-0x9 input buffer containing a path string and three u64s '''OutSize''', '''Offset''' and '''InSize'''. No output. | |||
Reads data from the specified file. | |||
== WriteFile == | |||
Unofficial name. | |||
Takes a type-0x5 output input, a type-0x9 input buffer containing a path string and three u64s '''OutSize''', '''Offset''' and '''InSize'''. No output. | |||
Writes data to the specified file. | |||
SystemInitializer also uses this as "FsFile::Create" with all input u64s set to 0. | |||
== InitializeUsbTransferPipeRaw == | |||
Unofficial name. | |||
Takes an input u32. No output. | |||
Configures a transfer pipe over [[USB_services|usb:ds]] for raw access mode. | |||
== ReadRaw == | |||
Unofficial name. | |||
Takes a type-0x6 output buffer and two u64s '''Offset''' and '''Size'''. No output. | |||
Reads raw data from the device. | |||
== WriteRaw == | |||
Unofficial name. | |||
Takes a type-0x5 input buffer and two u64s '''Offset''' and '''Size'''. No output. | |||
Writes raw data to the device. | |||
[[Category:Services]] |