blob: b4fb933b4407eab773d422e4f6c4cf827cd869d4 (
plain)
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
|
#ifndef LEDS_H
#define LEDS_H
#include <QMainWindow>
#include <QTimer>
#include <QRadioButton>
#include <stdint.h>
namespace Ui {
class Leds;
}
struct ivmshmem {
uint8_t leds[3];
} __attribute__((packed));
class Leds : public QMainWindow
{
Q_OBJECT
public:
explicit Leds(QWidget *parent = 0);
~Leds();
int init(void);
private:
Ui::Leds *ui;
QRadioButton *radioButton[3];
QTimer timer;
struct ivmshmem *shm;
public slots:
void poll_shm(void);
};
#endif // LEDS_H
|