uint32_t EI_API_ADP_setRevision | ( | T * | pAdp_p, |
EI_API_ADP_SRevision_t | revision_p | ||
) |
Set the adapter Revision (Instance Attribute ID: 4).
Function that sets the revision of the adapter selected by parameter pAdp_p
. The revision is divided into major and minor revision number, each of type uint8_t
. The Major Revision is limited to values between 1 and 127, bit 7 of the major revision field (for values 128 to 255) is reserved by CIP and shall have a value of zero.
[in] | pAdp_p | Pointer to the adapter. |
[in] | revision_p | Structure with new revision. |
EI_API_ADP_eERR_OK | Success. |
EI_API_ADP_eERR_GENERAL | General error. |