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.9. SYSTEM MANAGEMENT FUNCTIONS 201<br />

tk ref ver<br />

Reference Version Information<br />

[C Language Interface]<br />

ER ercd = tk_ref_ver ( T_RVER *pk_rver ) ;<br />

[Parameters]<br />

T RVER* pk rver Start address of version information packet<br />

[Return Parameters]<br />

ER ercd Error code<br />

pk rver detail:<br />

UH maker T-<strong>Kernel</strong> maker code<br />

UH prid T-<strong>Kernel</strong> ID<br />

UH spver <strong>Specification</strong> version<br />

UH prver T-<strong>Kernel</strong> version<br />

UH prno[4] T-<strong>Kernel</strong> products management information<br />

[Error Codes]<br />

E OK<br />

E PAR<br />

Normal completion<br />

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

[Description]<br />

Gets information about the T-<strong>Kernel</strong> version in use, returning that information in the packet designated<br />

in pk rver. The following information can be obtained.<br />

maker is the maker code of the T-<strong>Kernel</strong> implementing vendor. The maker field has the format shown<br />

in Figure 4.11.<br />

[maker]<br />

maker<br />

Figure 4.11: maker Field Format<br />

prid is a number indicating the T-<strong>Kernel</strong> type. The prid format is shown in Figure 4.12.<br />

Assignment of values to prid is left up to the vendor implementing T-<strong>Kernel</strong>. Note, however, that this<br />

is the only number distinguishing product types, and that vendors should give careful thought to how<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!