Universal USB Device Driver (USBIO)
Programming Interface
USB08 Evaluation Board
Designer Reference Manual
MOTOROLA
Universal USB Device Driver (USBIO)
151
IOCTL_USBIO_GET_DESCRIPTOR
The IOCTL_USBIO_GET_DESCRIPTOR operation requests a specific
descriptor from the device.
lpInBuffer
Pointer to a buffer that contains an USBIO_DESCRIPTOR_REQUEST
(
) data structure. This data structure has to be filled completely
by the caller.
nInBufferSize
Specifies the size, in bytes, of the buffer point to by
lpInBuffer
, which
has to be sizeof(USBIO_DESCRIPTOR_REQUEST) for this operation.
lpOutBuffer
Pointer to a buffer that will receive the descriptor data.
nOutBufferSize
Specifies the size in bytes, of the buffer pointed to be
lpOutBuffer
.
Comments
The buffer that is passed to this function in
lpOutBuffer
should be
large enough to hold the requested descriptor, otherwise only a part of
the descriptor will be returned. The size of the output buffer should be a
multiple of the packet size of the default pipe (endpoint zero).