25 #ifndef PLUGINS_USBDMX_SUNLITEOUTPUTPORT_H_
26 #define PLUGINS_USBDMX_SUNLITEOUTPUTPORT_H_
32 #include "ola/thread/Thread.h"
33 #include "olad/Port.h"
45 libusb_device *usb_device);
51 bool WriteDMX(
const DmxBuffer &buffer, uint8_t priority);
52 std::string Description()
const {
return ""; }
55 enum {SUNLITE_PACKET_SIZE = 0x340};
57 static const unsigned int CHUNKS_PER_PACKET = 26;
58 static const unsigned int CHANNELS_PER_CHUNK = 20;
59 static const unsigned int CHUNK_SIZE = 32;
60 static const uint8_t ENDPOINT = 1;
61 static const unsigned int TIMEOUT = 50;
65 uint8_t m_packet[SUNLITE_PACKET_SIZE];
66 libusb_device *m_usb_device;
67 libusb_device_handle *m_usb_handle;
78 #endif // PLUGINS_USBDMX_SUNLITEOUTPUTPORT_H_