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);
117 uint8_t status_flags,
const ola::io::ByteString &payload);
121 uint8_t status_flags,
122 const ola::io::ByteString &payload);
126 uint8_t status_flags,
127 const ola::io::ByteString &payload);
131 uint8_t status_flags,
132 const ola::io::ByteString &payload);
137 uint8_t status_flags,
138 const ola::io::ByteString &payload);
141 const ola::io::ByteString &payload,
A class used to hold a single universe of DMX data.
#define OLA_UNUSED
Mark unused arguments & types.
Definition Macro.h:63
#define PACK(__Declaration__)
Pack structures.
Definition Macro.h:171
An RDM Controller that queues messages and only sends a single message at a time.
Classes that represent RDM commands.
Definitions and Interfaces to implement an RDMController that sends a single message at a time.
A RDM unique identifier (UID).
The base class for all 1 argument callbacks.
Definition Callback.h:982
The base class for all 2 argument callbacks.
Definition Callback.h:1885
The base class for all 4 argument callbacks.
Definition Callback.h:3811
Used to hold a single universe of DMX data.
Definition DmxBuffer.h:49
SequenceNumber, this ensures that we increment the sequence number whenever we go to use it.
Definition SequenceNumber.h:30
The interface that can send RDM commands, as well as perform discovery operations.
Definition RDMControllerInterface.h:104
An asynchronous RDM Discovery algorithm.
Definition DiscoveryAgent.h:135
The interface used by the DiscoveryTarget to send RDM commands.
Definition DiscoveryAgent.h:53
RDM Commands that represent requests (GET, SET or DISCOVER).
Definition RDMCommand.h:234
An RDM Command that represents responses (GET, SET or DISCOVER).
Definition RDMCommand.h:457
Represents a RDM UID.
Definition UID.h:57
Represents a set of RDM UIDs.
Definition UIDSet.h:48
The internal implementation of a Ja Rule Port Handle.
Definition JaRulePortHandleImpl.h:47
void UnMuteAll(UnMuteDeviceCallback *unmute_complete)
Unmute all devices.
Definition JaRulePortHandleImpl.cpp:135
void RunFullDiscovery(ola::rdm::RDMDiscoveryCallback *callback)
Start a full discovery operation.
Definition JaRulePortHandleImpl.cpp:86
bool SetPortMode(JaRulePortMode new_mode)
Change the mode of this port.
Definition JaRulePortHandleImpl.cpp:177
void RunIncrementalDiscovery(ola::rdm::RDMDiscoveryCallback *callback)
Start an incremental discovery operation.
Definition JaRulePortHandleImpl.cpp:93
bool SendDMX(const DmxBuffer &buffer)
Send DMX data from this widget.
Definition JaRulePortHandleImpl.cpp:165
void SendRDMRequest(ola::rdm::RDMRequest *request, ola::rdm::RDMCallback *on_complete)
Send a RDM command.
Definition JaRulePortHandleImpl.cpp:101
void Branch(const ola::rdm::UID &lower, const ola::rdm::UID &upper, BranchCallback *branch_complete)
Send a DUB command.
Definition JaRulePortHandleImpl.cpp:149
void MuteDevice(const ola::rdm::UID &target, MuteDeviceCallback *mute_complete)
Mute a device.
Definition JaRulePortHandleImpl.cpp:120
JaRulePortHandleImpl(class JaRuleWidgetPort *parent_port, const ola::rdm::UID &uid, uint8_t physical_port)
Create a new JaRulePortHandleImpl.
Definition JaRulePortHandleImpl.cpp:66
Implements the RDM Discovery algorithm.
RDMStatusCode
RDM Status Codes.
Definition RDMResponseCodes.h:45
CommandClass
The Ja Rule command set.
Definition JaRuleConstants.h:101
USBCommandResult
Indicates the eventual state of a Ja Rule command.
Definition JaRuleConstants.h:53
JaRuleReturnCode
JaRule command return codes.
Definition JaRuleConstants.h:133
JaRulePortMode
Ja Rule Port modes.
Definition JaRuleConstants.h:42
The namespace containing all OLA symbols.
Definition Credentials.cpp:44