aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/peripheralsview.h
blob: 30e85f14665b6658702ff20e0860f926231341ce (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
#ifndef PERIPHERALSVIEW_H
#define PERIPHERALSVIEW_H

#include <QWidget>

#include "peripspiled.h"

namespace Ui {
class PeripheralsView;
}

class PeripheralsView : public QWidget
{
    Q_OBJECT

public:
    explicit PeripheralsView(QWidget *parent = 0);
    ~PeripheralsView();

    void setup(const machine::PeripSpiLed *perip_spi_led);

public slots:
    void led_line_changed(uint val);
    void led_rgb1_changed(int val);
    void led_rgb2_changed(int val);

private:
    Ui::PeripheralsView *ui;
};

#endif // PERIPHERALSVIEW_H