1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>GXInitFifoPtrs</title>
10</head>
11
12<body>
13
14<h1 align="left">GXInitFifoPtrs</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><PRE><CODE>#include &lt;revolution/gx.h&gt;</CODE></PRE>
21  </dd>
22<dd><pre><CODE>void GXInitFifoPtrs(
23<a href="../Structures/GXFifoObj.html">GXFifoObj</a>*  fifo,
24void*       read_ptr,
25void*       write_ptr );</CODE></pre>
26  </dd>
27</dl>
28
29<h2>Arguments</h2>
30<div align="left">
31<TABLE border="1" cellpadding="3" cellspacing="0.1">
32  <tr>
33<TD width="120" bgcolor="#ffffe8"><code><strong><em>fifo</em></strong></code></TD>
34<TD width="520">A pointer to the fifo structure</TD>
35    </tr>
36  <tr>
37<TD width="120" bgcolor="#ffffe8"><code><strong><em>read_ptr</em></strong></code></TD>
38<TD width="520">Pointer used to set the FIFO read pointer, 32-byte aligned.</TD>
39    </tr>
40  <tr>
41<TD width="120" bgcolor="#ffffe8"><code><strong><em>write_ptr</em></strong></code></TD>
42<TD width="520">Pointer used to set the FIFO write pointer, 32-byte aligned.</TD>
43    </tr>
44</TABLE>
45</div>
46
47<h2>Return Values</h2>
48
49<p>None.</p>
50<H2>Description</H2>
51<P>The function will set the <em><strong><code>fifo</code></strong></em> read and write pointers.&nbsp;This is normally done only during initialization of the FIFO.&nbsp;After that, the graphics hardware manages the FIFO pointers.</P>
52<P><B>Note:</B> For safety, this will cause an assert macro to fail if <code><strong><em>fifo</em></strong></code> is already connected to the CPU or GP.</P>
53
54
55
56
57<h2>See Also</h2>
58
59<p><a href="GXGetFifoBase.html">GXInitFifoBase</a><a href="GXInitFifoLimits.html"><br> GXInitFifoLimits</a><a href="GXSetCPUFifo.html"><br> GXSetCPUFifo</a><br> <a href="GXSetGPFifo.html">GXSetGPFifo</a></p>
60<H2>Revision History</H2>
61<P>03/01/2006 Initial version.</P>
62</body>
63</html>