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

Detailed Description

A base simple widget class.

This holds a pointer to a LibUsbAdaptor so we don't have to duplicate that code in all the Widgets.

Inheritance diagram for ola::plugin::usbdmx::SimpleWidget:
ola::plugin::usbdmx::WidgetInterface ola::plugin::usbdmx::AnymauDMX ola::plugin::usbdmx::DMXCProjectsNodleU1 ola::plugin::usbdmx::EurolitePro ola::plugin::usbdmx::ScanlimeFadecandy ola::plugin::usbdmx::Sunlite ola::plugin::usbdmx::VellemanK8062 ola::plugin::usbdmx::AsynchronousAnymauDMX ola::plugin::usbdmx::SynchronousAnymauDMX ola::plugin::usbdmx::AsynchronousDMXCProjectsNodleU1 ola::plugin::usbdmx::SynchronousDMXCProjectsNodleU1 ola::plugin::usbdmx::AsynchronousEurolitePro ola::plugin::usbdmx::SynchronousEurolitePro ola::plugin::usbdmx::AsynchronousScanlimeFadecandy ola::plugin::usbdmx::SynchronousScanlimeFadecandy ola::plugin::usbdmx::AsynchronousSunlite ola::plugin::usbdmx::SynchronousSunlite ola::plugin::usbdmx::AsynchronousVellemanK8062 ola::plugin::usbdmx::SynchronousVellemanK8062

Public Member Functions

 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
virtual bool Init ()=0
 Initialize the widget.
 
virtual bool SendDMX (const DmxBuffer &buffer)=0
 Send DMX data from this widget.
 

Protected Attributes

ola::usb::LibUsbAdaptor *const m_adaptor
 
libusb_device *const m_usb_device
 

Constructor & Destructor Documentation

◆ SimpleWidget()

ola::plugin::usbdmx::SimpleWidget::SimpleWidget ( ola::usb::LibUsbAdaptor * adaptor,
libusb_device * usb_device )
inlineexplicit

Create a new SimpleWidget.

Parameters
adaptorthe LibUsbAdaptor to use.
usb_deviceThe libusb_device for this widget.

Member Function Documentation

◆ GetDeviceId()

ola::usb::USBDeviceID ola::plugin::usbdmx::SimpleWidget::GetDeviceId ( ) const
inlinevirtual

The device ID of this widget.

Returns
The USBDeviceID.

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


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