20.12.2012 Views

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

API Call Reference List of APIs<br />

Table 3:General Driver API Synopsis<br />

Macro Description<br />

GT_READSHORT(addr<br />

ess)<br />

GT_READWORD(addre<br />

ss)<br />

GT_READCHAR_CAC<br />

HEABLE(address)<br />

GT_READSHORT_CAC<br />

HEABLE(address)<br />

GT_READWORD_CAC<br />

HEABLE(address)<br />

GT_SET_REG_BITS(offset,<br />

bits)<br />

GT_RESET_REG_BITS(o<br />

ffset, bits)<br />

Returns a short from an address.<br />

Returns a word from an address.<br />

Same as READCHAR <strong>for</strong> PPC CPUs.<br />

Same as READSHORT <strong>for</strong> PPC CPUs.<br />

Same as READWORD <strong>for</strong> PPC CPUs.<br />

Sets the specified bits in the given register.<br />

Resets the specified bits in the given register.<br />

GT_REGREAD(offset) Returns a swapped value of a register.<br />

GT_WORD_SWAP(32bit<br />

Word)<br />

GT_SHORT_SWAP(16bi<br />

tShort)<br />

GT_LONG_SWAP(64bit<br />

Dword)<br />

Changes the endianess of a given word.<br />

Changes the endianess of a given short.<br />

Changes the endianess of a given long word.<br />

VxWorks 5.5/Tornado <strong>2.2</strong> <strong>BSP</strong> <strong>Rel</strong>. <strong>1.0</strong> <strong>for</strong> <strong>PPMC</strong>-<strong>275</strong> 5 - 5

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

Saved successfully!

Ooh no, something went wrong!