QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
AndroidSerialAccess.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QString>
4
8// Whether the list has, after the USB ports, the serial device nodes too: the /dev/tty* that some devices, such
9// as rooted ones, let an app open (POSIX). The app sets it from its androidUsePosixSerial setting, at startup and
10// whenever the setting changes. How a port opens depends on its name alone.
11void setUsePosixSerial(bool use);
12bool usePosixSerial();
16bool hasUsbPermission(const QString& portName);
22bool requestUsbPermission(const QString& portName);
24bool isUsbPermissionDenied(const QString& portName);
25} // namespace AndroidSerialAccess
bool isUsbPermissionDenied(const QString &portName)
Whether the port is a USB one whose device the user has denied QGC, and has not been asked for again ...
bool hasPosixSerialPorts()
Whether the device has a serial port node that QGC may read and write.
void setUsePosixSerial(bool use)
bool requestUsbPermission(const QString &portName)
bool hasUsbPermission(const QString &portName)
Whether the port is a USB one whose device QGC may open.