Open Lighting Architecture  Latest Git
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:
Inheritance graph
Collaboration diagram for ola::plugin::usbdmx::SimpleWidget:
Collaboration graph

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

Constructor & Destructor Documentation

◆ SimpleWidget()

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

Create a new SimpleWidget.

adaptorthe LibUsbAdaptor to use.
usb_deviceThe libusb_device for this widget.

Member Function Documentation

◆ GetDeviceId()

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

The device ID of this widget.

The USBDeviceID.

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

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