23 lines
341 B
C++
23 lines
341 B
C++
#ifndef CANSTRUCTS_H
|
|
#define CANSTRUCTS_H
|
|
|
|
#include <QObject>
|
|
|
|
class CanModule: public QObject
|
|
{
|
|
};
|
|
|
|
struct CanId
|
|
{
|
|
uint8_t command = 0;
|
|
uint8_t destination = 0;
|
|
uint8_t source = 0xF0;
|
|
uint8_t device = 0xA;
|
|
uint8_t error = 0;
|
|
|
|
uint32_t serialize() const;
|
|
void deserialize(uint32_t id);
|
|
};
|
|
|
|
#endif // CANSTRUCTS_H
|