1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>MI_TimerNDmaCopy</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">MI_TimerNDmaCopy <IMG src="../../image/TWL.gif" width="24" height="12" border="0" align=middle></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD><CODE>#include <twl/mi.h></CODE><BR> 15 <BR> 16 <CODE>void MI_TimerNDmaCopy( u32 ndmaNo, <BR> 17 u32 timerNo,<BR> 18 const void* src,<BR> 19 void *dest,<BR> 20 u32 size);</CODE> 21</DL> 22<H2>Arguments</H2> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26 <TD><EM><STRONG>ndmaNo</STRONG></EM></TD> 27 <TD>DMA channel used.</TD> 28 </TR> 29 <TR> 30 <TD><B><I>timerNo</I></B></TD> 31 <TD>Timer number.</TD> 32 </TR> 33 <TR> 34 <TD><B><I>src</I></B></TD> 35 <TD>The transfer source address.</TD> 36 </TR> 37 <TR> 38 <TD><B><I>dest</I></B></TD> 39 <TD>The transfer destination address.</TD> 40 </TR> 41 <TR> 42 <TD><B><I>size</I></B></TD> 43 <TD>Transfer size.</TD> 44 </TR> 45 </TBODY> 46</TABLE> 47<H2>Return Values</H2> 48<P>None.</P> 49<H2>Description</H2> 50<P>Uses the new DMA to copy using a timer. DMA will run when a timer interrupt occurs.</P> 51<P>It uses the new DMA to perform copies in word (4-byte) units. Both the transfer source address (<B><I>src</I></B>) and the transfer destination address (<B><I>dest</I></B>) must be 4-byte aligned. The transfer size (<em><strong><code>size</code></strong></em>) needs to be a multiple of 4.</P> 52<P>The timer is not set within the function. Care must be taken when setting timers in the application because some are used by the system.</P> 53<H2>Internal Operation</H2> 54<P>Accesses the new DMA register.</P> 55<H2>See Also</H2> 56<P><CODE><A href="MI_NDmaCopy.html">MI_NDmaCopy</A><BR></CODE></P> 57<H2>Revision History</H2> 58<P>2007/10/04 Initial version.</P> 59<hr><p>CONFIDENTIAL</p></body> 60</HTML>