uint32_t EI_API_CIP_setInstanceAttrFunc | ( | T * | pCipNode_p, |
uint16_t | classId_p, | ||
uint16_t | instanceId_p, | ||
EI_API_CIP_SAttr_t * | pAttr_p | ||
) |
Register a callback function to a specific CIP attribute.
This function can be used to register a callback function to a CIP attribute. The callback will be executed if the registers access rule (get or set) are triggered.
[in] | pCipNode_p | Pointer to the CIP node. |
[in] | classId_p | Class identifier. |
[in] | instanceId_p | Instance identifier. |
[in] | pAttr_p | Pointer to struct of attribute parameters. |
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_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_ATTRIBUTE_DOES_NOT_EXIST | Attribute does not exist in class or instance. |
EI_API_CIP_eERR_ATTRIBUTE_INVALID_CALLBACK | Callback can not be registered (invalid function pointer). |
EI_API_CIP_eERR_ATTRIBUTE_UNKNOWN_STATE | Unknown state during attribute operation reached. |