2015-02-21 Fred Gleason <fredg@paravelsystems.com>

* Added support for GPIO to the Software Authority Protocol driver
	in 'ripcd/swauthority.cpp' and 'ripcd/swauthority.h'.
This commit is contained in:
Fred Gleason
2015-02-21 20:33:34 -05:00
parent 8f91f7cf07
commit 61baaf2197
4 changed files with 112 additions and 60 deletions

View File

@@ -21,6 +21,7 @@
#ifndef SWAUTHORITY_H
#define SWAUTHORITY_H
#include <map>
#include <vector>
#include <qsocket.h>
@@ -60,6 +61,7 @@ class SoftwareAuthority : public Switcher
void DispatchCommand();
void ExecuteMacroCart(unsigned cartnum);
QString PrettifyCommand(const char *cmd) const;
QString BundleString(int offset,bool state);
QSocket *swa_socket;
char swa_buffer[SWAUTHORITY_MAX_LENGTH];
unsigned swa_ptr;
@@ -78,6 +80,8 @@ class SoftwareAuthority : public Switcher
unsigned swa_stop_cart;
int swa_istate;
RDMatrix::PortType swa_porttype;
std::map<int,QString> swa_gpi_states;
std::map<int,QString> swa_gpo_states;
};