21 #ifndef PLUGINS_USBPRO_ARDUINOWIDGET_H_
22 #define PLUGINS_USBPRO_ARDUINOWIDGET_H_
30 #include "plugins/usbpro/BaseUsbProWidget.h"
63 uint8_t m_transaction_id;
65 std::auto_ptr<const ola::rdm::RDMRequest> m_pending_request;
68 void HandleMessage(uint8_t label,
71 void HandleRDMResponse(
const uint8_t *data,
unsigned int length);
74 static const uint8_t RDM_REQUEST_LABEL;
77 static const uint8_t RESPONSE_OK;
78 static const uint8_t RESPONSE_WAS_BROADCAST;
79 static const uint8_t RESPONSE_FAILED;
80 static const uint8_t RESPONSE_FAILED_CHECKSUM;
81 static const uint8_t RESONSE_INVALID_DESTINATION;
82 static const uint8_t RESPONSE_INVALID_COMMAND;
95 unsigned int queue_size = 20);
98 void Stop() { m_impl->
Stop(); }
101 return m_impl->SendDMX(buffer);
118 return m_impl->GetDescriptor();
124 ArduinoWidgetImpl *m_impl;
130 #endif // PLUGINS_USBPRO_ARDUINOWIDGET_H_
Definitions and Interfaces to implement an RDMController that sends a single message at a time...
void SendRDMRequest(RDMRequest *request, RDMCallback *on_complete)
Definition: QueueingRDMController.cpp:96
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition: Descriptor.h:282
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:233
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.
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
Definition: QueueingRDMController.h:88
Represents a RDM UID.
Definition: UID.h:57
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44