29 #ifndef INCLUDE_OLA_RDM_RDMAPIIMPLINTERFACE_H_
30 #define INCLUDE_OLA_RDM_RDMAPIIMPLINTERFACE_H_
36 #include <ola/rdm/RDMResponseCodes.h>
57 rdm_response_code response_code;
58 uint8_t response_type;
59 uint8_t message_count;
65 bool WasAcked()
const {
66 return (error.empty() && response_code == RDM_COMPLETED_OK &&
67 response_type == RDM_ACK);
70 bool WasNacked()
const {
71 return (error.empty() && response_code == RDM_COMPLETED_OK &&
72 response_type == RDM_NACK_REASON);
76 uint16_t NackReason()
const {
return m_param; }
79 unsigned int AckTimer()
const {
return 100 * m_param; }
103 unsigned int universe,
107 const uint8_t *data = NULL,
108 unsigned int data_length = 0) = 0;
113 unsigned int universe,
117 const uint8_t *data = NULL,
118 unsigned int data_length = 0) = 0;
122 unsigned int universe,
126 const uint8_t *data = NULL,
127 unsigned int data_length = 0) = 0;
131 #endif // INCLUDE_OLA_RDM_RDMAPIIMPLINTERFACE_H_