Open Lighting Architecture
0.9.6
|
The base port class.
Ports represent a single universe of DMX512. They are either input (receive DMX) or output (send DMX) but not both.
Every port is part of a Device. Ports can be associated (patched) to a universe.
Public Member Functions | |
virtual unsigned int | PortId () const =0 |
Get the Port ID. This is the index within the device. | |
virtual AbstractDevice * | GetDevice () const =0 |
Get the device which owns this Port. | |
virtual std::string | Description () const =0 |
Fetch the string description for a Port. | |
virtual bool | SetUniverse (Universe *universe)=0 |
Bind this port to a universe. | |
virtual Universe * | GetUniverse () const =0 |
Fetch the universe this Port is bound to. | |
virtual std::string | UniqueId () const =0 |
Return the globally unique id for a Port. | |
virtual port_priority_capability | PriorityCapability () const =0 |
Get the priority capabilities for this port. | |
virtual bool | SetPriority (uint8_t priority)=0 |
Set the Priority for this Port. | |
virtual uint8_t | GetPriority () const =0 |
Get the numeric priority for this Port. | |
virtual void | SetPriorityMode (port_priority_mode mode)=0 |
Set the Priority Mode for this Port. | |
virtual port_priority_mode | GetPriorityMode () const =0 |
Get the Priority Mode for this Port. | |
virtual bool | SupportsRDM () const =0 |
Check if this Port supports RDM or not. |
|
pure virtual |
Fetch the string description for a Port.
Implemented in ola::plugin::usbpro::UsbProInputPort, ola::plugin::usbpro::UltraDMXProInputPort, ola::plugin::dmx4linux::Dmx4LinuxInputPort, ola::plugin::usbpro::RobeInputPort, ola::plugin::osc::OSCInputPort, ola::plugin::sandnet::SandNetInputPort, ola::plugin::e131::E131InputPort, ola::plugin::openpixelcontrol::OPCInputPort, ola::plugin::artnet::ArtNetInputPort, ola::plugin::pathport::PathportInputPort, ola::plugin::espnet::EspNetInputPort, and ola::plugin::shownet::ShowNetInputPort.
|
pure virtual |
Get the device which owns this Port.
Implemented in ola::BasicInputPort.
|
pure virtual |
Get the numeric priority for this Port.
Implemented in ola::BasicInputPort.
|
pure virtual |
|
pure virtual |
Fetch the universe this Port is bound to.
Implemented in ola::BasicInputPort.
|
pure virtual |
Get the Port ID. This is the index within the device.
Implemented in ola::BasicInputPort.
|
pure virtual |
Get the priority capabilities for this port.
Implemented in ola::BasicInputPort.
|
pure virtual |
Set the Priority for this Port.
priority | the priority to use. |
Implemented in ola::BasicInputPort.
|
pure virtual |
Set the Priority Mode for this Port.
mode | the Priority Mode to use. |
Implemented in ola::BasicInputPort.
|
pure virtual |
Bind this port to a universe.
universe | the Universe to bind to. |
This shouldn't be called directly. Instead use PortManager::PatchPort() which takes care of everything for you.
Implemented in ola::BasicInputPort.
|
pure virtual |
Check if this Port supports RDM or not.
Implemented in ola::BasicInputPort.
|
pure virtual |
Return the globally unique id for a Port.
This is used to preserve port universe bindings. An empty string means we don't preserve settings.
Implemented in ola::BasicInputPort.