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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.2. TASK-DEPENDENT SYNCHRONIZATION FUNCTIONS 65<br />

tk wai tev<br />

Wait Task Event<br />

[C Language Interface]<br />

INT tevptn = tk_wai_tev ( INT waiptn, TMO tmout ) ;<br />

[Parameters]<br />

INT waiptn Task event pattern<br />

TMO tmout Timeout designation<br />

[Return Parameters]<br />

INT tevptn Task event status when wait released<br />

or Error Code<br />

[Error Codes]<br />

E OK<br />

E PAR<br />

E RLWAI<br />

E DISWAI<br />

E TMOUT<br />

E CTX<br />

Normal completion<br />

Parameter error (waiptn or tmout is invalid)<br />

Wait state released (tk rel wai received in wait state)<br />

Wait released by wait disabled state<br />

Polling failed or timeout<br />

Context error (issued from task-independent portion or in dispatch disabled state)<br />

[Description]<br />

Waits for the occurrence of one of the task events designated in waiptn.<br />

When the wait is released by a task event, the task events designated in waiptn are cleared (raised task<br />

event &= ~waiptn).<br />

The task event status occurring when the wait was released (the state before clearing) is passed in the<br />

return code (tevptn).<br />

The parameters waiptn and tevptn consist of logical OR values of the bits for each task event in the<br />

form 1

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

Saved successfully!

Ooh no, something went wrong!