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_SetNDmaBlockWord</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">MI_SetNDmaBlockWord <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_SetNDmaBlockWord( u32 ndmaNo, u32 word );</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>word</STRONG></EM></TD> 27 <TD>Number of words in the block transfer. Expressed as "MI_NDMA_BWORD_n."</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 block transfer word count when the TWL's new DMA is run.</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>word</I></B>, specify the block transfer word count. The values that can be specified are listed below.<BR> 37</P> 38<TABLE border="1"> 39 <TBODY> 40 <TR> 41 <TH>Value</TH> 42 <TH>Description</TH> 43 </TR> 44 <TR> 45 <TD><CODE>MI_NDMA_BWORD_1</CODE></TD> 46 <TD>1 word </TD> 47 </TR> 48 <TR> 49 <TD><CODE>MI_NDMA_BWORD_2</CODE></TD> 50 <TD>2 words</TD> 51 </TR> 52 <TR> 53 <TD><CODE>MI_NDMA_BWORD_4</CODE></TD> 54 <TD>4 words</TD> 55 </TR> 56 <TR> 57 <TD><CODE>MI_NDMA_BWORD_8</CODE></TD> 58 <TD>8 words</TD> 59 </TR> 60 <TR> 61 <TD><CODE>MI_NDMA_BWORD_16</CODE></TD> 62 <TD>16 words</TD> 63 </TR> 64 <TR> 65 <TD><CODE>MI_NDMA_BWORD_32</CODE></TD> 66 <TD>32 words</TD> 67 </TR> 68 <TR> 69 <TD><CODE>MI_NDMA_BWORD_64</CODE></TD> 70 <TD>64 words</TD> 71 </TR> 72 <TR> 73 <TD><CODE>MI_NDMA_BWORD_128</CODE></TD> 74 <TD>128 words</TD> 75 </TR> 76 <TR> 77 <TD><CODE>MI_NDMA_BWORD_256</CODE></TD> 78 <TD>256 words</TD> 79 </TR> 80 <TR> 81 <TD><CODE>MI_NDMA_BWORD_512</CODE></TD> 82 <TD>512 words</TD> 83 </TR> 84 <TR> 85 <TD><CODE>MI_NDMA_BWORD_1024</CODE></TD> 86 <TD>1024 words</TD> 87 </TR> 88 <TR> 89 <TD><CODE>MI_NDMA_BWORD_2048</CODE></TD> 90 <TD>2048 words</TD> 91 </TR> 92 <TR> 93 <TD><CODE>MI_NDMA_BWORD_4096</CODE></TD> 94 <TD>4096 words</TD> 95 </TR> 96 <TR> 97 <TD><CODE>MI_NDMA_BWORD_8192</CODE></TD> 98 <TD>8192 words</TD> 99 </TR> 100 <TR> 101 <TD><CODE>MI_NDMA_BWORD_16384</CODE></TD> 102 <TD>16384 words</TD> 103 </TR> 104 <TR> 105 <TD><CODE>MI_NDMA_BWORD_32768</CODE></TD> 106 <TD>32768 words</TD> 107 </TR> 108 </TBODY> 109</TABLE> 110<H2>Internal Operation</H2> 111<P>Overwrites the library's internal DMA config structure. This value will later become the values of d19-16 in the DMAx_CNT register.</P> 112<H2>See Also</H2> 113<P><CODE><A href="MI_GetNDmaBlockWord.html">MI_GetNDmaBlockWord()</A><BR></CODE></P> 114<H2>Revision History</H2> 115<P>2007/09/06 Initial version.</P> 116<hr><p>CONFIDENTIAL</p></body> 117</HTML>