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.

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

tk ref tex<br />

Reference Task Exception Status<br />

[C Language Interface]<br />

ER ercd = tk_ref_tex ( ID tskid, T_RTEX *pk_rtex ) ;<br />

[Parameters]<br />

ID tskid Task ID<br />

T RTEX* pk rtex Address of packet for returning task exception status<br />

[Return Parameters]<br />

ER ercd Error code<br />

pk rtex detail:<br />

UINT pendtex Pending task exceptions<br />

UINT texmask Allowed task exceptions<br />

(Other implementation-dependent parameters may be added beyond this point.)<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOEXS<br />

E PAR<br />

Normal completion<br />

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

Object does not exist (the task designated in tskid does not exist)<br />

Parameter error (the return parameter packet address cannot be used)<br />

[Description]<br />

Gets the status of task exceptions for the task designated in tskid.<br />

pendtex indicates the currently pending task exceptions. A raised task exception is indicated in pendtex<br />

from the time the task exception is raised until its task exception handler is called.<br />

texmask indicates allowed task exceptions.<br />

Both pendtex and texmask are bit arrays of the form 1

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

Saved successfully!

Ooh no, something went wrong!