AMX 86 Frozen Dessert Maker User Manual


 
334
K
A
DAK
AMX 86 Procedures
ajtmwr ajtmwr
Purpose Start/Stop an Interval Timer
Used by
n Task n ISP n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID timerid;
long tval;
int status;
.
.
status = ajtmwr(timerid, tval);
AX DX BX:CX
Where timerid is the timer id identifying the timer to be started or stopped.
tval is the timer interval measured in AMX system ticks. Tval must be
positive. Set tval to 0 to stop a timer.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Status is returned.
AEROK = Call successful
AERNSTM = Invalid timer id
AERTMV = Invalid interval (<0)
Note A Timer Procedure associated with a periodic timer can stop the timer by
calling ajtmwr with tval = 0. The periodic timer can be restarted by
calling ajtmwr with tval = n. The timer will expire after n system ticks
and resume periodic operation with its predefined period.
Non periodic timers (one-shots) can be retriggered by their associated
Timer Procedure using
ajtmwr to restart the timer.
See Also
ajtmcre, ajtmrd