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;
A class used to hold a single universe of DMX data.
Used to hold a single universe of DMX data.
Definition DmxBuffer.h:49
Send DMX data using libusb, from a separate thread.
Definition ThreadedUsbSender.h:46
bool SendDMX(const DmxBuffer &buffer)
Buffer a DMX frame for sending.
Definition ThreadedUsbSender.cpp:92
ThreadedUsbSender(libusb_device *usb_device, libusb_device_handle *usb_handle, int interface_number=0)
Create a new ThreadedUsbSender.
Definition ThreadedUsbSender.cpp:30
void * Run()
Entry point for the new thread.
Definition ThreadedUsbSender.cpp:60
virtual bool TransmitBuffer(libusb_device_handle *handle, const DmxBuffer &buffer)=0
Perform the DMX transfer.
bool Start()
Start the new thread.
Definition ThreadedUsbSender.cpp:49
The namespace containing all OLA symbols.
Definition Credentials.cpp:44