1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
6<title>AIGetDMALength</title>
7<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
8<META name="GENERATOR" content="Microsoft FrontPage 5.0">
9<META http-equiv="Content-Style-Type" content="text/css">
10</head>
11
12<body>
13
14<h1 align="left">AIGetDMALength</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><CODE>#include &lt;revolution.h&gt;</CODE></pre>
21  </dd>
22<dd><pre><CODE>u32 AIGetDMALength(void);</CODE></pre>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27
28<p>None.</p>
29
30<h2>Return Values</h2>
31
32<p>Returns the DMA length (in bytes, always 32-byte aligned) as set by <code>AIInitDMA</code>.</p>
33
34<h2>Description</h2>
35
36<p>The <code>AIGetDMALength</code> function gets the DMA length currently being programmed for the AI DMA controller (the DMA length registered by the <code>AIInitDMA</code> function that was called immediately before). Measured in bytes, this data is aligned on a 32-byte boundary--the same as the DMA block size.</p>
37
38<p>The value that the <code>AIGetDMALength</code> function returns is the length of the next AI DMA transaction.</p>
39
40<h2>See Also</h2>
41
42<P>
43<a href="AIInitDMA.html"><code>AIInitDMA</code></a>
44</P>
45
46<H2>Revision History</H2>
47<P>03/01/2006 Initial version.</P>
48
49</body>
50</html>
51