Open Lighting Architecture
0.9.5
|
An implementation of InputPort, provides the basic functionality which saves the plugin implementations from having to do it.
Public Member Functions | |
BasicInputPort (AbstractDevice *parent, unsigned int port_id, const PluginAdaptor *plugin_adaptor, bool supports_rdm=false) | |
Create a new basic input port. | |
unsigned int | PortId () const |
Get the Port ID. This is the index within the device. | |
AbstractDevice * | GetDevice () const |
Get the device which owns this Port. | |
bool | SetUniverse (Universe *universe) |
Bind this port to a universe. | |
Universe * | GetUniverse () const |
Fetch the universe this Port is bound to. | |
virtual std::string | UniqueId () const |
Return the globally unique id for a Port. | |
bool | SetPriority (uint8_t priority) |
Set the Priority for this Port. | |
uint8_t | GetPriority () const |
Get the numeric priority for this Port. | |
void | SetPriorityMode (port_priority_mode mode) |
Set the Priority Mode for this Port. | |
port_priority_mode | GetPriorityMode () const |
Get the Priority Mode for this Port. | |
void | DmxChanged () |
Called when there is new data for this port. | |
const DmxSource & | SourceData () const |
Get the current DMX data. | |
void | HandleRDMRequest (const ola::rdm::RDMRequest *request, ola::rdm::RDMCallback *callback) |
Handle an RDM Request on this port. | |
void | TriggerRDMDiscovery (ola::rdm::RDMDiscoveryCallback *on_complete, bool full=true) |
Trigger the RDM Discovery procedure for this universe. | |
port_priority_capability | PriorityCapability () const |
Get the priority capabilities for this port. | |
virtual const DmxBuffer & | ReadDMX () const =0 |
virtual uint8_t | InheritedPriority () const |
virtual bool | PreSetUniverse (Universe *, Universe *) |
virtual void | PostSetUniverse (Universe *, Universe *) |
virtual bool | SupportsRDM () const |
Check if this Port supports RDM or not. |
Protected Member Functions | |
virtual bool | SupportsPriorities () const |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Handle an RDM Request on this port.
request | the RDMRequest object, ownership is transferred to us |
callback | the callback to run |
Implements ola::InputPort.
|
inlinevirtual |
|
inlinevirtual |
Get the priority capabilities for this port.
Implements ola::Port.
|
virtual |
|
inlinevirtual |
|
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.
Implements ola::Port.
|
inlinevirtual |
|
virtual |