29 #ifndef INCLUDE_OLA_RDM_RDMAPIIMPLINTERFACE_H_
30 #define INCLUDE_OLA_RDM_RDMAPIIMPLINTERFACE_H_
36 #include <ola/rdm/RDMResponseCodes.h>
54 RDMStatusCode response_code;
55 uint8_t response_type;
62 bool WasAcked()
const {
63 return (error.empty() && response_code == RDM_COMPLETED_OK &&
64 response_type == RDM_ACK);
67 bool WasNacked()
const {
68 return (error.empty() && response_code == RDM_COMPLETED_OK &&
69 response_type == RDM_NACK_REASON);
73 uint16_t NackReason()
const {
return m_param; }
76 unsigned int AckTimer()
const {
return 100 *
m_param; }
94 const ResponseStatus&,
99 virtual bool RDMGet(rdm_callback *callback,
100 unsigned int universe,
104 const uint8_t *data = NULL,
105 unsigned int data_length = 0) = 0;
109 virtual bool RDMGet(rdm_pid_callback *callback,
110 unsigned int universe,
114 const uint8_t *data = NULL,
115 unsigned int data_length = 0) = 0;
118 virtual bool RDMSet(rdm_callback *callback,
119 unsigned int universe,
123 const uint8_t *data = NULL,
124 unsigned int data_length = 0) = 0;
128 #endif // INCLUDE_OLA_RDM_RDMAPIIMPLINTERFACE_H_
uint16_t m_param
Definition: RDMAPIImplInterface.h:57
uint8_t message_count
Definition: RDMAPIImplInterface.h:56
A RDM unique identifier (UID).
Represents the state of a response and/or any error codes.
Definition: RDMAPIImplInterface.h:51
This is the interface for an RDMAPI implementation.
Definition: RDMAPIImplInterface.h:83
Various constants used in RDM.
A 3 argument callback which deletes itself after it's run.
Definition: Callback.h:2850
Represents a RDM UID.
Definition: UID.h:57
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
A 2 argument callback which deletes itself after it's run.
Definition: Callback.h:1907