2020-03-11 10:33:52 +00:00
|
|
|
#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. */
|
2020-03-14 16:59:14 +00:00
|
|
|
|
|
|
|
// Device information
|
2020-03-15 00:12:52 +00:00
|
|
|
std::string usbManufacturer;
|
|
|
|
std::string usbProduct;
|
2020-03-14 16:59:14 +00:00
|
|
|
std::string manufacturer;
|
|
|
|
std::string product;
|
|
|
|
uint16_t pid;
|
|
|
|
uint16_t vid;
|
2020-03-11 10:33:52 +00:00
|
|
|
};
|
|
|
|
|
2020-03-15 01:11:46 +00:00
|
|
|
std::vector<android_usb_serial_device_descriptor> serial_usb_android_get_devices();
|
|
|
|
android_usb_serial_device_descriptor getDescriptor(QAndroidJniObject usbDevice);
|
2020-03-11 10:33:52 +00:00
|
|
|
|
|
|
|
#endif
|