Open Lighting Architecture  Latest Git
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
ola::plugin::usbdmx::AsynchronousScanlimeFadecandy Class Reference

Detailed Description

An Fadecandy widget that uses asynchronous libusb operations.

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

Public Member Functions

 AsynchronousScanlimeFadecandy (ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device, const std::string &serial)
 Create a new AsynchronousScanlimeFadecandy. 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::ScanlimeFadecandy
 ScanlimeFadecandy (ola::usb::LibUsbAdaptor *adaptor, libusb_device *usb_device, const std::string &serial)
std::string SerialNumber () const
 Get the serial number of this widget. More...
- 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

ola::plugin::usbdmx::AsynchronousScanlimeFadecandy::AsynchronousScanlimeFadecandy ( ola::usb::LibUsbAdaptor adaptor,
libusb_device *  usb_device,
const std::string &  serial 

Create a new AsynchronousScanlimeFadecandy.

adaptorthe LibUsbAdaptor to use.
usb_devicethe libusb_device to use for the widget.
serialthe serial number of the widget.

Member Function Documentation

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

Initialize the widget.

true if this widget was initialized correctly, false otherwise.

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

bool ola::plugin::usbdmx::AsynchronousScanlimeFadecandy::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: