USB services: Difference between revisions
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. | Returns the current state. | ||
{| class="wikitable" border="1" | |||
|- | |||
! Value || Name || Description | |||
|- | |||
| 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 == |