23 lines
555 B
C++
23 lines
555 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& conn_win);
|
|
|
|
private:
|
|
void SendHexPayload(const std::string& hex_str, ConnectionWindow& conn_win);
|
|
char hex_input_buffer[256];
|
|
};
|
|
|
|
#endif // SERIAL_SAMPLE_PAYLOADWINDOW_H
|