SeaBreeze
Public Member Functions
seabreeze::USBDiscovery Class Reference
Collaboration diagram for seabreeze::USBDiscovery:
Collaboration graph

Public Member Functions

std::vector< unsigned long > * probeDevices (int vendorID, int productID)
 
USBcreateUSBInterface (unsigned long deviceID)
 

Member Function Documentation

◆ probeDevices()

std::vector<unsigned long>* seabreeze::USBDiscovery::probeDevices ( int  vendorID,
int  productID 
)

Probes the bus for devices of the given VID and PID and returns a vector of identifiers. Note that these IDs are implementation- specific and are not necessarily portable between platforms. They are not guaranteed to be constant from one program execution to the next, though they should remain constant from one invocation of this method to the next within one execution if no devices change status.

◆ createUSBInterface()

USB* seabreeze::USBDiscovery::createUSBInterface ( unsigned long  deviceID)

Given an identifier from probeDevices(), create a USB interface to the device that can be used to open/write/read/close the device.


The documentation for this class was generated from the following file: