# MIC_GetLastSamplingAddress

## Syntax

  `#include <nitro/spi.h>`

      void*  MIC_GetLastSamplingAddress( void );

## Arguments

None.

## Return Values

Returns the address where the last sampled data are stored.

## Description

When called either during or after microphone auto-sampling or frequency-limited microphone auto-sampling, this function gets the buffer address storing the last data that was sampled. A value of `NULL` will be returned when sampling has never been done, such as immediately after the MIC library is initialized, or immediately after the `MIC_StartAutoSampling` or `MIC_StartLimitedSampling` function has been used to start auto-sampling.

## See Also

`MIC_StartAutoSampling, MIC_StartAutoSamplingAsync, MIC_StartLimitedSampling, MIC_StartLimitedSamplingAsync`

## Revision History

2007/11/17 Added a description of operations during frequency-limited auto-sampling.
2004/11/04 Clarified the return values before sampling is performed.
2004/06/01 Initial version.

CONFIDENTIAL