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...
An Nodle widget that uses synchronous libusb operations.
Definition: DMXCProjectsNodleU1.h:95
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
AsynchronousDMXCProjectsNodleU1(ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device, PluginAdaptor *plugin_adaptor, const std::string &serial, unsigned int mode)
Create a new AsynchronousDMXCProjectsNodleU1.
Definition: DMXCProjectsNodleU1.cpp:486
bool SendDMX(const DmxBuffer &buffer)
Send DMX data from this widget.
Definition: DMXCProjectsNodleU1.cpp:525
A class used to hold a single universe of DMX data.
bool SendDMX(const DmxBuffer &buffer)
Send DMX data from this widget.
Definition: DMXCProjectsNodleU1.cpp:304
SynchronousDMXCProjectsNodleU1(ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device, PluginAdaptor *plugin_adaptor, const std::string &serial, unsigned int mode)
Create a new SynchronousDMXCProjectsNodleU1.
Definition: DMXCProjectsNodleU1.cpp:261
unsigned int Mode() const
Get the current mode of this widget.
Definition: DMXCProjectsNodleU1.h:68
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
bool Init()
Initialize the widget.
Definition: DMXCProjectsNodleU1.cpp:506
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
bool Init()
Initialize the widget.
Definition: DMXCProjectsNodleU1.cpp:271
Wraps calls to libusb so we can test the code.
Definition: LibUsbAdaptor.h:36