Difference between revisions of "USB services"

From Nintendo Switch Brew
Jump to navigation Jump to search
(manu uses this.)
Line 2: Line 2:
  
 
=usb:ds=
 
=usb:ds=
Not used by any retail system-title. Seems to be used during [[Factory Setup|factory setup]] by [[Manu Services|manu]].
+
Used for Switch<>PC USB comms, aka Switch-as-device.
 +
This service is used during [[Factory Setup|factory setup]] by [[Manu Services|manu]].
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name
 +
|-
 +
| 0 || BindComplex
 +
|-
 +
| 1 || BindClientProcess
 +
|-
 +
| 2 || GetDsInterface
 +
|-
 +
| 3 || GetStateChangeEvent
 +
|-
 +
| 4 ||
 +
|-
 +
| 5 || SetVidPidBcd
 +
|}
 +
 
 +
== IDsInterface ==
 +
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name
 +
|-
 +
| 0 || GetDsEndpoint
 +
|-
 +
| 1 || GetSetupEvent
 +
|-
 +
| 2 ||
 +
|-
 +
| 3 ||
 +
|-
 +
| 4 ||
 +
|-
 +
| 5 ||
 +
|-
 +
| 6 ||
 +
|-
 +
| 7 || GetCtrlInCompletionEvent
 +
|-
 +
| 8 ||
 +
|-
 +
| 9 || GetCtrlOutCompletionEvent
 +
|-
 +
| 10 ||
 +
|-
 +
| 11 ||
 +
|}
  
Used for Switch<>PC USB comms, aka Switch-as-device.
+
=== IDsEndpoint ===
 +
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name
 +
|-
 +
| 0 || PostBufferAsync
 +
|-
 +
| 1 ||
 +
|-
 +
| 2 ||
 +
|-
 +
| 3 || GetReportData
 +
|-
 +
| 4 ||
 +
|-
 +
| 5 ||
 +
|}
  
 
=usb:hs=
 
=usb:hs=

Revision as of 15:42, 1 September 2017

One symbol in USB-sysmodule is: "vtable for nn::usb::detail::UsbComplexTegra21x".

usb:ds

Used for Switch<>PC USB comms, aka Switch-as-device. This service is used during factory setup by manu.

Cmd Name
0 BindComplex
1 BindClientProcess
2 GetDsInterface
3 GetStateChangeEvent
4
5 SetVidPidBcd

IDsInterface

Cmd Name
0 GetDsEndpoint
1 GetSetupEvent
2
3
4
5
6
7 GetCtrlInCompletionEvent
8
9 GetCtrlOutCompletionEvent
10
11

IDsEndpoint

Cmd Name
0 PostBufferAsync
1
2
3 GetReportData
4
5

usb:hs

General USB devices usage, used by hid-sysmodule and bsdsockets-sysmodule.

usb:pd

Only system-titles with access to this are PTM and AM.

usb:pd:c

USB-sysmodule symbols for this refer to "Cradle", which is the Dock.

usb:pm

Presumably Power Management, only system-title using this is PTM.