INtime SDK Help
UsbFindFirstDevice
INtime SDK v6 > About INtime > Networking and I/O > USB > USB calls > UsbFindFirstDevice

Find the first available matching USB device.

int32_t UsbFindFirstDevice(

struct usbDeviceInfo * udi,

struct usbDeviceId * idtable,

struct usbDeviceId ** id );

Parameters

udi
A pointer to a usbDeviceInfo structure. This structure must first be initialized to zeros.
idtable
A pointer to usbDeviceId table. This table describes possible matches.
id
A pointer to a matching usbDeviceId table entry. The returned value is only valid if the function returns USB_ERR_NORMAL_COMPLETION .

Return Values

USB_ERR_NORMAL_COMPLETION Success. A device descriptor was returned.
USB_ERR_NO_STACK The USB stack is not ready.
USB_ERR_FAULT A fault occurred during the call.
USB_ERR_NO_DEVICE There are no devices.

Requirements

Versions Defined in Include Link to
INtime 5.0 intime/rt/include/usbif3.h usbif3.h usbif3.lib