21 #ifndef PLUGINS_USBPRO_ENTTECUSBPROWIDGETIMPL_H_
22 #define PLUGINS_USBPRO_ENTTECUSBPROWIDGETIMPL_H_
31 #include "ola/util/Watchdog.h"
41 RECEIVED_DMX_LABEL_1 = 5,
52 RECEIVED_DMX_LABEL_2 = 156,
57 RDM_DISCOVERY_2 = 196,
68 uint8_t change_to_rx_mode;
71 uint8_t rdm_discovery;
94 const DmxBuffer &FetchDMX()
const {
return m_input_buffer; }
97 bool ChangeToReceiveMode(
bool change_only);
99 bool SetParameters(uint8_t break_time, uint8_t mab_time, uint8_t rate);
117 void HandleParameters(
const uint8_t *data,
unsigned int length);
119 void HandleDMXDiff(
const uint8_t *data,
unsigned int length);
121 void ClockWatchdog();
122 void WatchdogFired();
132 std::auto_ptr<ola::Callback0<void> > m_dmx_callback;
135 std::deque<usb_pro_params_callback*> m_outstanding_param_callbacks;
140 uint8_t m_transaction_number;
142 std::auto_ptr<const ola::rdm::RDMRequest> m_pending_request;
149 const uint8_t *m_discovery_response;
150 unsigned int m_discovery_response_size;
152 void HandleDMX(
const uint8_t *data,
unsigned int length);
156 bool PackAndSendRDMRequest(uint8_t label,
160 static const unsigned int PORT_ID = 1;
162 static const unsigned int WATCHDOG_LIMIT = 2;
167 #endif // PLUGINS_USBPRO_ENTTECUSBPROWIDGETIMPL_H_