USB HOST DRIVER V03 Freescale Semiconductor / Motorola, USB HOST DRIVER V03 Datasheet - Page 72

no-image

USB HOST DRIVER V03

Manufacturer Part Number
USB HOST DRIVER V03
Description
USB Host Driver v03
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
then, provided the Device is configured, the application can request a pipe object to open
on the Device using the
In the MOTUSB library each Client should provide the handle as a parameter for most
functions.
4.4. Error codes.
All functions in the Library except
USBGetErrorText
section). MOTUSB shares the same error code for a Driver and a library. For further
information on “MOTUSB error codes” in the “
errors codes for the Driver.
4.5. Notes about overlapped I/O.
The MOTUSB library provides a way to make an overlapped I/O for the Client
application. Every handle in the library is opened for overlapped I/O operation, since
each handle library maintains a variable of the structure. Most functions require a
variable of the OVERLAPPED structure as a parameter structure type. The caller can
specify NULL to this parameter. In this case, the library will use an internal variable and
blocks the calling thread until the request completes. If the caller specifies a non-zero
value for this parameter, it should use the
actual I/O request completes. This can be done in another thread context for example, so
that the main thread remains unblocked, and the Client can perform other operations
while waiting for the actual I/O to complete.
4.6. Functions Descriptions.
Function
USBGetDeviceList
USBReleaseDeviceList
USBOpenDevice
USBCloseDevice
USBOpenPipe
USBClosePipe
USBGetDeviceDesc
USBGetConfigDesc
M
Devices enumeration
Device, pipe connections
Descriptors
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
return MOTUSB Driver error codes (See MOTUSB Error codes
Table 4.1 Library functions summary.
USBOpenPipe
Handle
N/A
N/A
Device
Device
Device
Pipe
Device
Device
MOTUSB Library.
USBGetDeviceList, USBReleaseDeviceList
routine.
Retrieves all connected Devices for which installed
Frees Device list requested by prior function
Establishes connection to Device object
Closes connection to Device object
Establishes connection to bulk or interrupt pipe object
Closes connection to bulk or interrupt pipe object
Requests Device descriptor
Requests configuration descriptor
USBWaitIO
Returns
” statement specified, refer to the
function to determine where the
Description
, and
4-2

Related parts for USB HOST DRIVER V03