![]() |
Open Lighting Architecture 0.10.9
|
Public Member Functions | |
| FadecandyAsyncUsbSender (LibUsbAdaptor *adaptor, libusb_device *usb_device) | |
| libusb_device_handle * | SetupHandle () |
| Open the device handle. | |
| bool | PerformTransfer (const DmxBuffer &buffer) |
| Perform the DMX transfer. | |
Public Member Functions inherited from ola::plugin::usbdmx::AsyncUsbSender | |
| AsyncUsbSender (ola::usb::LibUsbAdaptor *const adaptor, libusb_device *usb_device) | |
| Create a new AsyncUsbSender. | |
| virtual | ~AsyncUsbSender () |
| Destructor. | |
| bool | SendDMX (const DmxBuffer &buffer) |
| Send one frame of DMX data. | |
| void | TransferComplete (struct libusb_transfer *transfer) |
| Called from the libusb callback when the asynchronous transfer completes. | |
Public Member Functions inherited from ola::plugin::usbdmx::AsyncUsbTransceiverBase | |
| AsyncUsbTransceiverBase (ola::usb::LibUsbAdaptor *const adaptor, libusb_device *usb_device) | |
| Create a new AsyncUsbTransceiverBase. | |
| virtual | ~AsyncUsbTransceiverBase () |
| Destructor. | |
| bool | Init () |
| Initialize the transceiver. | |
| libusb_device_handle * | GetHandle () |
| Get the libusb_device_handle of an already opened widget. | |
Additional Inherited Members | |
Protected Types inherited from ola::plugin::usbdmx::AsyncUsbTransceiverBase | |
| enum | TransferState { IDLE , IN_PROGRESS , DISCONNECTED } |
Protected Member Functions inherited from ola::plugin::usbdmx::AsyncUsbSender | |
| virtual void | PostTransferHook () |
| Called when the transfer completes. | |
| bool | TransferPending () const |
| Check if there is a pending transfer. | |
Protected Member Functions inherited from ola::plugin::usbdmx::AsyncUsbTransceiverBase | |
| void | CancelTransfer () |
| Cancel any pending transfers. | |
| void | FillControlTransfer (unsigned char *buffer, unsigned int timeout) |
| Fill a control transfer. | |
| void | FillBulkTransfer (unsigned char endpoint, unsigned char *buffer, int length, unsigned int timeout) |
| Fill a bulk transfer. | |
| void | FillInterruptTransfer (unsigned char endpoint, unsigned char *buffer, int length, unsigned int timeout) |
| Fill an interrupt transfer. | |
| int | SubmitTransfer () |
| Submit the transfer for tx. | |
Protected Attributes inherited from ola::plugin::usbdmx::AsyncUsbTransceiverBase | |
| ola::usb::LibUsbAdaptor *const | m_adaptor |
| The LibUsbAdaptor passed in the constructor. | |
| libusb_device *const | m_usb_device |
| The libusb_device passed in the constructor. | |
| libusb_device_handle * | m_usb_handle |
| bool | m_suppress_continuation |
| struct libusb_transfer * | m_transfer |
| TransferState | m_transfer_state |
| ola::thread::Mutex | m_mutex |
|
virtual |
Perform the DMX transfer.
| buffer | the DMX buffer to send. |
This method is implemented by the subclass. The subclass should call FillControlTransfer() / FillBulkTransfer() as appropriate and then call SubmitTransfer().
Implements ola::plugin::usbdmx::AsyncUsbSender.
|
virtual |
Open the device handle.
Implements ola::plugin::usbdmx::AsyncUsbTransceiverBase.