21#ifndef PLUGINS_USBPRO_DMXTERDEVICE_H_
22#define PLUGINS_USBPRO_DMXTERDEVICE_H_
26#include "plugins/usbpro/DmxterWidget.h"
27#include "plugins/usbpro/UsbSerialDevice.h"
36class DmxterDevice:
public UsbSerialDevice {
39 const std::string &name,
44 std::string
DeviceId()
const {
return m_device_id; }
47 std::string m_device_id;
68 m_widget->SendRDMRequest(request, callback);
72 m_widget->RunFullDiscovery(on_complete);
76 m_widget->RunIncrementalDiscovery(on_complete);
A class used to hold a single universe of DMX data.
#define OLA_UNUSED
Mark unused arguments & types.
Definition Macro.h:63
BasicOutputPort(AbstractDevice *parent, unsigned int port_id, bool start_rdm_discovery_on_patch=false, bool supports_rdm=false)
Create a new BasicOutputPort.
Definition Port.cpp:120
Used to hold a single universe of DMX data.
Definition DmxBuffer.h:49
Definition DmxterDevice.h:36
std::string DeviceId() const
The device ID.
Definition DmxterDevice.h:44
bool WriteDMX(const DmxBuffer &buffer, uint8_t priority)
Write DMX data to this port.
Definition DmxterDevice.h:60
std::string Description() const
Fetch the string description for a Port.
Definition DmxterDevice.h:79
void SendRDMRequest(ola::rdm::RDMRequest *request, ola::rdm::RDMCallback *callback)
Handle an RDMRequest, subclasses can implement this to support RDM.
Definition DmxterDevice.h:66
void RunIncrementalDiscovery(ola::rdm::RDMDiscoveryCallback *on_complete)
This is a noop for ports that don't support RDM.
Definition DmxterDevice.h:75
void RunFullDiscovery(ola::rdm::RDMDiscoveryCallback *on_complete)
This is a noop for ports that don't support RDM.
Definition DmxterDevice.h:71
RDM Commands that represent requests (GET, SET or DISCOVER).
Definition RDMCommand.h:234
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