

#include <nitro/spi.h>MICResult MIC_DoSampling(
MICSamplingType type,
void* buf );
| type | Sampling type as one of the MICSamplingType enumerated types. |
| buf | Pointer to the buffer where the sampling result is stored. |
Returns the processing result as a MICResult enumerated type. If the processing completes successfully, returns MIC_RESULT_SUCCESS. If processing fails for some reason, returns some other value.
Samples the microphone one time. Use the PM_SetAmp* function to turn on the programmable gain amp before sampling.
This function issues a request to the ARM7 processor to execute sampling, waits for the ARM7 processor to respond, and then returns the process result. This is the synchronous version of the MIC_DoSamplingAsync function. Where the input volume exceeds the minimum or maximum value, the output data will be clamped. You can use the PM_SetAmpGain* functions in advance to adjust the input volume that can be sampled.
This function waits for a PXI interrupt for synchronization purposes. Do not call it when PXI interrupts are prohibited.
It has been confirmed that slight hardware noise is mixed with the microphone input on the TWL system. See here for a workaround.
MIC_DoSamplingAsync
PM_SetAmpGain*
2009/06/25 Added description of using the PM_SetAmp* function.
2005/03/08 Standardized the Japanese term for "interrupt."
2005/01/11 Revised return values.
2004/08/10 Added the description relating to the input volume.
2004/06/01 Initial version.
CONFIDENTIAL