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>AIRegisterDMACallback</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">AIRegisterDMACallback</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/ai.h&gt;
19
20typedef void (*AIDCallback)(void);
21
22AIDCallback AIRegisterDMACallback(AIDCallback callback);
23</pre></dd></dl>
24
25<h2>Arguments</h2>
26<TABLE class="arguments" border="1" >
27  <tr>
28<th>callback</th>
29<td>Callback function for the AI DMA interrupt (<code>AIDINT</code>).</td>
30  </tr>
31</table>
32
33<h2>Return Values</h2>
34<p>Returns a pointer to the old callback function already registered. Returns <code>NULL</code> if no callback function has been registered.</p>
35
36<h2>Description</h2>
37<p>The <code>AIRegisterDMACallback</code> function registers the callback function to be invoked for the AI-DMA interrupt (<code>AIDINT</code>). The existing callback function is replaced by the new callback function unconditionally. The callback function is deleted if <code>NULL</code> is specified for an argument and no callback function will ever be called in response to an AI DMA interrupt.</p>
38
39<h2>See Also</h2>
40<P>None.</P>
41
42<H2>Revision History</H2>
43<P>
442006/03/01 Initial version.<BR>
45</P>
46
47<hr><p>CONFIDENTIAL</p></body>
48</html>
49