Difference between revisions of "83Plus:Software:usb8x/Asm Interface/GetIDs"

From WikiTI
Jump to: navigation, search
 
m (link *)
Line 22: Line 22:
  
 
== See Also ==
 
== See Also ==
[[../GetClass|GetClass]] - Gets class information from device
+
* [[../GetClass|GetClass]] - Gets class information from device

Revision as of 21:40, 15 July 2006

Synopsis

Name: GetIDs

Minimum usb8x version: 0.05

Gets version, vendor ID, and product ID from the connected device.

Inputs

  • HL: Address of temporary buffer for device descriptor.

Outputs

  • BC: Version
  • DE: Product ID
  • HL: Vendor ID
  • NC: Success

Destroys

  • AF

Notes

All other routines, aside from GetVersion and IsDeviceConnected, require the driver to be initialized. Call this routine before attempting to use USB devices or the driver will crash.

See Also

  • [[../GetClass|GetClass]] - Gets class information from device