Universal USB Device Driver (USBIO)
Programming Interface
USB08 Evaluation Board
Designer Reference Manual
MOTOROLA
Universal USB Device Driver (USBIO)
163
IOCTL_USBIO_CLASS_OR_VENDOR_OUT_REQUEST
The IOCTL_USBIO_CLASS_OR_VENDOR_OUT_REQUEST
operation is used to generate a class or vendor specific device request
with a data transfer direction from host to device.
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 contains the data to be transferred to the device
during the data phase of the control transfer. If the request has no data
phase 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
OUT token appears on the bus and the successful transfer is
acknowledged by an IN token with a zero length data packet from the
device. If no data phase is required an IN token appears on the bus and
the device acknowledges with a zero length data packet.