-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconsoledirectiointerface.h
43 lines (30 loc) · 989 Bytes
/
consoledirectiointerface.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
#ifndef CONSOLEDIRECTIOINTERFACE_H
#define CONSOLEDIRECTIOINTERFACE_H
#include "directiointerface.h"
#include "consoleinterface.h"
class ConsoleDirectIOInterface : public DirectIOInterface
{
ConsoleInterface * con;
bool opened;
public:
ConsoleDirectIOInterface();
~ConsoleDirectIOInterface();
void setConsole(ConsoleInterface * acon) {con = acon;}
bool isAvable() {return true;}
QString name() {return "CONDIO";}
QString description() {return QObject::tr("DIRECTIO -> Console");}
QString reason() {return "";}
int getPortCount();
void setPortValue(int no,unsigned char value);
unsigned char getPortValue(int no);
void setPinMode(int no,int pin,IO_MODE mode) ;
void setPortMode(int no,IO_MODE mode) ;
void setPortName(QString n);
QString getPortName();
QStringList getPortList();
bool open();
void close();
bool load() { return true; }
void unload() {}
};
#endif // CONSOLEDIRECTIOINTERFACE_H