src
find_devices.cpp
Go to the documentation of this file.
1
14
#include <iostream>
15
16
#include "
kobuki_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
}
FTDI_Scanner::scan
int scan()
Definition:
scanner.hpp:93
FTDI_Scanner
A Scanner class.
Definition:
scanner.hpp:56
scanner.hpp
Scan the usb devices, and retrieve its serial id and else descriptions, especially for ftdi devices.
main
int main(int, char **)
Definition:
find_devices.cpp:18
kobuki_ftdi
Author(s): Younghun Ju
autogenerated on Wed Mar 2 2022 00:26:19