Open Lighting Architecture
Latest Git
|
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.
Public Member Functions | |
SimpleWidget (ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device) | |
Create a new SimpleWidget. More... | |
ola::usb::USBDeviceID | GetDeviceId () const |
The device ID of this widget. More... | |
Public Member Functions inherited from ola::plugin::usbdmx::WidgetInterface | |
virtual bool | Init ()=0 |
Initialize the widget. More... | |
virtual bool | SendDMX (const DmxBuffer &buffer)=0 |
Send DMX data from this widget. More... | |
Protected Attributes | |
ola::usb::LibUsbAdaptor *const | m_adaptor |
libusb_device *const | m_usb_device |
|
inlineexplicit |
Create a new SimpleWidget.
adaptor | the LibUsbAdaptor to use. |
usb_device | The libusb_device for this widget. |
|
inlinevirtual |
The device ID of this widget.
Implements ola::plugin::usbdmx::WidgetInterface.