-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.h
48 lines (38 loc) · 1.03 KB
/
device.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef DEVICE_H
#define DEVICE_H
#include <QObject>
#include<QVector>
#include"devicesignal.h"
#include"devicecan.h"
class Device: public QObject
{
Q_OBJECT
public:
Device();
~Device();
//seting
bool setting_status;
//Actually
bool online_status;
bool actual_status;
bool candata_status;
// devicename
QString device_name;
int signal_number;
int device_id;
QVector<DeviceSignal *> signal_vector;
QVector<DeviceCan *> can_vector;
void SetDeviceStatus(bool status);
void UpdateActualStatus();
void AddData(const QByteArray &message);
int ByteToInt32(QByteArray abyte0);
void ClearReceiveData();
void SetMaxDataLen(int len);
void AddAdcData( QByteArray &adcbyte, int frame_time,int frame_length);
void AddCanData( QByteArray &adcbyte, int frame_time,int frame_length);
void ShowCanData(bool status);
static int test_headtime;
signals:
void addcanrow(double time, int device, int channel,int id, QByteArray data);
};
#endif // DEVICE_H