22#ifndef PLUGINS_USBPRO_GENERICUSBPROWIDGET_H_
23#define PLUGINS_USBPRO_GENERICUSBPROWIDGET_H_
29#include "ola/thread/SchedulerInterface.h"
30#include "plugins/usbpro/BaseUsbProWidget.h"
38 uint8_t firmware_high;
61 virtual bool SendDMX(
const DmxBuffer &buffer);
62 bool ChangeToReceiveMode(
bool change_only);
70 static const uint8_t RECEIVED_DMX_LABEL = 5;
74 virtual void HandleMessage(uint8_t label,
77 void HandleDMX(
const uint8_t *data,
unsigned int length);
83 std::deque<usb_pro_params_callback*> m_outstanding_param_callbacks;
85 void HandleParameters(
const uint8_t *data,
unsigned int length);
86 void HandleDMXDiff(
const uint8_t *data,
unsigned int length);
88 static const uint8_t REPROGRAM_FIRMWARE_LABEL = 2;
89 static const uint8_t PARAMETERS_LABEL = 3;
90 static const uint8_t SET_PARAMETERS_LABEL = 4;
91 static const uint8_t DMX_RX_MODE_LABEL = 8;
92 static const uint8_t DMX_CHANGED_LABEL = 9;
A class used to hold a single universe of DMX data.
A 0 argument callback which can be called multiple times.
Definition Callback.h:129
Used to hold a single universe of DMX data.
Definition DmxBuffer.h:49
A 2 argument callback which deletes itself after it's run.
Definition Callback.h:1907
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition Descriptor.h:283
The namespace containing all OLA symbols.
Definition Credentials.cpp:44
Definition GenericUsbProWidget.h:36