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 operations
the USBIO driver supports through its programming interface. The I/O
Control requests are submitted to the driver using the Win32 function
DeviceIoControl
(see
). The
DeviceIoControl
function is defined as follows:
BOOL DeviceIoControl (
HANDLE hDevice,
// handle to device of interest
DWORD dwIoControlCode,
// control code of operation to perform
LPVOID lpInBuffer,
// pointer to buffer to supply input data
DWORD nInBufferSize,
// size of input buffer
LPVOID lpOutBuffer,
// pointer to buffer to receive output data
DWORD nOutBufferSize,
// size of output buffer
LPDWORD lpBytesReturned,
// pointer to variable to receive
// output byte count
LPOVERLAPPED lpOverlapped // pointer to overlapped 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
.