|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <qserialport_p.h>
Inheritance diagram for QSerialPortPrivate:
Collaboration diagram for QSerialPortPrivate:Public Member Functions | |
| QSerialPortPrivate () | |
| bool | open (QIODevice::OpenMode mode) |
| void | close () |
| bool | flush () |
| bool | clear (QSerialPort::Directions directions) |
| QSerialPort::PinoutSignals | pinoutSignals () |
| bool | setDataTerminalReady (bool set) |
| bool | setRequestToSend (bool set) |
| bool | setBaudRate () |
| bool | setBaudRate (qint32 baudRate, QSerialPort::Directions directions) |
| bool | setDataBits (QSerialPort::DataBits dataBits) |
| bool | setParity (QSerialPort::Parity parity) |
| bool | setStopBits (QSerialPort::StopBits stopBits) |
| bool | setFlowControl (QSerialPort::FlowControl flowControl) |
| bool | setBreakEnabled (bool set) |
| void | setError (const QSerialPortErrorInfo &errorInfo) |
| void | setBindableError (QSerialPort::SerialPortError error_) |
| Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSerialPortPrivate, QSerialPort::SerialPortError, error, &QSerialPortPrivate::setBindableError, QSerialPort::NoError) bool setBindableDataBits(QSerialPort | |
| Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSerialPortPrivate, QSerialPort::DataBits, dataBits, &QSerialPortPrivate::setBindableDataBits, QSerialPort::Data8) bool setBindableParity(QSerialPort | |
| Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSerialPortPrivate, QSerialPort::Parity, parity, &QSerialPortPrivate::setBindableParity, QSerialPort::NoParity) bool setBindableStopBits(QSerialPort | |
| Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSerialPortPrivate, QSerialPort::StopBits, stopBits, &QSerialPortPrivate::setBindableStopBits, QSerialPort::OneStop) bool setBindableFlowControl(QSerialPort | |
| Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSerialPortPrivate, QSerialPort::FlowControl, flowControl, &QSerialPortPrivate::setBindableFlowControl, QSerialPort::NoFlowControl) bool setBindableBreakEnabled(bool isBreakEnabled_) | |
| Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS (QSerialPortPrivate, bool, isBreakEnabled, &QSerialPortPrivate::setBindableBreakEnabled, false) bool waitForReadyRead(int msec) | |
| bool | waitForBytesWritten (int msec) |
| bool | startAsyncRead () |
| qint64 | writeData (const char *data, qint64 maxSize) |
| void | newDataArrived (const char *bytes, int length) |
| void | exceptionArrived (const QString &ex) |
Static Public Member Functions | |
| static QList< qint32 > | standardBaudRates () |
Public Attributes | |
| QString | systemLocation |
| qint32 | inputBaudRate = QSerialPort::Baud9600 |
| qint32 | outputBaudRate = QSerialPort::Baud9600 |
| qint64 | readBufferMaxSize = 0 |
| int | descriptor = -1 |
Definition at line 56 of file qserialport_p.h.
| QSerialPortPrivate::QSerialPortPrivate | ( | ) |
Definition at line 51 of file qserialport.cpp.
References QSERIALPORT_BUFFERSIZE.
| bool QSerialPortPrivate::clear | ( | QSerialPort::Directions | directions | ) |
Definition at line 379 of file qserialport_android.cpp.
References QSerialPort::Input, QSerialPort::Output, AndroidSerial::purgeBuffers(), setError(), and QSerialPort::UnknownError.
| void QSerialPortPrivate::close | ( | ) |
Definition at line 66 of file qserialport_android.cpp.
References AndroidSerial::close(), descriptor, INVALID_DEVICE_ID, setError(), systemLocation, QSerialPort::UnknownError, and AndroidSerial::unregisterPointer().
| void QSerialPortPrivate::exceptionArrived | ( | const QString & | ex | ) |
Definition at line 85 of file qserialport_android.cpp.
References setError(), and QSerialPort::UnknownError.
| bool QSerialPortPrivate::flush | ( | ) |
Definition at line 368 of file qserialport_android.cpp.
References setError(), and QSerialPort::UnknownError.
| void QSerialPortPrivate::newDataArrived | ( | const char * | bytes, |
| int | length | ||
| ) |
Definition at line 182 of file qserialport_android.cpp.
References readBufferMaxSize.
Referenced by AndroidSerial::jniDeviceNewData().
| QT_BEGIN_NAMESPACE bool QSerialPortPrivate::open | ( | QIODevice::OpenMode | mode | ) |
Definition at line 14 of file qserialport_android.cpp.
References QSerialPort::AllDirections, QSerialPort::DeviceNotFoundError, AndroidSerial::getDeviceHandle(), INVALID_DEVICE_ID, AndroidSerial::open(), QSerialPort::OpenError, AndroidSerial::registerPointer(), and AndroidSerial::unregisterPointer().
| QSerialPort::PinoutSignals QSerialPortPrivate::pinoutSignals | ( | ) |
Definition at line 393 of file qserialport_android.cpp.
References AndroidSerial::getControlLines().
| QSerialPortPrivate::Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS | ( | QSerialPortPrivate | , |
| bool | , | ||
| isBreakEnabled | , | ||
| &QSerialPortPrivate::setBindableBreakEnabled | , | ||
| false | |||
| ) |
|
inline |
Definition at line 96 of file qserialport_p.h.
|
inline |
Definition at line 117 of file qserialport_p.h.
|
inline |
Definition at line 103 of file qserialport_p.h.
|
inline |
Definition at line 89 of file qserialport_p.h.
|
inline |
Definition at line 110 of file qserialport_p.h.
| bool QSerialPortPrivate::setBaudRate | ( | ) |
Definition at line 434 of file qserialport_android.cpp.
References QSerialPort::AllDirections, inputBaudRate, and setBaudRate().
Referenced by setBaudRate().
| bool QSerialPortPrivate::setBaudRate | ( | qint32 | baudRate, |
| QSerialPort::Directions | directions | ||
| ) |
Definition at line 439 of file qserialport_android.cpp.
References QSerialPort::AllDirections, inputBaudRate, outputBaudRate, setError(), QSerialPort::UnknownError, and QSerialPort::UnsupportedOperationError.
|
inline |
Definition at line 85 of file qserialport_p.h.
References setError().
| bool QSerialPortPrivate::setBreakEnabled | ( | bool | set | ) |
Definition at line 576 of file qserialport_android.cpp.
References AndroidSerial::setBreak(), setError(), and QSerialPort::UnknownError.
| bool QSerialPortPrivate::setDataBits | ( | QSerialPort::DataBits | dataBits | ) |
Definition at line 483 of file qserialport_android.cpp.
References inputBaudRate, setError(), and QSerialPort::UnknownError.
| bool QSerialPortPrivate::setDataTerminalReady | ( | bool | set | ) |
Definition at line 398 of file qserialport_android.cpp.
References AndroidSerial::setDataTerminalReady(), setError(), and QSerialPort::UnknownError.
| void QSerialPortPrivate::setError | ( | const QSerialPortErrorInfo & | errorInfo | ) |
Definition at line 57 of file qserialport.cpp.
References error, QSerialPortErrorInfo::errorCode, and QSerialPortErrorInfo::errorString.
Referenced by clear(), close(), exceptionArrived(), flush(), setBaudRate(), setBindableError(), setBreakEnabled(), setDataBits(), setDataTerminalReady(), setFlowControl(), setParity(), setRequestToSend(), setStopBits(), startAsyncRead(), waitForBytesWritten(), and writeData().
| bool QSerialPortPrivate::setFlowControl | ( | QSerialPort::FlowControl | flowControl | ) |
Definition at line 565 of file qserialport_android.cpp.
References setError(), AndroidSerial::setFlowControl(), and QSerialPort::UnknownError.
| bool QSerialPortPrivate::setParity | ( | QSerialPort::Parity | parity | ) |
Definition at line 513 of file qserialport_android.cpp.
References inputBaudRate, setError(), and QSerialPort::UnknownError.
| bool QSerialPortPrivate::setRequestToSend | ( | bool | set | ) |
Definition at line 409 of file qserialport_android.cpp.
References setError(), AndroidSerial::setRequestToSend(), and QSerialPort::UnknownError.
| bool QSerialPortPrivate::setStopBits | ( | QSerialPort::StopBits | stopBits | ) |
Definition at line 539 of file qserialport_android.cpp.
References inputBaudRate, setError(), and QSerialPort::UnknownError.
|
static |
Definition at line 592 of file qserialport_android.cpp.
References kStandardBaudRates.
Referenced by QSerialPortInfo::standardBaudRates().
| bool QSerialPortPrivate::startAsyncRead | ( | ) |
Definition at line 91 of file qserialport_android.cpp.
References AndroidSerial::readThreadRunning(), setError(), AndroidSerial::startReadThread(), and QSerialPort::UnknownError.
| bool QSerialPortPrivate::waitForBytesWritten | ( | int | msec | ) |
Definition at line 302 of file qserialport_android.cpp.
References setError(), and QSerialPort::TimeoutError.
| qint64 QSerialPortPrivate::writeData | ( | const char * | data, |
| qint64 | maxSize | ||
| ) |
Definition at line 357 of file qserialport_android.cpp.
References setError(), and QSerialPort::WriteError.
| int QSerialPortPrivate::descriptor = -1 |
Definition at line 143 of file qserialport_p.h.
Referenced by close().
| qint32 QSerialPortPrivate::inputBaudRate = QSerialPort::Baud9600 |
Definition at line 140 of file qserialport_p.h.
Referenced by setBaudRate(), setBaudRate(), setDataBits(), setParity(), and setStopBits().
| qint32 QSerialPortPrivate::outputBaudRate = QSerialPort::Baud9600 |
Definition at line 141 of file qserialport_p.h.
Referenced by setBaudRate().
| qint64 QSerialPortPrivate::readBufferMaxSize = 0 |
Definition at line 142 of file qserialport_p.h.
Referenced by newDataArrived().
| QString QSerialPortPrivate::systemLocation |
Definition at line 139 of file qserialport_p.h.
Referenced by close().