uint32_t EI_API_CIP_addInstanceService | ( | T * | pCipNode_p, |
uint16_t | classId_p, | ||
uint16_t | instanceId_p, | ||
EI_API_CIP_SService_t * | pService_p | ||
) |
Add one or more service/s to the class instance.
This function adds one or more service/s to the class with the class and instance identifiers passed as parameters classId_p
and instanceId_p
.
[in] | pCipNode_p | Pointer to the CIP node. |
[in] | classId_p | Class identifier. |
[in] | instanceId_p | Instance identifier. |
[in] | pService_p | Service or services the class will support. |
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_CLASS_BLACKLIST | Operation on the CIP object with specified identifier (class ID) are not allowed. |
EI_API_CIP_eERR_CLASS_DOES_NOT_EXIST | Class does not exists in CIP node dictionary. |
EI_API_CIP_eERR_INSTANCE_DOES_NOT_EXIST | Instance does not exist in CIP node dictionary. |
EI_API_CIP_eERR_SERVICE_ALREADY_EXIST | Service already exist. |
EI_API_CIP_eERR_SERVICE_PARAMETER | Wrong or invalid service parameters. |
EI_API_CIP_eERR_SERVICE_INVALID | Service is invalid, possibly NULL pointer. |
EI_API_CIP_eERR_MEMALLOC | Memory allocation error. |
EI_API_CIP_eERR_NOT_IMPLEMENTED | Not implemented function. |
EI_API_CIP_eERR_CLASS_UNKNOWN_STATE | Unknown state during class operation reached. |