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

◆ EI_API_CIP_NODE_new()

T * EI_API_CIP_NODE_new ( EI_API_CIP_NODE_InitParams_t pInitParams)

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.
Parameters
[in]pInitParamsPointer to initialization parameters of CIP node.
Returns
EI_API_CIP_NODE_T Pointer to the created CIP node.
Example
#include "EI_API.h"
// CIP node pointer
EI_API_CIP_NODE_T* pEI_API_CIP_NODE = NULL;
// create a CIP node
initParams.maxInstanceNum = 256;
pEI_API_CIP_NODE = EI_API_CIP_NODE_new(&initParams);
ETHIP_API T * EI_API_CIP_NODE_new(EI_API_CIP_NODE_InitParams_t *pInitParams)
Create a new CIP node.
Definition EI_API_CIP_stub.c:81
uint16_t maxInstanceNum
Definition EI_API_CIP_define.h:162
Initialization parameters to create new CIP Node.
Definition EI_API_CIP_define.h:161
See also
EI_API_CIP_NODE_delete