uint32_t EI_API_CIP_setInstanceServiceFunc | ( | T * | pCipNode_p, |
uint16_t | classId_p, | ||
uint16_t | instanceId_p, | ||
EI_API_CIP_SService_t * | pService_p | ||
) |
Add a callback function to an instance service.
This function adds a callback function to a service which is registered for that instance.
[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 error code. |
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_DOES_NOT_EXIST | Service does no exist. |
EI_API_CIP_eERR_SERVICE_INVALID | Service is invalid, possibly NULL pointer. |
EI_API_CIP_eERR_INSTANCE_UNKNOWN_STATE | Unknown state during class operation reached. |