By entering this site you need to consent to the use of cookies and their functional use according to this privacy policy. Cookies help us to provide the functional services of the website. Kindly read the below message of use and consent to the use.
The following cookies are stored and shared when accessing this website:
- Internal cookies for the MediaWiki site. This is used for user authentication and article modifications.
- Third-party cookies from Google providing services for Google AdSense and Google Analytics
We will never use data collected outside of the above scope.
| 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.