5#include <QtCore/QString>
28 int read(uint8_t *buffer,
int length,
int timeoutMs)
override;
29 int write(
const uint8_t *buffer,
int length)
override;
33 static constexpr int kWriteTimeoutMs = 500;
36 const std::atomic_bool &_requestStop;
37 std::unique_ptr<QSerialPort> _serial;
Provides functions to access serial ports.
bool setBaudrate(unsigned baudrate) override
Set the link baud rate. Returns true on success.
bool fatalError() const
True once the port hits an error the receive loop should stop retrying past.
int write(const uint8_t *buffer, int length) override
Write length bytes. Returns bytes written, or -1 on error.
~SerialGPSTransport() override
int read(uint8_t *buffer, int length, int timeoutMs) override