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>PMICClose</title>
9</head>
10
11<body>
12
13<h1>PMICClose</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">
17#include &lt;revolution/pmic.h&gt;
18
19PMIC_ERR PMICClose(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 closed 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>Either the PMIC library is not initialized, or the Wii Speak cable is not inserted in the USB port.</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>Closes the Wii Speak synchronously.</p>
59
60<p>Once the Wii Speak has been successfully closed, the various microphone operations (setting its operating parameters, starting the microphone, and so on) can no longer be performed. To operate the Wii Speak after it has been closed, you need to reopen the Wii Speak using the <code>PMICOpenAsync</code> or <code>PMICOpen</code> function.</p>
61
62<p>This function cannot be called in an interrupt handler or alarm callback.</p>
63
64<p><B>Note: When quitting an application, always call this function (or the <code>PMICCloseAsync</code> function).</B></p>
65
66<H2>See Also</H2>
67<p class="reference">
68<a href="PMICOpenAsync.html"><CODE>PMICOpenAsync</CODE></a><BR> <a href="PMICOpen.html"><CODE>PMICOpen</CODE></a><BR> <a href="PMICCloseAsync.html"><CODE>PMICCloseAsync</CODE></a>
69</p>
70
71<H2>Revision History</H2>
72<p>
732008/10/22 Added note.<br>2008/09/25 Added <B>Return Values</B>.<br>2008/03/04 Changed the function reference format.<br>2008/01/25 Initial version.
74</p>
75<hr><p>CONFIDENTIAL</p></body>
76</html>