| 4 || || No input. Returns an output u32. Returns an error when [[#BindDevice]] wasn't used.
+
| 4 || [[#GetState]] ||
|-
|-
| 5 || [[#SetVidPidBcd]] ||
| 5 || [[#SetVidPidBcd]] ||
Line 152:
Line 152:
== GetStateChangeEvent ==
== GetStateChangeEvent ==
−
Returns an event handle for state changes. Signalled when Switch<->host USB comms change between started/stopped. USB cable connected/disconnected while at least 1 interface was enabled, or interface enabled/disabled while the USB cable was connected which then caused USB-comms state to change.
+
Returns an event handle for when the state returned by [[#GetState]] changes. Signalled when Switch<->host USB comms change between started/stopped. USB cable connected/disconnected while at least 1 interface was enabled, or interface enabled/disabled while the USB cable was connected which then caused USB-comms state to change.
−
This is signalled before the endpoints are actually ready for data-transfer - there's currently no known way to properly check for that.
+
== GetState ==
+
No input. Returns an output u32. Returns an error when [[#BindDevice]] wasn't used.