Changes

516 bytes added ,  22:33, 11 December 2020
add usb states enum
Line 195: Line 195:  
No input. Returns an output u32. Returns an error when [[#BindDevice]] wasn't used.
 
No input. Returns an output u32. Returns an error when [[#BindDevice]] wasn't used.
   −
Returns the current state. Values:
+
Returns the current state.
* 0: Initial state.
+
 
* 6: Device init starting.
+
{| class="wikitable" border="1"
* 3: {Initialization}, previous state is 6.
+
|-
* 4: {Initialization}, previous state is 3.
+
! Value || Name || Description
* 5: Initialization done, data-transfer is now available.
+
|-
 +
| 0 || Detached || Device is not attached to USB.
 +
|-
 +
| 1 || Attached || Device is attached, but is not powered.
 +
|-
 +
| 2 || Powered || Device is attached and powered, but has not been reset.
 +
|-
 +
| 3 || Default || Device is attached, powered, and has been reset, but does not have an address.
 +
|-
 +
| 4 || Address || Device is attached, powered, has been reset, has an address, but is not configured.
 +
|-
 +
| 5 || Configured || Device is attached, powered, has been reset, has an address, configured, and may be used.
 +
|-
 +
| 6 || Suspended || Device is attached and powered, but has not seen bus activity for 3ms. Device is suspended and cannot be used.
 +
|-
 +
|}
    
== SetVidPidBcd ==
 
== SetVidPidBcd ==
73

edits