83Plus:Software:usb8x/Asm Interface/ReadDescriptor

From WikiTI
Revision as of 20:41, 15 July 2006 by Dan Englender (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Name: ReadDescriptor

Minimum usb8x version: 0.05

Reads a descriptor from the connected device

Inputs

  • HL: Address of buffer to store descriptor
  • B: Descriptor type
  • C: Index (for string descriptors)

Outputs

  • NC: Success

Destroys

  • AF, BC, DE, HL

Notes

Descriptor types, like descConfig, descDevice, and descString; are equated in usb8x.inc.

See Also

[[../FindDescriptor|FindDescriptor]] - Finds a descriptor in a descriptor list