Open Lighting Architecture
0.9.6
|
The interface used by the DiscoveryTarget to send RDM commands.
This class abstracts away the method of sending RDM commands from the discovery algorithm in DiscoveryAgent.
For each of the MuteDevice, UnMuteAll and Branch methods, the implementation should send the appropriate RDM command and then run the provided callback when the command has been sent.
Public Types | |
typedef ola::BaseCallback1 < void, bool > | MuteDeviceCallback |
The callback run when a mute command completes. | |
typedef ola::BaseCallback0< void > | UnMuteDeviceCallback |
The callback run when an unmute command completes. | |
typedef ola::BaseCallback2 < void, const uint8_t *, unsigned int > | BranchCallback |
The callback run when a DUB command completes. |
Public Member Functions | |
virtual void | MuteDevice (const UID &target, MuteDeviceCallback *mute_complete)=0 |
Mute a device. | |
virtual void | UnMuteAll (UnMuteDeviceCallback *unmute_complete)=0 |
Unmute all devices. | |
virtual void | Branch (const UID &lower, const UID &upper, BranchCallback *callback)=0 |
Send a DUB command. |
typedef ola::BaseCallback2<void, const uint8_t*, unsigned int> ola::rdm::DiscoveryTargetInterface::BranchCallback |
The callback run when a DUB command completes.
data | The DUB response, if any was received. Otherwise pass NULL. |
length | The length of the DUB response. |
typedef ola::BaseCallback1<void, bool> ola::rdm::DiscoveryTargetInterface::MuteDeviceCallback |
The callback run when a mute command completes.
ok | true if the device muted correctly, false if the device failed to ack the mute. |
|
pure virtual |
Send a DUB command.
lower | the lower bound UID. |
upper | the upper bound UID. |
callback | the callback to run when the DUB completes. |
Any data received in response to the DUB command should be passed back when the callback is run.
Implemented in ola::plugin::usbpro::EnttecPortImpl, ola::plugin::usbdmx::JaRuleWidgetImpl, and ola::plugin::usbpro::RobeWidgetImpl.
|
pure virtual |
Mute a device.
target | the device to mute |
mute_complete | the callback to run when the mute operations completes. |
Implemented in ola::plugin::usbpro::EnttecPortImpl, ola::plugin::usbdmx::JaRuleWidgetImpl, and ola::plugin::usbpro::RobeWidgetImpl.
|
pure virtual |
Unmute all devices.
unmute_complete | the callback to run when the unmute operation completes. |
Implemented in ola::plugin::usbpro::EnttecPortImpl, ola::plugin::usbdmx::JaRuleWidgetImpl, and ola::plugin::usbpro::RobeWidgetImpl.