21 #ifndef PLUGINS_USBDMX_THREADEDUSBSENDER_H_
22 #define PLUGINS_USBDMX_THREADEDUSBSENDER_H_
27 #include "ola/thread/Thread.h"
56 libusb_device_handle *usb_handle,
57 int interface_number = 0);
94 libusb_device*
const m_usb_device;
95 libusb_device_handle*
const m_usb_handle;
96 int const m_interface_number;
106 #endif // PLUGINS_USBDMX_THREADEDUSBSENDER_H_
bool SendDMX(const DmxBuffer &buffer)
Buffer a DMX frame for sending.
Definition: ThreadedUsbSender.cpp:92
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
A class used to hold a single universe of DMX data.
ThreadedUsbSender(libusb_device *usb_device, libusb_device_handle *usb_handle, int interface_number=0)
Create a new ThreadedUsbSender.
Definition: ThreadedUsbSender.cpp:30
bool Start()
Start the new thread.
Definition: ThreadedUsbSender.cpp:49
Send DMX data using libusb, from a separate thread.
Definition: ThreadedUsbSender.h:46
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
virtual bool TransmitBuffer(libusb_device_handle *handle, const DmxBuffer &buffer)=0
Perform the DMX transfer.
void * Run()
Entry point for the new thread.
Definition: ThreadedUsbSender.cpp:60