28 #ifndef PLUGINS_USBDMX_VELLEMANOUTPUTPORT_H_
29 #define PLUGINS_USBDMX_VELLEMANOUTPUTPORT_H_
35 #include "ola/thread/Thread.h"
36 #include "olad/Port.h"
48 libusb_device *usb_device);
54 bool WriteDMX(
const DmxBuffer &buffer, uint8_t priority);
58 static const unsigned char ENDPOINT = 0x01;
60 static const unsigned int URB_TIMEOUT_MS = 25;
61 static const int CONFIGURATION = 1;
62 static const int INTERFACE = 0;
63 static const unsigned int UPGRADED_CHUNK_SIZE = 64;
66 unsigned int m_chunk_size;
67 libusb_device *m_usb_device;
68 libusb_device_handle *m_usb_handle;
73 bool SendDMX(
const DmxBuffer &buffer_old);
74 bool SendDataChunk(uint8_t *usb_data);
79 #endif // PLUGINS_USBDMX_VELLEMANOUTPUTPORT_H_