EtherNet/IP™ Adapter  1.04.06
User Reference Manual

◆ EI_API_ADP_getIntfConfig()

uint32_t EI_API_ADP_getIntfConfig ( T pAdp_p,
uint8_t  intfId_p,
EI_API_ADP_UIntfConf_t pIntfConf_p 
)

Get the current adapter configuration of interface with the specified ID (Instance Attribute ID: 6).

Function that returns the adapter configuration of interface with ID intfId_p.

Parameters
[in]pAdp_pPointer to the adapter.
[in]intfId_pInterface ID.
[out]pIntfConf_pPointer to a union of type EI_API_ADP_UIntfConf_t.
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);
errCode = EI_API_ADP_getIntfConfig(pEI_API_ADP, 0, &intfConf);
See also
EI_API_ADP_UIntfConf_t EI_API_ADP_EError_t
EI_API_ADP_UIntfConf
Structure to use as function parameter (attribute parameters)
Definition: EI_API_def.h:213
EI_API_ADP_getIntfConfig
ETHIP_API uint32_t EI_API_ADP_getIntfConfig(T *pAdp_p, uint8_t intfId_p, EI_API_ADP_UIntfConf_t *pIntfConf_p)
Get the current adapter configuration of interface with the specified ID (Instance Attribute ID: 6).
Definition: EI_API_ADP_main.c:5359
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