EtherNet/IP™ Adapter  1.04.06
User Reference Manual

◆ EI_API_ADP_getPortLogSyncInterval()

uint32_t EI_API_ADP_getPortLogSyncInterval ( T pAdp_p,
int16_t *  pPortLogSyncInterval_p 
)

Get the PortLogSyncInterval member value of attribute PortLogSyncIntervalCfg of the Time Sync object (Instance Attribute ID: 15).

Function that returns the PortLogSyncInterval member value of attribute PortLogSyncIntervalCfg attribute for the adapter selected by parameter pAdp_p in output parameter pPortLogSyncInterval.

Parameters
[in]pAdp_pPointer to the adapter.
[out]pPortLogSyncInterval_pint16_t pointer to PortLogSyncInterval of the adapter Time Sync object.
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;
int16_t portLogSyncInterval;
pEI_API_ADP = EI_API_ADP_new(numInterfaces);
errCode = EI_API_ADP_getPortLogSyncInterval(pEI_API_ADP, &portLogSyncInterval);
See also
EI_API_ADP_setPortLogSyncInterval EI_API_ADP_EError_t
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
EI_API_ADP_getPortLogSyncInterval
ETHIP_API uint32_t EI_API_ADP_getPortLogSyncInterval(T *pAdp_p, int16_t *pPortLogSyncInterval_p)
Get the PortLogSyncInterval member value of attribute PortLogSyncIntervalCfg of the Time Sync object ...
Definition: EI_API_ADP_main.c:2285