Added getter for the time of the timeActivated controls.

pull/183/head
Király Péter 6 years ago
parent a39397d21d
commit 7ed8516344

@ -1194,6 +1194,16 @@ ControlAction_getClientConnection(ControlAction self);
LIB61850_API DataObject*
ControlAction_getControlObject(ControlAction self);
/**
* \brief Gets the time of the control, if it's a timeActivatedControl, returns 0, if it's not.
*
* \param self the control action instance
*
* \return the controllable data object instance
*/
LIB61850_API uint64_t
ControlAction_getControlTime(ControlAction self);
/**
* \brief Control model callback to perform the static tests (optional).
*

@ -1777,5 +1777,13 @@ ControlAction_getControlObject(ControlAction self)
return controlObject->dataObject;
}
uint64_t
ControlAction_getControlTime(ControlAction self)
{
ControlObject* controlObject = (ControlObject*) self;
return controlObject->operateTime;
}
#endif /* (CONFIG_IEC61850_CONTROL_SERVICE == 1) */

Loading…
Cancel
Save