1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3 <HEAD> 4 <META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5 <title>SNDEX_GetI2SFrequency</title> 6 <link rel="stylesheet" href="../../css/nitro.css" type="text/css"> 7 </HEAD> 8 <BODY> 9 <H1>SNDEX_GetI2SFrequency <IMG src="../../image/TWL.gif" width="24" height="12" border="0" align=middle></H1> 10 11 <H2>Syntax</H2> 12 <DL> 13 <DD><CODE>#include <twl/snd.h></CODE></DD> 14 <DD><PRE><CODE>SNDEXResult SNDEX_GetI2SFrequency( <A href="SNDEXFrequency.html">SNDEXFrequency</A>* freq );</CODE></PRE></DD> 15 </DL> 16 17 <H2>Arguments</H2> 18 <TABLE> 19 <TBODY> 20 <TR> 21 <TH width="25%"><SPAN class="argument">freq</SPAN></TH> 22 <TD width="75%">Pointer to a variable that will get the I2S operating frequency as an <A href="SNDEXFrequency.html"><CODE>SNDEXFrequency</CODE></A> enumerated type.</TD> 23 </TR> 24 </TBODY> 25 </TABLE> 26 27 <H2>Return Values</H2> 28 <TABLE> 29 <TBODY> 30 <TR> 31 <TH width="25%"><CODE>SNDEX_RESULT_SUCCESS</CODE></TH> 32 <TD width="75%">The whole series of operations completed successfully.</TD> 33 </TR> 34 <TR> 35 <TH width="25%"><CODE>SNDEX_RESULT_ILLEGAL_STATE</CODE></TH> 36 <TD width="75%">This function has been called on the NITRO platform or from an exception handler.</TD> 37 </TR> 38 <TR> 39 <TH width="25%"><CODE>SNDEX_RESULT_BEFORE_INIT</CODE></TH> 40 <TD width="75%">Extended sound features have not been initialized by the <A href="SNDEX_Init.html"><CODE>SNDEX_Init</CODE></A> function.</TD> 41 </TR> 42 <TR> 43 <TH width="25%"><CODE>SNDEX_RESULT_EXCLUSIVE</CODE></TH> 44 <TD width="75%">Processing for other extended sound features is running. Note that mutexes are used for each of the extended sound features, so they cannot be used simultaneously.<BR>This is also returned when a mutex error occurred in the ARM7. When this is the case, the situation may improve on a retry because the error is dependent on the progress of processing in ARM7.<BR>As mentioned in the <A href="./doc/aboutSNDEX.html">SNDEX Library Overview</A>, the error also returns during processing of shutter sound playback.</TD> 45 </TR> 46 <TR> 47 <TH width="25%"><CODE>SNDEX_RESULT_PXI_SEND_ERROR</CODE></TH> 48 <TD width="75%">A PXI command failed to be sent to the ARM7. This error occurs when the PXI send queue for the ARM7 has filled up or when the hardware has detected an error. As a result, the state may improve when a retry is made.</TD> 49 </TR> 50 <TR> 51 <TH width="25%"><CODE>SNDEX_RESULT_FATAL_ERROR</CODE></TH> 52 <TD width="75%">This error should not ordinarily occur. This may occur when an illegal PXI command was sent directly, ignoring library state management; when the ARM7 component and the extended sound feature library have different versions; when library state management has fallen into an abnormal state due to memory corruption; or when other such conditions arise. There is no way to recover from this at run time. 53 </TD> 54 </TR> 55 </TBODY> 56 </TABLE> 57 58 <H2>Description</H2> 59 <P> 60 Synchronously gets the I2S operating frequency. 61 </P> 62 <P> 63 This function calls the <A href="SNDEX_GetI2SFrequencyAsync.html"><code>SNDEX_GetI2SFrequencyAsync</code></A> function internally and stops its own calling thread until asynchronous processing has completed. This function expects to be called from a thread, so it fails if it is called from an exception handler. Note that this function continues to block internally if PXI receive interrupts are prohibited, because PXI receive interrupts are used to detect the processing's completion. 64 </P> 65 66 <H2>See Also</H2> 67 <P> 68 <A href="SNDEX_GetI2SFrequencyAsync.html"><CODE>SNDEX_GetI2SFrequencyAsync</CODE></A><BR> <A href="SNDEX_SetI2SFrequency.html"><CODE>SNDEX_SetI2SFrequency</CODE></A> 69 </P> 70 71 <H2>Revision History</H2> 72 <P> 732008/11/07 Added mention that <CODE>SNDEX_RESULT_EXCLUSIVE</CODE> is returned during processing of shutter sound playback.<BR> 2008/02/15 Initial version. 74 </P> 75 <hr><p>CONFIDENTIAL</p></body> 76</HTML> 77