21 #ifndef PLUGINS_USBPRO_ROBEWIDGET_H_ 22 #define PLUGINS_USBPRO_ROBEWIDGET_H_ 35 #include "ola/thread/SchedulingExecutorInterface.h" 36 #include "plugins/usbpro/BaseRobeWidget.h" 81 static const int DMX_FRAME_DATA_SIZE;
89 std::auto_ptr<Callback0<void> > m_dmx_callback;
91 std::auto_ptr<const ola::rdm::RDMRequest> m_pending_request;
93 uint8_t m_transaction_number;
95 void HandleMessage(uint8_t label,
98 void HandleRDMResponse(
const uint8_t *data,
100 void HandleDiscoveryResponse(
const uint8_t *data,
101 unsigned int length);
105 void HandleDmxFrame(
const uint8_t *data,
unsigned int length);
106 bool PackAndSendRDMRequest(uint8_t label,
108 static const unsigned int RDM_PADDING_BYTES = 4;
120 unsigned int queue_size = 20);
123 void Stop() { m_impl->Stop(); }
126 return m_impl->GetDescriptor();
130 return m_impl->SendDMX(buffer);
135 m_controller->SendRDMRequest(request, on_complete);
139 m_impl->RunFullDiscovery(callback);
143 m_impl->RunIncrementalDiscovery(callback);
147 return m_impl->ChangeToReceiveMode();
151 m_impl->SetDmxCallback(callback);
155 return m_impl->FetchDMX();
159 friend class ::RobeWidgetTest;
170 #endif // PLUGINS_USBPRO_ROBEWIDGET_H_ Represents a set of RDM UIDs.
Definition: UIDSet.h:48
Definitions and Interfaces to implement an RDMController that sends a single message at a time...
ola::BaseCallback2< void, const uint8_t *, unsigned int > BranchCallback
The callback run when a DUB command completes.
Definition: DiscoveryAgent.h:73
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition: Descriptor.h:282
ola::BaseCallback1< void, bool > MuteDeviceCallback
The callback run when a mute command completes.
Definition: DiscoveryAgent.h:60
The interface that can send RDM commands, as well as perform discovery operations.
Definition: RDMControllerInterface.h:104
RDM Commands that represent requests (GET, SET or DISCOVER).
Definition: RDMCommand.h:234
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
A RDM unique identifier (UID).
A class used to hold a single universe of DMX data.
ola::BaseCallback0< void > UnMuteDeviceCallback
The callback run when an unmute command completes.
Definition: DiscoveryAgent.h:65
An RDM Controller that queues messages and only sends a single message at a time. ...
The base class for all 1 argument callbacks.
Definition: Callback.h:982
An asynchronous RDM Discovery algorithm.
Definition: DiscoveryAgent.h:135
Definition: QueueingRDMController.h:88
Represents a RDM UID.
Definition: UID.h:57
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Implements the RDM Discovery algorithm.
The interface used by the DiscoveryTarget to send RDM commands.
Definition: DiscoveryAgent.h:53
Classes that represent RDM commands.