21 #ifndef PLUGINS_OPENDMX_OPENDMXPORT_H_
22 #define PLUGINS_OPENDMX_OPENDMXPORT_H_
26 #include "olad/Port.h"
27 #include "plugins/opendmx/OpenDmxDevice.h"
28 #include "plugins/opendmx/OpenDmxThread.h"
38 const std::string &path)
49 std::string
Description()
const {
return "Open DMX at " + m_path; }
52 return m_thread.WriteDmx(buffer);
62 #endif // PLUGINS_OPENDMX_OPENDMXPORT_H_
Definition: OpenDmxPort.h:34
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
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
A class used to hold a single universe of DMX data.
Definition: OpenDmxThread.h:32
#define OLA_UNUSED
Mark unused arguments & types.
Definition: Macro.h:62
virtual bool Start()
Start the thread and wait for the thread to be running.
Definition: Thread.cpp:84
bool WriteDMX(const DmxBuffer &buffer, uint8_t priority)
Write DMX data to this port.
Definition: OpenDmxPort.h:51
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
std::string Description() const
Fetch the string description for a Port.
Definition: OpenDmxPort.h:49
Definition: OpenDmxDevice.h:31