EtherNet/IP™ Adapter3.09.00
 
Loading...
Searching...
No Matches

◆ 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 "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);
ETHIP_API T * EI_API_ADP_new(uint8_t numInterfaces_p)
Create a new EtherNet/IP adapter.
Definition EI_API_ADP_stub.c:231
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:5163
uint8_t allBits
Definition EI_API_def.h:294
uint16_t msgTxInterval
Definition EI_API_def.h:303
union EI_API_ADP_SLldp_Parameter::@3 enableArray
uint16_t enableArrayLength
Definition EI_API_def.h:291
uint8_t msgTxHold
Definition EI_API_def.h:305
Nonvolatile attribute parameter of LLDP Management object.
Definition EI_API_def.h:290
See also
EI_API_ADP_getLldpParameter EI_API_ADP_EError_t