
Designer Reference Manual USB08 Evaluation Board
150 Universal USB Device Driver (USBIO) MOTOROLA
Universal USB Device Driver (USBIO)
E.5.2 Control Requests
This section provides a detailed description of the I/O Control operatio ns
the USBIO driver supports through its programming interface. The I/O
Control requests are submitted to the driver using the Win32 function
DeviceIoControl (see E.4 Architecture). The DeviceIoControl
function is defined as follows:
BOOL DeviceIoControl (
HANDLE hDevice, // handle to device of interest
DWORD dwIoControlCode, // control code of oper ation to perform
LPVOID lpInBuffer, // pointer to buffer to supply input data
DWORD nInBufferSize, // size of input buffer
LPVOID lpOutBuff er, // pointer to buffer to receiv e output data
DWORD nOutBufferSize, // size of output buffe r
LPDWORD lpBytesReturned , // pointer to variable to receive
// output byte count
LPOVERLAPPED lpOverlapp ed // pointer to overl apped structure
// for asynchronous operation
);
Refer to the Microsoft Platform SDK documentation for more
information.
The following sections describe the I/O Control codes that may be
passed to the DeviceIoControl function as dwIoControlCode and
the parameters required for lpInBuffer, nInBufferSize,
lpOutBuffer, nOutBufferSize.