find_devices.cpp
Go to the documentation of this file.
1 
14 #include <iostream>
15 
16 #include "roch_ftdi/scanner.hpp"
17 
18 int main(int argc, char** argv)
19 {
20  FTDI_Scanner scanner;
21  int no_devices = scanner.scan();
22  if (no_devices < 0) {
23  std::cout << "not found!!!" << std::endl;
24  return -1;
25  }
26  std::cout << no_devices << " device(s) found." << std::endl;
27  return 0;
28 }
int main(int argc, char **argv)
int scan()
Definition: scanner.hpp:89
A Scanner class.
Definition: scanner.hpp:56
Scan the usb devices, and retrieve its serial id and else descriptions, especially for ftdi devices...


roch_ftdi
Author(s): Younghun Ju
autogenerated on Mon Jun 10 2019 14:41:09