mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
CAN debuger
This commit is contained in:
@@ -7,11 +7,15 @@
|
||||
|
||||
class UI_can : public UI_item
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
UI_can(std::string text, Color fg_color, Color bg_color);
|
||||
UI_can(const json &j);
|
||||
UI_can(Color fg_color, Color bg_color, QObject *parent = nullptr);
|
||||
UI_can(const json &j, QObject *parent = nullptr);
|
||||
|
||||
void add_can_message(QCanBusFrame& msg);
|
||||
void add_send_message(QCanBusFrame& msg);
|
||||
void add_received_message(QCanBusFrame& msg);
|
||||
void clear_send_buffer();
|
||||
void clear_receive_buffer();
|
||||
|
||||
void from_json(const json &j) override;
|
||||
json to_json(size_t id) const override;
|
||||
@@ -20,5 +24,6 @@ class UI_can : public UI_item
|
||||
signals:
|
||||
void on_send(QCanBusFrame msg);
|
||||
private:
|
||||
std::vector<QCanBusFrame> m_can_messages;
|
||||
std::vector<QCanBusFrame> m_can_send_messages;
|
||||
std::vector<QCanBusFrame> m_can_received_messages;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user