uint32_t EI_API_CIP_setInstanceAttr | ( | T * | pCipNode_p, |
uint16_t | classId_p, | ||
uint16_t | instanceId_p, | ||
EI_API_CIP_SAttr_t * | pAttr_p | ||
) |
Set instance attribute value only.
This function can be used to set the value of a instance attribute. The values are passed in a struct of type EI_API_CIP_SAttr_t
.
[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_VALUE | Invalid data pointer. |
EI_API_CIP_eERR_ATTRIBUTE_UNKNOWN_STATE | Unknown state during attribute operation reached. |