To get access to the record definitions for the structures use:
-include_lib("cosTime/include/*.hrl").
'_get_status'(TimerEventHandler) -> Reply
TimerEventHandler = #objref
Reply = 'ESTimeSet' | 'ESTimeCleared' | 'ESTriggered' | 'ESFailedTrigger'
This operation returns the status of the target object.
If the target object is of type 'TTPeriodic' the status value 'ESTriggered' is not valid.
time_set(TimerEventHandler) -> Reply
TimerEventHandler = #objref
Reply = {boolean(), UTO}
UTO = #objref
This operation returns true
if the time has been set for an event that
is yet to be triggered, false
otherwise. The outparameter represents
the current time value of the target object.
set_timer(TimerEventHandler, TimeType, TriggerTime) -> void()
TimerEventHandler = #objref
TimeType = 'TTAbsolute' | 'TTRelative' | 'TTPeriodic'
TriggerTime = UTO
UTO = #objref
This operation terminates any previous set trigger, and set a new trigger
specified by the TimeType
and UTO
object.
The relation between the UTO object and the TimeTypes are:
cancel_timer(TimerEventHandler) -> boolean()
TimerEventHandler = #objref
This operation cancel, if possible, the triggering of event(s). Returns
true
if an event is actually canceled, false
otherwise.
set_data(TimerEventHandler, EventData) -> ok
TimerEventHandler = #objref
EventData = #any
This operation changes the event data sent when triggered.