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.

268 CHAPTER 6. T-KERNEL/DS FUNCTIONS<br />

td ref tex<br />

Reference Task Exception Status<br />

[C Language Interface]<br />

ER ercd = td_ref_tex ( ID tskid, TD_RTEX *pk_rtex );<br />

[Parameters]<br />

ID tskid Task ID (TSK SELF can be designated)<br />

TD RTEX* pk rtex Packet address for returning the task exception status<br />

[Return Parameters]<br />

ER ercd Error code<br />

pk rtex detail:<br />

UINT pendtex Raised task exceptions<br />

UINT texmask Allowed task exceptions<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOEXS<br />

Normal completion<br />

Bad identifier<br />

Object does not exist<br />

[Description]<br />

Gets the task exception status. This is similar to tk ref tex.<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!