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.

API Call Reference List of APIs<br />

void frcDmaTestStart0(DMA_ENGINE dmaEngine, unsigned int xferSize, char srcIf, char tgtIf,<br />

char dmaData, unsigned int dmaDtl)<br />

This routine spawns a task on the CPU that copies data from<br />

DRAM/SRAM/PCI to DRAM/SRAM or PCI. After initiating the<br />

transfer, it waits <strong>for</strong> the completion signal from interrupt handler.<br />

It then computes the checksum at the destination to verify that the<br />

transfer is indeed complete without any errors.<br />

INPUT<br />

DmaEngine One of the 4 DMA engines<br />

XferSize Transfer size<br />

srcIf Source interface which indicates DRAM/SRAM or PCI<br />

tgtIf Target interface which indicates DRAM/SRAM or PCI<br />

dmaData Data that has to be transferred.<br />

DmaDtl The DMA command that has to be combined with the<br />

block_transfer_mode command.<br />

OUTPUT Output Transfers the dmadata between the two interfaces through<br />

the DMA engine<br />

RETURNS Not Applicable.<br />

void frcDmaTestStart1(DMA_ENGINE dmaEngine, unsigned int xferSize, char srcIf, char tgtIf,<br />

char dmaData, unsigned int dmaDtl)<br />

This routine spawns a task on the CPU that copies data from<br />

DRAM/SRAM/PCI to DRAM/SRAM or PCI. After initiating the<br />

transfer, it waits <strong>for</strong> the completion signal from interrupt handler.<br />

It then computes the checksum at the destination to<br />

verify that the transfer is indeed complete without any errors.<br />

INPUT<br />

DmaEngine One of the four DMA engines<br />

XferSize Transfer size<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 - 151

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

Saved successfully!

Ooh no, something went wrong!