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

INPUT<br />

MPSC_CHANNEL<br />

*mpscChan<br />

Note: In order to stop a complete serial channel Rx, the MPSC<br />

channel Rx should be stopped be<strong>for</strong>e the SDMA channel Rx.<br />

MPSC channel struct.<br />

OUTPUT MPSC Rx activity is stopped. MPSC channel register 2 (Command<br />

Register) should clear the Rx abort bit upon entering Rx IDLE<br />

state.<br />

RETURN Not Applicable.<br />

void mpscChanStopTxRx(MPSC_CHANNEL *mpscChan)<br />

This function stops Tx and Rx activity of a given MPSC channel<br />

simultaneously.<br />

INPUT<br />

MPSC_CHANNEL<br />

*mpscChan<br />

MPSC channel struct.<br />

OUTPUT MPSC Tx and Rx activity are stopped. MPSC channel register 10<br />

(Event Status Register) should mark that the Tx and Rx are in idle<br />

state.<br />

RETURN Not Applicable<br />

bool mpscChanSetCdv(MPSC_CHANNEL *mpscChan, int mpscCdv)<br />

This function sets the MPSC Tx and Rx clock divider according to<br />

a given parameter.<br />

Note: This function sets TCDV and RCDV with the same value.<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 - 87

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

Saved successfully!

Ooh no, something went wrong!