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

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

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

List of APIs API Call Reference<br />

RETURN<br />

SDMA_ERROR In case the routine can not access Tx desc ring.<br />

SDMA_RETRY In case the routine could not release descriptor.<br />

SDMA_END_OF_JOB‘If the routine has nothing to release.<br />

SDMA_OK Otherwise.<br />

SDMA_STATUS sdmaChanReceive(SDMA_CHANNEL *sdmaChan, PKT_INFO *pPktInfo)<br />

This routine returns the received data to the caller. There is no<br />

data copying during routine operation. All in<strong>for</strong>mation is returned<br />

using pointer to packet in<strong>for</strong>mation struct. If the routine exhausts<br />

the Rx ring resources the resource error flag is set.<br />

INPUT<br />

SDMA_CHANNEL<br />

*sdmaChan<br />

PKT_INFO<br />

*pPktInfo<br />

SDMA channel struct pointer<br />

Packet struct pointer.<br />

OUTPUT Rx ring current and used indexes are updated.<br />

RETURN<br />

SDMA_ERROR In case the routine can not access Rx desc ring.<br />

SDMA_QUEUE_FULL If Rx ring resources are exhausted.<br />

SDMA_END_OF_JOB If there is no received data.<br />

SDMA_OK Otherwise.<br />

5 - 64 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>

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

Saved successfully!

Ooh no, something went wrong!