30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

180 CHAPTER 4. T-KERNEL/OS FUNCTIONS<br />

tk sta alm<br />

Start Alarm Handler<br />

[C Language Interface]<br />

ER ercd = tk_sta_alm ( ID almid, RELTIM almtim ) ;<br />

[Parameters]<br />

ID almid Alarm handler ID<br />

RELTIM almtim Alarm handler start time (alarm time)<br />

[Return Parameters]<br />

ER ercd Error code<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOEXS<br />

Normal completion<br />

Invalid ID number (almid is invalid or cannot be used)<br />

Object does not exist (the alarm handler designated in almid does not exist)<br />

[Description]<br />

Sets the alarm time of the alarm handler designated in almid to the time given in almtim, putting the<br />

alarm handler in active state. almtim is designated as relative time from the time of calling tk sta alm.<br />

After the time designated in almtim has elapsed, the alarm handler starts. If the alarm handler is<br />

already active when this system call is invoked, the existing almtim setting is canceled and the alarm<br />

handler is activated anew with the alarm time designated here.<br />

If almtim = 0 is set, the alarm handler starts as soon as it is activated.<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!