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 http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>KPADInitEx</title>
9</head>
10
11<body>
12
13<h1>KPADInitEx</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/kpad.h&gt;
18
19typedef struct KPADUnifiedWpadStatus {
20    union {
21        WPADStatus      core ;
22        WPADFSStatus    fs ;
23        WPADCLStatus    cl ;
24        WPADTRStatus    tr ;
25        WPADBLStatus    bl ;
26    } u ;
27    u8     fmt ;
28    u8     padding ;
29} KPADUnifiedWpadStatus ;
30
31void KPADInitEx( KPADUnifiedWpadStatus uniRingBufs[], u32 length );
32</pre></dd></dl>
33
34<h2>Arguments</h2>
35<TABLE class="arguments" border="1" >
36  <tr>
37<TH>uniRingBufs</TH>
38<TD>Buffer array to append to the ring buffer used internally by the library. The size of the array should be a multiple of <CODE>WPAD_MAX_CONTROLLERS</CODE>.</TD>
39  </tr>
40  <tr>
41<TH>length</TH>
42<TD>Size of <SPAN class="argument">uniRingBufs</SPAN>.</TD>
43  </tr>
44</TABLE>
45
46<h2>Return Values</h2>
47<p>None.</p>
48
49<H2>Description</H2>
50<p>
51This function initializes the KPAD library. This function must be called once before calling any other KPAD functions. However, call <a href="../wpad/WPADRegisterAllocator.html"><CODE>WPADRegisterAllocator</CODE></a> to register the allocator function used to allocate and deallocate memory for the WPAD library before calling this function. <a href="../wpad/WPADInit.html"><CODE>WPADInit</CODE></a> is called inside this function.
52</p>
53
54<h2>See Also</h2>
55<p class="reference">
56<a href="./KPADInit.html">KPADInit</a>
57</p>
58
59<H2>Revision History</H2>
60<P>
612008/06/04 Modified the buffer passed by the argument to be appended to the internal ring buffer.<br>2008/05/29 Initial version.<br>
62</P>
63
64<hr><p>CONFIDENTIAL</p></body>
65</html>