EtherNet/IP™ Adapter  1.04.06
User Reference Manual

◆ EI_API_ADP_getPortLogAnnounceInterval()

uint32_t EI_API_ADP_getPortLogAnnounceInterval ( T pAdp_p,
uint16_t *  pPortLogAnnounceInterval_p 
)

Get the PortLogAnnounceInterval attribute of the Time Sync Object (Instance Attribute ID: 14).

Function that returns the PortLogAnnounceInterval member of the PortLogAnnounceIntervalCfg attribute for the EtherNet/IP adapter selected by parameter pAdp_p in output parameter pPortLogAnnounceInterval.

Parameters
[in]pAdp_pPointer to the adapter.
[out]pPortLogAnnounceInterval_puint16_t pointer to PortLogAnnounceInterval of the adapter Time Sync object specified by parameter pAdp_p.
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;
uint16_t portLogAnnounceInterval;
pEI_API_ADP = EI_API_ADP_new(numInterfaces);
errCode = EI_API_ADP_getPortLogAnnounceInterval(pEI_API_ADP, &portLogAnnounceInterval);
See also
EI_API_ADP_setPortLogAnnounceInterval EI_API_ADP_EError_t
EI_API_ADP_getPortLogAnnounceInterval
ETHIP_API uint32_t EI_API_ADP_getPortLogAnnounceInterval(T *pAdp_p, uint16_t *pPortLogAnnounceInterval_p)
Get the PortLogAnnounceInterval attribute of the Time Sync Object (Instance Attribute ID: 14).
Definition: EI_API_ADP_main.c:2148
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