# MIC_AdjustAutoSampling

## C Specification

  `#include <nitro/spi.h>`

      MICResult MIC_AdjustAutoSampling( u32 rate );

## Arguments

rate | The sampling rate. Directly specifies the CPU timer rate of the ARM7. Can also be selected from enumerated-type `MICSamplingRate`.

## Return Values

Returns the enumerated-type `MICResult` process result. If the asynchronous process started normally, returns `MIC_RESULT_SUCCESS`. If the process fails for some reason, returns some other value.

## Description

Synchronously adjusts the sampling rate of the microphone's auto-sampling. This is only valid when auto-sampling has already begun. When ARM7 receives the request, the CPU timer cycle gets updated.
This function issues an auto-sampling adjustment request to ARM7, waits for a response from ARM7, and returns the process result.
This is the synchronous version of `MIC_AdjustAutoSamplingAsync`.

## Caution

This function requires a PXI interrupt for synchronization. Do not call this function when PXI interrupts are prohibited.

## See Also

`MIC_AdjustAutoSamplingAsync`, `MIC_StartAutoSampling`, `MIC_StopAutoSampling`

## Revision History

03/08/2005 Standardized the Japanese term for "interrupt"
01/11/2005 Initial version