20 #ifndef RDMNET_CPP_COMMON_H_
21 #define RDMNET_CPP_COMMON_H_
57 if (mcast_netints.empty())
82 if (mcast_netints.empty())
const EtcPalLogParams & log_params() const noexcept
A class representing a synchronous action to take in response to a received EPT data message.
Definition: common.h:166
static EptResponseAction SendStatus(ept_status_code_t status_code)
Send an EPT status message.
Definition: common.h:190
static EptResponseAction DeferResponse()
Defer the response to the EPT message, either to be sent later or because no response is necessary.
Definition: common.h:198
constexpr const RdmnetSyncEptResponse & get() const
Get a const reference to the underlying C type.
Definition: common.h:206
static EptResponseAction SendData(size_t response_data_len)
Send an EPT data message in response.
Definition: common.h:181
A class representing a synchronous action to take in response to a received RDM command.
Definition: common.h:106
static RdmResponseAction SendNack(rdm_nack_reason_t nack_reason)
Send an RDM NACK with a reason code.
Definition: common.h:131
static RdmResponseAction SendAck(size_t response_data_len=0)
Send an RDM ACK, optionally including some response data.
Definition: common.h:122
constexpr const RdmnetSyncRdmResponse & get() const
Get a const reference to the underlying C type.
Definition: common.h:158
static RdmResponseAction DeferResponse()
Defer the RDM response to be sent later from another context.
Definition: common.h:150
Functions and definitions common to all RDMnet API modules.
ept_status_code_t
EPT status code definitions.
Definition: common.h:76
#define RDMNET_SYNC_SEND_EPT_DATA(response_ptr, response_data_len_in)
Indicate that an EPT data message should be sent when this callback returns.
Definition: common.h:318
#define RDMNET_SYNC_DEFER_EPT_RESPONSE(response_ptr)
Defer the response to the EPT message, either to be sent later or because no response is necessary.
Definition: common.h:341
#define RDMNET_SYNC_SEND_RDM_NACK(response_ptr, nack_reason_in)
Indicate that an RDM NACK should be sent when this callback returns.
Definition: common.h:252
void rdmnet_deinit(void)
Deinitialize the RDMnet library.
Definition: common.c:201
etcpal_error_t rdmnet_init(const EtcPalLogParams *log_params, const RdmnetNetintConfig *netint_config)
Initialize the RDMnet library.
Definition: common.c:149
#define RDMNET_SYNC_DEFER_RDM_RESPONSE(response_ptr)
Defer the RDM response to be sent later from another context.
Definition: common.h:264
#define RDMNET_SYNC_SEND_EPT_STATUS(response_ptr, status_code_in)
Indicate that an EPT status message should be sent when this callback returns.
Definition: common.h:330
#define RDMNET_SYNC_SEND_RDM_ACK(response_ptr, response_data_len_in)
Indicate that an RDM ACK should be sent when this callback returns.
Definition: common.h:240
etcpal::Error Init(const EtcPalLogParams *log_params=nullptr, const std::vector< RdmnetMcastNetintId > &mcast_netints=std::vector< RdmnetMcastNetintId >{})
Initialize the RDMnet library.
Definition: common.h:54
void Deinit()
Deinitialize the RDMnet library.
Definition: common.h:98
A namespace which contains all C++ language definitions in the RDMnet library.
Definition: broker.h:45
Network interface configuration information to give the RDMnet library at initialization.
Definition: common.h:376
This structure should not be manipulated directly - use the macros to access it:
Definition: common.h:293
This structure should not be manipulated directly - use the macros to access it:
Definition: common.h:214