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>PMICStart</title>
9</head>
10
11<body>
12
13<h1>PMICStart</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/pmic.h&gt;
18
19PMIC_ERR PMICStart(void);
20</pre></dd></dl>
21
22<h2>Arguments</h2>
23<p>None.</p>
24
25<h2>Return Values</h2>
26<p>
27Returns one of the following.
28</p>
29
30<TABLE class="arguments" border="1" >
31  <tr>
32<th>PMIC_ERR_OK</th>
33<td>The Wii Speak has been started successfully.</td>
34  </tr>
35  <tr>
36<th>PMIC_ERR_NO_DEVICE</th>
37<td>The Wii Speak has been unplugged.</td>
38  </tr>
39  <tr>
40<th>PMIC_ERR_INVALID_STATE</th>
41<td>The Wii Speak is not open.</td>
42  </tr>
43  <tr>
44<th>PMIC_ERR_BUSY</th>
45<td>The state is in transition. Call the function again.</td>
46  </tr>
47  <tr>
48<th>PMIC_ERR_USB_ERROR</th>
49<td>An error occurred in USB communications. Call the function again.</td>
50  </tr>
51  <tr>
52<th>PMIC_ERR_FATAL</th>
53<td>A fatal error has occurred.</td>
54  </tr>
55</TABLE>
56
57<H2>Description</H2>
58<p>Starts the Wii Speak synchronously.</p>
59
60<p>Once the Wii Speak has been started successfully, audio data can be obtained from the Wii Speak microphone.</p>
61
62<p>This function cannot be called in an interrupt handler or alarm callback.</p>
63
64<H2>See Also</H2>
65<p class="reference">
66</p>
67
68<H2>Revision History</H2>
69<p>
702008/09/25 Added <B>Return Values</B>.<br>2008/03/04 Changed the function reference format.<br>2008/01/25 Initial version.
71</p>
72<hr><p>CONFIDENTIAL</p></body>
73</html>