21 #ifndef LIBS_USB_JARULEPORTHANDLEIMPL_H_ 22 #define LIBS_USB_JARULEPORTHANDLEIMPL_H_ 26 #include <ola/io/ByteString.h> 32 #include <ola/util/SequenceNumber.h> 34 #include "libs/usb/JaRuleConstants.h" 54 uint8_t physical_port);
100 const uint8_t m_physical_port;
106 bool m_dmx_in_progress;
115 void CheckStatusFlags(uint8_t flags);
121 uint8_t status_flags,
126 uint8_t status_flags,
131 uint8_t status_flags,
137 uint8_t status_flags,
152 #endif // LIBS_USB_JARULEPORTHANDLEIMPL_H_ USBCommandResult
Indicates the eventual state of a Ja Rule command.
Definition: JaRuleConstants.h:53
Represents a set of RDM UIDs.
Definition: UIDSet.h:48
Definitions and Interfaces to implement an RDMController that sends a single message at a time...
RDMStatusCode
RDM Status Codes.
Definition: RDMResponseCodes.h:45
An RDM Command that represents responses (GET, SET or DISCOVER).
Definition: RDMCommand.h:457
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Creates dummy copy constructor and assignment operator declarations.
Definition: Macro.h:44
void MuteDevice(const ola::rdm::UID &target, MuteDeviceCallback *mute_complete)
Mute a device.
Definition: JaRulePortHandleImpl.cpp:121
JaRulePortHandleImpl(class JaRuleWidgetPort *parent_port, const ola::rdm::UID &uid, uint8_t physical_port)
Create a new JaRulePortHandleImpl.
Definition: JaRulePortHandleImpl.cpp:67
CommandClass
The Ja Rule command set.
Definition: JaRuleConstants.h:101
The interface that can send RDM commands, as well as perform discovery operations.
Definition: RDMControllerInterface.h:104
RDM Commands that represent requests (GET, SET or DISCOVER).
Definition: RDMCommand.h:234
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
A RDM unique identifier (UID).
JaRulePortMode
Ja Rule Port modes.
Definition: JaRuleConstants.h:42
JaRuleReturnCode
JaRule command return codes.
Definition: JaRuleConstants.h:133
A class used to hold a single universe of DMX data.
The base class for all 4 argument callbacks.
Definition: Callback.h:3811
void RunIncrementalDiscovery(ola::rdm::RDMDiscoveryCallback *callback)
Start an incremental discovery operation.
Definition: JaRulePortHandleImpl.cpp:94
bool SendDMX(const DmxBuffer &buffer)
Send DMX data from this widget.
Definition: JaRulePortHandleImpl.cpp:166
void Branch(const ola::rdm::UID &lower, const ola::rdm::UID &upper, BranchCallback *branch_complete)
Send a DUB command.
Definition: JaRulePortHandleImpl.cpp:150
#define OLA_UNUSED
Mark unused arguments & types.
Definition: Macro.h:62
void UnMuteAll(UnMuteDeviceCallback *unmute_complete)
Unmute all devices.
Definition: JaRulePortHandleImpl.cpp:136
An RDM Controller that queues messages and only sends a single message at a time. ...
The base class for all 1 argument callbacks.
Definition: Callback.h:982
An asynchronous RDM Discovery algorithm.
Definition: DiscoveryAgent.h:135
void SendRDMRequest(ola::rdm::RDMRequest *request, ola::rdm::RDMCallback *on_complete)
Send a RDM command.
Definition: JaRulePortHandleImpl.cpp:102
The internal implementation of a Ja Rule Port Handle.
Definition: JaRulePortHandleImpl.h:45
Represents a RDM UID.
Definition: UID.h:57
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
std::basic_string< uint8_t > ByteString
A contiguous block of uint8_t data.
Definition: ByteString.h:40
Implements the RDM Discovery algorithm.
bool SetPortMode(JaRulePortMode new_mode)
Change the mode of this port.
Definition: JaRulePortHandleImpl.cpp:178
void RunFullDiscovery(ola::rdm::RDMDiscoveryCallback *callback)
Start a full discovery operation.
Definition: JaRulePortHandleImpl.cpp:87
The base class for all 2 argument callbacks.
Definition: Callback.h:1885
The interface used by the DiscoveryTarget to send RDM commands.
Definition: DiscoveryAgent.h:53
Classes that represent RDM commands.