mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
ce7d4d1ca6
As discussed in issue #2657, there are now more fields about the usb device information in android_usb_serial_device_descriptor. Additionally, the user-facing string now makes more sense: "vendor [<bus# as integer>:<dev# as integer>]" Where vendor is as reported by android, but shortened to 16 characters. Examples: FTDI [1:2] Silicon Labs [1:4] Signed-off-by: Christof Arnosti <charno@charno.ch> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
22 lines
610 B
C++
22 lines
610 B
C++
#ifndef SERIAL_USB_ANDROID_H
|
|
#define SERIAL_USB_ANDROID_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
/* USB Device Information */
|
|
struct android_usb_serial_device_descriptor {
|
|
QAndroidJniObject usbDevice; /* the UsbDevice */
|
|
std::string className; /* the driver class name. If empty, then "autodetect" */
|
|
std::string uiRepresentation; /* The string that can be used for the user interface. */
|
|
|
|
// Device information
|
|
std::string manufacturer;
|
|
std::string product;
|
|
uint16_t pid;
|
|
uint16_t vid;
|
|
};
|
|
|
|
std::vector<android_usb_serial_device_descriptor> serial_usb_android_get_devices(bool driverSelection);
|
|
|
|
#endif
|