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_SetNDmaWordCount</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">MI_SetNDmaWordCount <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_SetNDmaWordCount( u32 ndmaNo, u32 wordCount );</CODE> 17 </DL> 18<H2>Arguments</H2> 19<TABLE border="1" width="100%"> 20 <TBODY> 21 <TR> 22 <TD><EM><STRONG>ndmaNo</STRONG></EM></TD> 23 <TD>DMA number to configure (0-3)</TD> 24 </TR> 25 <TR> 26 <TD><EM><STRONG>wordCount</STRONG></EM></TD> 27 <TD>Word count value. (0 - 0xFFFFFF)</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31<H2>Return Values</H2> 32<P>None.</P> 33<H2>Description</H2> 34<P>Sets the default transfer word count when the TWL's new DMA is running.</P> 35<P>The target is the DMA specified in <B><I>ndmaNo</I></B>. Here, the only action that's taking place is that the internal DMA config structure is being overwritten. The actual I/O registers cannot be overwritten until they are running.</P> 36<P>In <B><I>wordCount</I></B>, specify the transfer word count for each DMA startup request. Values in the range 0 - 0xFFFFFF can be set. However, specifying a 0 will set the number of words to 0x1000000.</P> 37 38 39<H2>Internal Operation</H2> 40<P>Overwrites the library's internal DMA config structure. This value will later become the value in the DMAxWCNT register.</P> 41<H2>See Also</H2> 42<P><CODE><A href="MI_GetNDmaWordCount.html">MI_GetNDmaWordCount()</A><BR></CODE></P> 43<H2>Revision History</H2> 44<P>2007/09/06 Initial version.</P> 45<hr><p>CONFIDENTIAL</p></body> 46</HTML>