Function rcg::getDevice(const char *, uint64_t)

Function Documentation

std::shared_ptr<Device> rcg::getDevice(const char *devid, uint64_t timeout)

Searches across all transport layers and interfaces for a device. This method accepts optionally specifying the interface ID as prefix, followed by ‘:’, i.e. “[<interfaca_id>[:]]<device_id>”. If the interface ID is not given, then all interfaces are sought and the first device with the given ID returned.

Parameters:
  • devidDevice ID.

  • timeout – Timeout in ms for discovery of devices on each interface. The function without this parameter uses a timeout of 1000 ms.

Returns:

Device or null pointer.