21#ifndef PLUGINS_USBPRO_ARDUINOWIDGET_H_
22#define PLUGINS_USBPRO_ARDUINOWIDGET_H_
30#include "plugins/usbpro/BaseUsbProWidget.h"
41class ArduinoWidgetImpl:
public BaseUsbProWidget,
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 RESPONSE_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);
106 m_controller->SendRDMRequest(request, on_complete);
110 m_impl->RunFullDiscovery(callback);
114 m_impl->RunIncrementalDiscovery(callback);
118 return m_impl->GetDescriptor();
124 ArduinoWidgetImpl *m_impl;
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.
Definitions and Interfaces to implement an RDMController that sends a single message at a time.
A RDM unique identifier (UID).
Used to hold a single universe of DMX data.
Definition DmxBuffer.h:49
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition Descriptor.h:283
Definition QueueingRDMController.h:88
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
Represents a RDM UID.
Definition UID.h:57
Code for Enttec USB Pro devices and others using the same protocol.
Code for supported devices and protocols.
ola::BaseCallback1< void, RDMReply * > RDMCallback
The callback run when a RDM request completes.
Definition RDMControllerInterface.h:52
ola::BaseCallback1< void, const ola::rdm::UIDSet & > RDMDiscoveryCallback
The callback run when a discovery operation completes.
Definition RDMControllerInterface.h:68
The namespace containing all OLA symbols.
Definition Credentials.cpp:44