22 #ifndef PLUGINS_USBDMX_EUROLITEPROOUTPUTPORT_H_
23 #define PLUGINS_USBDMX_EUROLITEPROOUTPUTPORT_H_
28 #include "ola/thread/Thread.h"
29 #include "olad/Port.h"
39 libusb_device *usb_device);
41 std::string SerialNumber()
const {
return m_serial; }
46 bool WriteDMX(
const DmxBuffer &buffer, uint8_t priority);
47 std::string Description()
const {
return ""; }
50 static const unsigned int URB_TIMEOUT_MS = 500;
51 static const unsigned int UDMX_SET_CHANNEL_RANGE = 0x0002;
52 static const unsigned char ENDPOINT = 0x02;
53 static const char EXPECTED_MANUFACTURER[];
54 static const char EXPECTED_PRODUCT[];
55 static const uint8_t DMX_LABEL = 6;
58 int m_interface_number;
61 libusb_device *m_usb_device;
62 libusb_device_handle *m_usb_handle;
67 bool SendDMX(
const DmxBuffer &buffer_old);
69 bool LocateInterface();
72 enum { FRAME_SIZE = 518 };
77 #endif // PLUGINS_USBDMX_EUROLITEPROOUTPUTPORT_H_