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="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<TITLE>WXC_Init</TITLE>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">WXC_Init <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;nitro/wxc.h&gt;</CODE><BR> <BR> <CODE>void WXC_Init(void *work, WXCCallback callback, u32 dma);</CODE><br> <br>
20  </dd>
21</dl>
22<h2>Arguments</h2>
23<TABLE border="1" width="100%">
24  <TBODY>
25    <TR>
26<TD width="13%"><EM><STRONG>work</STRONG></EM></TD>
27<TD width="87%">Pointer to memory allocated for the internal state management of the WXC library.<BR> The size must be equal to or larger than <a href="../wxc_consts.html">WXC_WORK_SIZE</a> bytes. The allocated memory is used internally until the <href="WXC_End.html">WXC_End</a> function is called.
28    </TR>
29    <TR>
30<TD width="13%"><EM><STRONG>callback</STRONG></EM></TD>
31<TD width="87%">Callback function that receives notification from the WXC library.</TD>
32    </TR>
33    <TR>
34<TD width="13%"><EM><STRONG>dma</STRONG></EM></TD>
35<TD width="87%">DMA channel used internally in the WXC library.</TD>
36    </TR>
37  </TBODY>
38</TABLE>
39<h2>Return Values</h2>
40<p>None.</p>
41
42<H2>Description</H2>
43<P>Initializes the WXC library. <BR>It must be called at least once before any WXC function is called.<BR>Calling this function more than once does nothing. During calls to this function, the library's internal state transitions from <a href="../WXCStateCode.html">WXC_STATE_END</a> to <a href="../WXCStateCode.html">WXC_STATE_READY</a>. <br><BR> After calling this function, to start the actual internal wireless operation, <a href="WXC_Start.html">WXC_Start</a> function must be called. <BR>
44</p>
45<h2>See Also</h2>
46<p><CODE><A href="../WXCCallback.html">WXCCallback</A><BR><A href="../WXCStateCode.html">WXCStateCode</A><BR><a href="../wxc_consts.html">WXC_WORK_SIZE</a><br><A href="WXC_Start.html">WXC_Start</A><BR><A href="WXC_End.html">WXC_End</A></CODE></P>
47<H2>Revision History</H2>
48<P>
492005/08/04 Initial version.
50</P>
51<hr><p>CONFIDENTIAL</p></body>
52</html>
53