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<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9<TITLE>MIC_AdjustAutoSampling</TITLE>
10</HEAD>
11
12<BODY>
13
14<H1 align="left">MIC_AdjustAutoSampling <img src="../../image/NTR.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_AdjustAutoSampling( u32 rate );</CODE></PRE>
21  </DD>
22</DL>
23
24<H2>Arguments</H2>
25<TABLE border="1" width="100%">
26  <TBODY>
27    <TR>
28<TD width="300"><CODE>rate</CODE></TD>
29<TD width="700">The sampling rate. Directly specifies ARM7 CPU timer cycles.<br>Can also be selected from the <CODE><A href="MICSamplingRate.html">MICSamplingRate</A></CODE> enumerated type.</TD>
30    </TR>
31  </TBODY>
32</TABLE>
33
34<H2>Return Values</H2>
35<P>
36Returns the processing result as a <CODE><A href="MICResult.html">MICResult</A></CODE> enumerated type. Returns <CODE>MIC_RESULT_SUCCESS</CODE> if processing completes successfully, and some other value if the process fails for some reason.
37</P>
38
39<H2>Description</H2>
40<P>
41Synchronously adjusts the sampling rate of the microphone's auto-sampling. This function issues an auto-sampling adjustment request to ARM7, waits for a response from ARM7, and returns the process result. This is a synchronous version of the <CODE><A href="MIC_AdjustAutoSamplingAsync.html">MIC_AdjustAutoSamplingAsync</A></CODE> function. This is only valid when auto-sampling has already begun. The CPU timer cycle is updated when the ARM7 receives the request, not earlier.
42</P>
43<P>
44This function will return <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.
45</P>
46
47<H2>Note</H2>
48<P>
49<FONT color=red>
50This function waits for a PXI interrupt for synchronization purposes. Do not call it when PXI interrupts are prohibited.
51</FONT>
52</P>
53
54<H2>See Also</H2>
55<P>
56<code><a href="MIC_AdjustAutoSamplingAsync.html">MIC_AdjustAutoSamplingAsync</a></code><BR> <code><a href="MIC_StartAutoSampling.html">MIC_StartAutoSampling</a></code><BR> <code><a href="MIC_StopAutoSampling.html">MIC_StopAutoSampling</a></code>
57</P>
58
59<H2>Revision History</H2>
60<P>
612008/01/09 Revised a description of differences in behavior due to the CODEC. <BR>2007/11/17 Added a description of operations on the TWL platform. <BR>2005/03/08 Standardized Japanese terminology for &quot;interrupt.&quot; <br>2005/01/11 Initial version.<BR>
62</P>
63<hr><p>CONFIDENTIAL</p></body>
64</HTML>
65