4 #ifndef _DMXPRO2INTERFACE_H_
5 #define _DMXPRO2INTERFACE_H_
8 #include "LumiverseCoreConfig.h"
17 #include "pro_driver.h"
18 #include "../Logger.h"
19 #include "../lib/libjson/libjson.h"
30 class DMXPro2Interface :
public DMXInterface
37 DMXPro2Interface(
string id,
int proNum = 0,
int out1 = 0,
int out2 = 1);
40 virtual ~DMXPro2Interface();
48 virtual void sendDMX(
unsigned char* data,
unsigned int universe);
51 virtual void closeInt();
59 virtual JSONNode toJSON();
61 virtual string getInterfaceType() {
return "DMXPro2Interface"; }
79 int sendData(
int label,
unsigned char *data,
int length);
86 int receiveData(
int label,
unsigned char *data,
unsigned int expected_length);
93 bool openDevice(
int device_num);
105 void setPorts(uint8_t port1, uint8_t port2);
107 int getProNum() {
return m_proNum; }
108 void setProNum(
int proNum) { m_proNum = proNum; }
110 void setOut1Universe(
int u) { m_out1Universe = u; }
111 int getOut1Universe() {
return m_out1Universe; }
113 void setOut2Universe(
int u) { m_out2Universe = u; }
114 int getOut2Universe() {
return m_out2Universe; }
124 FT_HANDLE m_deviceHandle;
void init(const char *jsonPatchStr, const char *filename)
Initializes data structures.
Definition: Dumiverse.cpp:29
Base class describing how DMX Interfaces should act.
Contains all core Lumiverse functions and variables.
Definition: Device.cpp:2
Definition: pro_driver.h:69