Open Lighting Architecture  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
[legend]
Collaboration diagram for ola::plugin::usbdmx::SynchronousSunlite:
Collaboration graph
[legend]

Public Member Functions

 SynchronousSunlite (LibUsbAdaptor *adaptor, libusb_device *usb_device)
 Create a new SynchronousSunlite.
bool Init ()
 Initialize the widget.
bool SendDMX (const DmxBuffer &buffer)
 Send DMX data from this widget.
- Public Member Functions inherited from ola::plugin::usbdmx::Sunlite
 Sunlite (LibUsbAdaptor *adaptor)
- Public Member Functions inherited from ola::plugin::usbdmx::BaseWidget
 BaseWidget (class LibUsbAdaptor *adaptor)
 Create a new BaseWidget.

Additional Inherited Members

- Protected Attributes inherited from ola::plugin::usbdmx::BaseWidget
class LibUsbAdaptor *const m_adaptor

Constructor & Destructor Documentation

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

Create a new SynchronousSunlite.

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

Member Function Documentation

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

Initialize the widget.

Returns
true if this widget was initialized correctly, false otherwise.

Implements ola::plugin::usbdmx::Widget.

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

Send DMX data from this widget.

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

Implements ola::plugin::usbdmx::Widget.


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