Difference between revisions of "Capmtp services"

From Nintendo Switch Brew
Jump to navigation Jump to search
m
Line 2: Line 2:
  
 
= capmtp =
 
= capmtp =
 +
This is "nn::capmtp::ICapmtpRootSession".
  
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 20: Line 21:
 
| 0 || ||
 
| 0 || ||
 
|-
 
|-
| 1 || ||
+
| 1 || || No input or output.
 
|-
 
|-
 
| 2 || || No input or output. Starts MTP command handler "nn.capmtp.CapmtpCommandLoop".
 
| 2 || || No input or output. Starts MTP command handler "nn.capmtp.CapmtpCommandLoop".
Line 28: Line 29:
 
| 4 || || No input. Returns true if "nn.capmtp.CapmtpCommandLoop" is running.
 
| 4 || || No input. Returns true if "nn.capmtp.CapmtpCommandLoop" is running.
 
|-
 
|-
| 5 || ||
+
| 5 || || No input. Returns readable event handle.
 
|-
 
|-
| 6 || ||
+
| 6 || || No input. Returns a boolean.
 
|-
 
|-
| 7 || ||
+
| 7 || || No input. Returns readable event handle.
 
|-
 
|-
| 8 || ||
+
| 8 || || No input or output.
 
|-
 
|-
 
|}
 
|}

Revision as of 04:39, 1 December 2020

This implements the MTP PTP protocol[1].

capmtp

This is "nn::capmtp::ICapmtpRootSession".

Cmd Name Notes
0 No input. Returns a session of #ICapmtpInterface

ICapmtpInterface

This is "nn::capmtp::ICapmtpInterface".

Cmd Name Notes
0
1 No input or output.
2 No input or output. Starts MTP command handler "nn.capmtp.CapmtpCommandLoop".
3 No input or output. Stops "nn.capmtp.CapmtpCommandLoop".
4 No input. Returns true if "nn.capmtp.CapmtpCommandLoop" is running.
5 No input. Returns readable event handle.
6 No input. Returns a boolean.
7 No input. Returns readable event handle.
8 No input or output.

Notes

Only operation calls 0x1001-0x100A are available.