uint32_t EI_API_CIP_createInstance | ( | T * | pCipNode_p, |
uint16_t | classId_p, | ||
uint16_t | instanceId_p | ||
) |
Creates a CIP instance.
This function creates a CIP instance in a class. The class and instance identifiers are passed as parameters classId
and instanceId
.
[in] | pCipNode_p | Pointer to the CIP node. |
[in] | classId_p | Class identifier. |
[in] | instanceId_p | Instance identifier. |
EI_API_CIP_eERR_OK | Success. |
EI_API_CIP_eERR_NODE_INVALID | CIP node is invalid, possibly EI_API_CIP_NODE_new() was not called. |
EI_API_CIP_eERR_DICTIONARY_FULL | CIP dictionary is full, no more class or instance can be added. |
EI_API_CIP_eERR_CLASS_ALREADY_EXIST | Class already exists in CIP node dictionary. |
EI_API_CIP_eERR_INSTANCE_ALREADY_EXIST | Instance already exists in CIP node dictionary. |
EI_API_CIP_eERR_MEMALLOC | Memory allocation error. |
EI_API_CIP_eERR_INSTANCE_UNKNOWN_STATE | Unknown state during class operation reached. |