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

no-image

USB HOST DRIVER V03

Manufacturer Part Number
USB HOST DRIVER V03
Description
USB Host Driver v03
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
4.6.20. USBOpenDevice
Definition:
DWORD USBAPI
USBOpenDevice(
Parameters:
devList
The system Device list handle provided by
Index
The Device index in the list.
Device
Pointer to output Device handle for opened Device object.
Returns:
On success, routine returns
Comments:
The Client application should use this function to establish a connection to a Device
object. Typically this should start from
Then, for each Device index starting with zero index, it should attempt to open the
Device. If the application opens a handle, it can request the descriptor and then decide
whether it is a required Device. If it is not a required Device, the Client should close the
handle using the
incrementing the
this means that the
available. In this case the application should stop trying to open the Device and release
the Device list using
M
);
IN HDEVINFO devList,
IN int
OUT usb_t*
index
USBCloseDevice
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Device
index parameter
index,
USBReleaseDeviceList
parameter. If the function returns
USB_STATUS_SUCCESS
MOTUSB Library.
routine and continue attempting to open Devices, by
is too big and no Device with such an index is
USBGetDeviceList
USBGetDeviceList
.
, or else some MOTUSB error code
USB_STATUS_NO_SUCH_DEVICE
to acquire the Device list.
function.
4-27
,

Related parts for USB HOST DRIVER V03