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>MIC_StopAutoSamplingAsync</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MIC_StopAutoSamplingAsync <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></h1>
15
16<h2>Syntax</h2>
17<dl>
18  <dd>
19<CODE>#include &lt;nitro/spi.h&gt;</CODE><BR>
20  <PRE><CODE><A href="MICResult.html">MICResult</A> MIC_StopAutoSamplingAsync(
21            <CODE><A href="MICCallback.html">MICCallback</A></CODE>     callback,
22            void*		arg );</CODE></PRE>
23  </dd>
24</dl>
25
26<h2>Arguments</h2>
27<TABLE border="1" width="100%">
28  <TBODY>
29    <TR>
30<TD width="300"><em><strong><font face="Courier New">callback</font></strong></em></TD>
31<TD width="700">Specifies the pointer to the callback function. This callback is called from within the interrupt handler.</TD>
32    </TR>
33    <TR>
34<TD><em><strong><font face="Courier New">arg</font></strong></em></TD>
35<TD>Argument to pass to the callback function.</TD>
36    </TR>
37  </TBODY>
38</TABLE>
39
40<h2>Return Values</h2>
41<P>
42Returns the processing result as a <CODE><A href="MICResult.html">MICResult</A></CODE> enumerated type. Returns <CODE>MIC_RESULT_SUCCESS</CODE> if the asynchronous process starts normally, and some other value if the process fails for some reason.
43</P>
44
45<H2>Description</H2>
46<P>Asynchronously stops microphone auto-sampling. The function issues a request to the ARM7 to stop auto-sampling and returns control to the caller without waiting for a response. You must use the <SPAN class="argument">result</SPAN> argument passed by the user callback function to get the ARM7 processing result. If this function fails, the asynchronous operation is not performed and the user callback function is not called.
47</P>
48<P>
49This function returns <CODE>MIC_RESULT_INVALID_COMMAND</CODE> when the CODEC is running in CODEC-TWL mode because auto-sampling cannot be run at an arbitrary frequency in CODEC-TWL mode. In other words, this function can only be used when the CODEC is running in CODEC-DS mode.
50</P>
51
52<H2>See Also</H2>
53<P>
54<a href="MIC_StopAutoSampling.html"><code>MIC_StopAutoSampling</code></a><BR><a href="MIC_StartAutoSampling.html"><code>MIC_StartAutoSampling</code></a><BR><a href="MIC_AdjustAutoSampling.html"><code>MIC_AdjustAutoSampling</code></a>
55</P>
56
57<H2>Revision History</H2>
58<P>
592009/05/14 Added the TWL icon and a description related to CODEC. <BR>2008/01/09 Revised a description of differences in behavior due to the CODEC mode. <BR>2007/11/17 Added a description of operations on the TWL platform. <BR>2005/06/27 Added supplementary information stating that the callback is invoked from the interrupt handler. <br>2005/01/11 Revised <B>Return Values</B> and added functions to <B>See Also</B>. <BR>2004/06/01 Initial version.<BR>
60</P>
61<hr><p>CONFIDENTIAL</p></body>
62</html>
63