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 />

LOCAL int vxMpscUartPollInput(SIO_CHAN *pSioChan, char *thisChar)<br />

DESCRIPTION This function receives a character using the given serial channel.<br />

The routine fills the given char buffer with the received char.<br />

INPUT<br />

*pSioChan SIO channel struct.<br />

*thisChar Rx character buffer.<br />

OUTPUT Calling the channel receive routine with the proper packet in<strong>for</strong>mation.<br />

RETURN<br />

OK If a character arrived<br />

ERROR On device error<br />

EAGAIN If the output buffer if full.<br />

LOCAL int vxMpscUartPollOutput(SIO_CHAN *pSioChan, char outChar)<br />

DESCRIPTION This function transmits a character using the given serial channel.<br />

The routine fills the packet in<strong>for</strong>mation struct with the proper<br />

in<strong>for</strong>mation <strong>for</strong> the given character.<br />

INPUT<br />

*pSioChan SIO channel struct.<br />

outChar The transmitted character.<br />

OUTPUT Calling the channel transmit routine with the proper packet in<strong>for</strong>mation.<br />

5 - 104 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!