EtherNet/IP™ Adapter  1.04.06
User Reference Manual

◆ EI_API_CIP_NODE_new()

T* EI_API_CIP_NODE_new ( void  )

Create a new CIP node.

All CIP API functions require a CIP node object. The EI_API_CIP_NODE_new function creates this object and returns a pointer to it.

Remarks
The returned CIP node pointer is used by all other CIP API functions. Note that it is not possible to create more than one CIP node. If this function is called more than once, always the pointer to the initially created CIP node is returned.
Returns
EI_API_CIP_NODE_T Pointer to the created CIP node.
Example
#include <api/EI_API.h>
// CIP node pointer
EI_API_CIP_NODE_T* pEI_API_CIP_NODE = NULL;
// create a CIP node
pEI_API_CIP_NODE = EI_API_CIP_NODE_new();
See also
EI_API_CIP_NODE_delete
EI_API_CIP_NODE_new
ETHIP_API T * EI_API_CIP_NODE_new(void)
Create a new CIP node.
Definition: EI_API_CIP_main.c:69