EtherNet/IP™ Adapter3.02.00

◆ EI_API_ADP_setLldpParameter()

uint32_t EI_API_ADP_setLldpParameter ( T *  pAdp_p,
EI_API_ADP_SLldp_Parameter_t  lldpParameter_p 
)

Set attribute values in LLDP Management Object (ID 0x0109).

Function that sets the required attributes in 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]lldpParameter_pNew 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 parameters.
lldpParameter.enableArrayLength = 3:
lldpParameter.enableArray.allBits = 7;
lldpParameter.msgTxInterval = 30;
lldpParameter.msgTxHold = 4;
errCode = EI_API_ADP_setLldpParameter(pEI_API_ADP, lldpParameter);
See also
EI_API_ADP_getLldpParameter EI_API_ADP_EError_t
EI_API_ADP_SLldp_Parameter::enableArray
union EI_API_ADP_SLldp_Parameter::@3 enableArray
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::msgTxHold
uint8_t msgTxHold
Definition: EI_API_def.h:266
EI_API_ADP_SLldp_Parameter
Nonvolatile attribute parameter of LLDP Management object.
Definition: EI_API_def.h:250
EI_API_ADP_SLldp_Parameter::allBits
uint8_t allBits
Definition: EI_API_def.h:255
EI_API_ADP_SLldp_Parameter::enableArrayLength
uint16_t enableArrayLength
Definition: EI_API_def.h:252
EI_API_ADP_SLldp_Parameter::msgTxInterval
uint16_t msgTxInterval
Definition: EI_API_def.h:264
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