Open Lighting Architecture  Latest Git
Public Member Functions | List of all members
ola::plugin::usbdmx::SynchronousSunlite Class Reference

Detailed Description

An Sunlite widget that uses synchronous libusb operations.

Internally this spawns a new thread to avoid blocking SendDMX() calls.

Inheritance diagram for ola::plugin::usbdmx::SynchronousSunlite:
Inheritance graph
Collaboration diagram for ola::plugin::usbdmx::SynchronousSunlite:
Collaboration graph

Public Member Functions

 SynchronousSunlite (ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device)
 Create a new SynchronousSunlite. More...
bool Init ()
 Initialize the widget. More...
bool SendDMX (const DmxBuffer &buffer)
 Send DMX data from this widget. More...
- Public Member Functions inherited from ola::plugin::usbdmx::Sunlite
 Sunlite (ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device)
- Public Member Functions inherited from ola::plugin::usbdmx::SimpleWidget
 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...

Additional Inherited Members

- Protected Attributes inherited from ola::plugin::usbdmx::SimpleWidget
ola::usb::LibUsbAdaptor *const m_adaptor
libusb_device *const m_usb_device

Constructor & Destructor Documentation

◆ SynchronousSunlite()

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

Create a new SynchronousSunlite.

adaptorthe LibUsbAdaptor to use.
usb_devicethe libusb_device to use for the widget.

Member Function Documentation

◆ Init()

bool ola::plugin::usbdmx::SynchronousSunlite::Init ( )

Initialize the widget.

true if this widget was initialized correctly, false otherwise.

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

◆ SendDMX()

bool ola::plugin::usbdmx::SynchronousSunlite::SendDMX ( const DmxBuffer buffer)

Send DMX data from this widget.

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

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

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