21 #ifndef PLUGINS_USBDMX_DMXCPROJECTSNODLEU1_H_ 22 #define PLUGINS_USBDMX_DMXCPROJECTSNODLEU1_H_ 28 #include "libs/usb/LibUsbAdaptor.h" 32 #include "ola/thread/Mutex.h" 34 #include "plugins/usbdmx/Widget.h" 46 libusb_device *usb_device,
48 const std::string &serial,
53 m_plugin_adaptor(plugin_adaptor) {
68 unsigned int Mode()
const {
73 virtual const DmxBuffer &GetDmxInBuffer() = 0;
75 static int NODLE_DEFAULT_MODE;
76 static int NODLE_MIN_MODE;
77 static int NODLE_MAX_MODE;
79 static int OUTPUT_ENABLE_MASK;
80 static int INPUT_ENABLE_MASK;
106 libusb_device *usb_device,
108 const std::string &serial,
119 libusb_device*
const m_usb_device;
120 std::auto_ptr<class DMXCProjectsNodleU1ThreadedSender> m_sender;
121 std::auto_ptr<class DMXCProjectsNodleU1ThreadedReceiver> m_receiver;
140 libusb_device *usb_device,
142 const std::string &serial,
153 std::auto_ptr<class DMXCProjectsNodleU1AsyncUsbSender> m_sender;
154 std::auto_ptr<class DMXCProjectsNodleU1AsyncUsbReceiver> m_receiver;
162 #endif // PLUGINS_USBDMX_DMXCPROJECTSNODLEU1_H_ The interface for the Nodle Widgets.
Definition: DMXCProjectsNodleU1.h:43
Provides a wrapper for the DeviceManager and SelectServer objects so that the plugins can register de...
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Creates dummy copy constructor and assignment operator declarations.
Definition: Macro.h:44
An Nodle widget that uses synchronous libusb operations.
Definition: DMXCProjectsNodleU1.h:95
unsigned int Mode() const
Get the current mode of this widget.
Definition: DMXCProjectsNodleU1.h:68
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
A class used to hold a single universe of DMX data.
An Nodle widget that uses asynchronous libusb operations.
Definition: DMXCProjectsNodleU1.h:129
Definition: PluginAdaptor.h:41
std::string SerialNumber() const
Get the serial number of this widget.
Definition: DMXCProjectsNodleU1.h:60
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Wraps calls to libusb so we can test the code.
Definition: LibUsbAdaptor.h:36