23 lines
580 B
C++
23 lines
580 B
C++
#ifndef SERIAL_SAMPLE_PAYLOADWINDOW_H
|
|
#define SERIAL_SAMPLE_PAYLOADWINDOW_H
|
|
|
|
#include <string>
|
|
#include <libserialport.h>
|
|
|
|
// Вперед-идущее объявление, чтобы не плодить инклуды
|
|
class ConnectionWindow;
|
|
|
|
class PayloadWindow {
|
|
public:
|
|
PayloadWindow();
|
|
~PayloadWindow() = default;
|
|
|
|
void render(bool* p_open, ConnectionWindow& connectionWindow);
|
|
|
|
private:
|
|
static void sendHexPayload(const std::string& hexString, ConnectionWindow& connectionWindow);
|
|
char hexInputBuffer[256]{};
|
|
};
|
|
|
|
#endif // SERIAL_SAMPLE_PAYLOADWINDOW_H
|