Capmtp services: Difference between revisions

From Nintendo Switch Brew
Jump to navigation Jump to search
Behemoth (talk | contribs)
Add capmtp
 
Behemoth (talk | contribs)
No edit summary
Line 1: Line 1:
= capmtp =
= capmtp =
This implements the MTP PTP protocol[https://www.usb.org/document-library/media-transfer-protocol-v11-spec-and-mtp-v11-adopters-agreement].


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 5: Line 6:
! Cmd || Name || Notes
! Cmd || Name || Notes
|-
|-
| 0 || || No input or output. Returns a session of [[#ICapmtpInterface]]
| 0 || || No input. Returns a session of [[#ICapmtpInterface]]
|-
|-
|}
|}
Line 20: Line 21:
| 1 ||
| 1 ||
|-
|-
| 2 ||
| 2 || || No input or output. Starts MTP command handler "nn.capmtp.CapmtpCommandLoop".
|-
|-
| 3 ||
| 3 || || No input or output. Stops "nn.capmtp.CapmtpCommandLoop".
|-
|-
| 4 ||
| 4 || || No input. Returns true if "nn.capmtp.CapmtpCommandLoop" is running.
|-
|-
| 5 ||
| 5 ||
Line 35: Line 36:
|-
|-
|}
|}
== Notes ==
Only operation calls 0x1001-0x100A are available.

Revision as of 06:20, 1 December 2020

capmtp

This implements the MTP PTP protocol[1].

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

ICapmtpInterface

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

Cmd Name Notes
0
1
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
6
7
8

Notes

Only operation calls 0x1001-0x100A are available.