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<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/ai.h&gt;
19
20u32 AIGetDMALength(void);
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<p>None.</p>
25
26<h2>Return Values</h2>
27<p>Returns the DMA size (in bytes, always 32-byte aligned) as set by AI DMA controller.</p>
28
29<h2>Description</h2>
30<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>
31
32<p>The value that the <code>AIGetDMALength</code> function returns is the length of the next AI DMA transaction.</p>
33
34<h2>See Also</h2>
35<P class="reference">
36<a href="AIInitDMA.html">AIInitDMA</a>
37</P>
38
39<H2>Revision History</H2>
40<P>
412006/03/01 Initial version.<br>
42</P>
43
44<hr><p>CONFIDENTIAL</p></body>
45</html>
46