sub_find_devices

Top  Previous  Next
Got to SUB-20 page

Synopsis

sub_device sub_find_devices( sub_device first )

 

Function scans USB devices currently connected to the host looking for SUB-20 device(s). If parameter first is NULL function will initiate new search, otherwise it will continue to search from the place it finished during last call.

Return value

Function returns next found SUB-20 device descriptor or NULL if no more devices were found. Returned value can be used as parameter for sub_open. Device descriptor is not a device handle required by API calls. Handle is returned by sub_open.

Example

sub_device dev=0;

while( dev = sub_find_devices(dev) )

{

  /* Check device serial number */

}