Changes

Jump to navigation Jump to search
9 bytes removed ,  15:18, 10 October 2017
no edit summary
Line 19: Line 19:  
| 3 || [[#GetStateChangeEvent]] ||  
 
| 3 || [[#GetStateChangeEvent]] ||  
 
|-
 
|-
| 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.
 +
 
 +
Returns the current state. Values:
 +
* 0: Initial state.
 +
* ...
    
== SetVidPidBcd ==
 
== SetVidPidBcd ==

Navigation menu