EtherNet/IP™ Adapter  1.04.06
User Reference Manual

◆ EI_API_ADP_setMcastConfiguration()

uint32_t EI_API_ADP_setMcastConfiguration ( T pAdp_p,
const EI_API_ADP_SMcastConfig_t pMcastConfig_p 
)

Set the current Mcast configuration (Instance Attribute ID: 9).

This function sets the Mcast configuration.

Parameters
[in]pAdp_pPointer to the adapter.
[in]pMcastConfig_pPointer to structure with the data for the new settings of the Mcast configuration.
Returns
EI_API_ADP_EError_t as uint32_t value.
Return values
EI_API_ADP_eERR_OKSuccess.
EI_API_ADP_eERR_GENERALGeneral error.
Example
#include <api/EI_API.h>
EI_API_ADP_T* pEI_API_ADP = NULL;
uint32_t errCode;
uint8_t numInterfaces = 1;
pEI_API_ADP = EI_API_ADP_new(numInterfaces);
// Set multi-cast configuration to default allocation algorithm
EI_API_ADP_SMcastConfig_t mcast = { 1, 0, 0, 0 };
errCode = EI_API_ADP_setMcastConfiguration(pEI_API_ADP, &mcast);
See also
EI_API_ADP_getMcastConfiguration EI_API_ADP_SMcastConfig_t EI_API_ADP_EError_t
EI_API_ADP_setMcastConfiguration
ETHIP_API uint32_t EI_API_ADP_setMcastConfiguration(T *pAdp_p, const EI_API_ADP_SMcastConfig_t *pMcast_p)
Set the current Mcast configuration (Instance Attribute ID: 9).
Definition: EI_API_ADP_main.c:4313
EI_API_ADP_SMcastConfig
General multi-cast attribute parameter collection.
Definition: EI_API_def.h:240
EI_API_ADP_new
ETHIP_API T * EI_API_ADP_new(uint8_t numInterfaces_p)
Create a new EtherNet/IP adapter.
Definition: EI_API_ADP_main.c:235