Open Lighting Architecture 0.10.9
Loading...
Searching...
No Matches
ola::plugin::usbdmx::AsynchronousDMXCProjectsNodleU1 Class Reference

Detailed Description

An Nodle widget that uses asynchronous libusb operations.

Inheritance diagram for ola::plugin::usbdmx::AsynchronousDMXCProjectsNodleU1:
ola::plugin::usbdmx::DMXCProjectsNodleU1 ola::plugin::usbdmx::SimpleWidget ola::plugin::usbdmx::WidgetInterface

Public Member Functions

 AsynchronousDMXCProjectsNodleU1 (ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device, PluginAdaptor *plugin_adaptor, const std::string &serial, unsigned int mode)
 Create a new AsynchronousDMXCProjectsNodleU1.
 
bool Init ()
 Initialize the widget.
 
bool SendDMX (const DmxBuffer &buffer)
 Send DMX data from this widget.
 
void SetDmxCallback (Callback0< void > *callback)
 
const DmxBufferGetDmxInBuffer ()
 
- Public Member Functions inherited from ola::plugin::usbdmx::DMXCProjectsNodleU1
 DMXCProjectsNodleU1 (ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device, PluginAdaptor *plugin_adaptor, const std::string &serial, unsigned int mode)
 
std::string SerialNumber () const
 Get the serial number of this widget.
 
unsigned int Mode () const
 Get the current mode of this widget.
 
- Public Member Functions inherited from ola::plugin::usbdmx::SimpleWidget
 SimpleWidget (ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device)
 Create a new SimpleWidget.
 
ola::usb::USBDeviceID GetDeviceId () const
 The device ID of this widget.
 
- Public Member Functions inherited from ola::plugin::usbdmx::WidgetInterface

Additional Inherited Members

- Static Public Attributes inherited from ola::plugin::usbdmx::DMXCProjectsNodleU1
static int NODLE_DEFAULT_MODE = 6
 
static int NODLE_MIN_MODE = 0
 
static int NODLE_MAX_MODE = 7
 
static int OUTPUT_ENABLE_MASK = 2
 
static int INPUT_ENABLE_MASK = 4
 
- Protected Attributes inherited from ola::plugin::usbdmx::DMXCProjectsNodleU1
unsigned int m_mode
 
PluginAdaptorm_plugin_adaptor
 
- Protected Attributes inherited from ola::plugin::usbdmx::SimpleWidget
ola::usb::LibUsbAdaptor *const m_adaptor
 
libusb_device *const m_usb_device
 

Constructor & Destructor Documentation

◆ AsynchronousDMXCProjectsNodleU1()

ola::plugin::usbdmx::AsynchronousDMXCProjectsNodleU1::AsynchronousDMXCProjectsNodleU1 ( ola::usb::LibUsbAdaptor * adaptor,
libusb_device * usb_device,
PluginAdaptor * plugin_adaptor,
const std::string & serial,
unsigned int mode )

Create a new AsynchronousDMXCProjectsNodleU1.

Parameters
adaptorthe LibUsbAdaptor to use.
usb_devicethe libusb_device to use for the widget.
plugin_adaptorthe PluginAdaptor used to execute callbacks
serialthe serial number of this widget
modethe send/receive mode to be used by the widget.

Member Function Documentation

◆ GetDmxInBuffer()

const DmxBuffer & ola::plugin::usbdmx::AsynchronousDMXCProjectsNodleU1::GetDmxInBuffer ( )
virtual

◆ Init()

bool ola::plugin::usbdmx::AsynchronousDMXCProjectsNodleU1::Init ( )
virtual

Initialize the widget.

Returns
true if this widget was initialized correctly, false otherwise.

Implements ola::plugin::usbdmx::WidgetInterface.

◆ SendDMX()

bool ola::plugin::usbdmx::AsynchronousDMXCProjectsNodleU1::SendDMX ( const DmxBuffer & buffer)
virtual

Send DMX data from this widget.

Parameters
bufferThe DmxBuffer containing the data to send.
Returns
true if the data was sent, false otherwise.

Implements ola::plugin::usbdmx::WidgetInterface.

◆ SetDmxCallback()

void ola::plugin::usbdmx::AsynchronousDMXCProjectsNodleU1::SetDmxCallback ( Callback0< void > * callback)
virtual

The documentation for this class was generated from the following files: