Designer Reference Manual
USB08 Evaluation Board
162
Universal USB Device Driver (USBIO)
MOTOROLA
Universal USB Device Driver (USBIO)
IOCTL_USBIO_CLASS_OR_VENDOR_IN_REQUEST
The IOCTL_USBIO_CLASS_OR_VENDOR_IN_REQUEST operation
is used to generate a class or vendor specific device request with a data
transfer direction from device to host.
lpInBuffer
Pointer to a buffer that contains an
USBIO_CLASS_OR_VENDOR_REQUEST (
) data structure.
This data structure has to be filled completely by the caller.
nInBufferSize
Specifies the size, in bytes, of the buffer pointed to by
lpInBuffer
,
which has to be sizeof(USBIO_CLASS_OR_VENDOR_REQUEST) for
this operation.
lpOutBuffer
Pointer to a buffer that receives the data transferred from the device
during the data phase of the control transfer. If the request does not
return any data, this value can be NULL.
nOutBufferSize
Specifies the size, in bytes, of the buffer pointed to by
lpOutBuffer
. If
this value is set to zero then there is no data transfer phase.
Comments
A SETUP request appears on the default pipe (endpoint zero) of the
USB device with the given parameters. If a data phase is required an IN
token appears on the bus and the successful transfer is acknowledged
by an OUT token with a zero length data packet. If no data phase is
required an IN token appears on the bus with a zero length data packet
from the USB device for acknowledge.