EtherNet/IP™ Adapter3.02.00

◆ EI_API_ADP_getLldpParameter()

uint32_t EI_API_ADP_getLldpParameter ( T *  pAdp_p,
EI_API_ADP_SLldp_Parameter_t pLldpParameter_p 
)

Get attribute values of LLDP Management Object (ID 0x0109).

Function that gets attribute values of the LLDP Management Object (ID 0x0109) Attributes 1 (LLDP enable), 2 (msgTxInterval) and 3 (msgTxHold) of the adapter selected by parameter pAdp_p.

Parameters
[in]pAdp_pPointer to the adapter.
[in]pLldpParameter_pPointer to new LLDP Parameter.
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 lldp parameter
errCode = EI_API_ADP_setLldpParameter(pEI_API_ADP, &lldpParameter);
See also
EI_API_ADP_setLldpParameter EI_API_ADP_EError_t
EI_API_ADP_setLldpParameter
uint32_t EI_API_ADP_setLldpParameter(T *pAdp_p, EI_API_ADP_SLldp_Parameter_t lldpParameter)
Set attribute values in LLDP Management Object (ID 0x0109).
Definition: EI_API_ADP_stub.c:4963
EI_API_ADP_SLldp_Parameter
Nonvolatile attribute parameter of LLDP Management object.
Definition: EI_API_def.h:250
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_stub.c:256