9 #include <leddevice/LedDevice.h> 29 virtual bool init(
const QJsonObject &deviceConfig);
48 void unblockAfterDelay();
49 void error(QSerialPort::SerialPortError error);
50 void bytesWritten(qint64 bytes);
54 void receivedData(QByteArray data);
65 int writeBytes(
const qint64 size,
const uint8_t *data);
69 QString findSerialDevice();
72 bool tryOpen(
const int delayAfterConnect_ms);
87 bool _blockedForDelay;
93 qint64 _frameDropCounter;
94 QSerialPort::SerialPortError _lastError;
95 qint64 _preOpenDelayTimeOut;
97 bool _enableAutoDeviceName;
Interface (pure virtual base class) for LedDevices.
Definition: LedDevice.h:32
int writeBytes(const qint64 size, const uint8_t *data)
Writes the given bytes to the RS232-device and.
Definition: ProviderRs232.cpp:205
QSerialPort _rs232Port
The RS232 serial-device.
Definition: ProviderRs232.h:85
qint32 _baudRate_Hz
The used baudrate of the output device.
Definition: ProviderRs232.h:79
int open()
Opens and configures the output device.
Definition: ProviderRs232.cpp:142
The ProviderRs232 implements an abstract base-class for LedDevices using a RS232-device.
Definition: ProviderRs232.h:14
ProviderRs232()
Constructs specific LedDevice.
Definition: ProviderRs232.cpp:15
virtual bool init(const QJsonObject &deviceConfig)
Sets configuration.
Definition: ProviderRs232.cpp:32
virtual ~ProviderRs232()
Destructor of the LedDevice; closes the output device if it is open.
Definition: ProviderRs232.cpp:127
QString _deviceName
The name of the output device.
Definition: ProviderRs232.h:76
int _delayAfterConnect_ms
Sleep after the connect before continuing.
Definition: ProviderRs232.h:82