INtime SDK Help
UsbFindNextDevice
INtime SDK v7.1 > About INtime > Networking and I/O > USB > USB calls > UsbFindNextDevice

Find the next available matching USB device.


int32_t UsbFindNextDevice(
struct usbDeviceInfo * udi,
struct usbDeviceId * idtable,
struct usbDeviceId ** id );

Parameters

udi
A pointer to a usbDeviceInfo structure. This structure must first be initialized by calling UsbFindFIrstDevice.
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 more devices.

Requirements

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