Open Lighting Architecture: ola::plugin::usbdmx::SimpleWidget Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
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:

## 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

  adaptor | the LibUsbAdaptor to use.
  usb_device | The 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:

- plugins/usbdmx/Widget.h