20 #ifndef RDMNET_CPP_COMMON_H_
21 #define RDMNET_CPP_COMMON_H_
45 kEnabledOnAllInterfaces,
46 kDisabledOnAllInterfaces
64 if (mcast_netints.empty())
89 if (mcast_netints.empty())
113 RdmnetNetintConfig config = {
nullptr, 0u, (mcast_mode == McastMode::kDisabledOnAllInterfaces)};
129 RdmnetNetintConfig config = {
nullptr, 0u, (mcast_mode == McastMode::kDisabledOnAllInterfaces)};
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:215
static EptResponseAction SendStatus(ept_status_code_t status_code)
Send an EPT status message.
Definition: common.h:239
static EptResponseAction SendData(size_t response_data_len)
Send an EPT data message in response.
Definition: common.h:230
constexpr const RdmnetSyncEptResponse & get() const
Get a const reference to the underlying C type.
Definition: common.h:255
static EptResponseAction DeferResponse()
Defer the response to the EPT message, either to be sent later or because no response is necessary.
Definition: common.h:247
A class representing a synchronous action to take in response to a received RDM command.
Definition: common.h:146
static RdmResponseAction SendNack(rdm_nack_reason_t nack_reason)
Send an RDM NACK with a reason code.
Definition: common.h:172
static RdmResponseAction SendAck(size_t response_data_len=0)
Send an RDM ACK, optionally including some response data.
Definition: common.h:163
static RdmResponseAction RetryLater()
Trigger another notification for the (non-LLRP) RDM command on the next tick.
Definition: common.h:199
static RdmResponseAction DeferResponse()
Defer the RDM response to be sent later from another context.
Definition: common.h:191
constexpr const RdmnetSyncRdmResponse & get() const
Get a const reference to the underlying C type.
Definition: common.h:207
Functions and definitions common to all RDMnet API modules.
ept_status_code_t
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:335
#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:358
#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:255
void rdmnet_deinit(void)
Deinitialize the RDMnet library.
Definition: common.c:275
#define RDMNET_SYNC_RETRY_LATER(response_ptr)
Trigger another notification for the (non-LLRP) RDM command on the next tick.
Definition: common.h:277
etcpal_error_t rdmnet_init(const EtcPalLogParams *log_params, const RdmnetNetintConfig *netint_config)
Initialize the RDMnet library.
Definition: common.c:220
#define RDMNET_SYNC_DEFER_RDM_RESPONSE(response_ptr)
Defer the RDM response to be sent later from another context.
Definition: common.h:267
#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:347
#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:243
void Deinit()
Deinitialize the RDMnet library.
Definition: common.h:138
etcpal::Error Init(const EtcPalLogParams *log_params=nullptr, const std::vector< EtcPalMcastNetintId > &mcast_netints=std::vector< EtcPalMcastNetintId >{})
Initialize the RDMnet library.
Definition: common.h:61
A namespace which contains all C++ language definitions in the RDMnet library.
Definition: broker.h:45
McastMode
Determines whether multicast traffic is allowed through all interfaces or none.
Definition: common.h:44