uint32_t EI_API_CIP_setClassAttr | ( | T * | pCipNode_p, |
uint16_t | classId_p, | ||
EI_API_CIP_SAttr_t * | pAttr_p | ||
) |
Set class attribute value.
This function sets the value of a class attribute. The value is passed in a struct of EI_API_CIP_SAttr_t
.
[in] | pCipNode_p | Pointer to the CIP node. |
[in] | classId_p | Class 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. |