MICSamplingType


C Specification

#include <nitro/spi.h>
typedef enum{
    
    MIC_SAMPLING_TYPE_8BIT = 0 ,
    MIC_SAMPLING_TYPE_12BIT ,
    MIC_SAMPLING_TYPE_SIGNED_8BIT ,
    MIC_SAMPLING_TYPE_SIGNED_12BIT ,
    MIC_SAMPLING_TYPE_MAX } MICSamplingType;

Description

This is the list of the types of sampling.
Sampling can be conducted with one of two levels of resolution: 8 bits or 12 bits. Data can be output in the format regardless of whether it is signed or unsigned. With 8-bit sampling, 1 byte of data is obtained each time. With 12-bit sampling, 2 bytes of data are obtained each time (the upper 12 bits are valid, the lower 4 bits are zero-padded).

When the input sound exceeds the valid bit width, the output data is clamped to the minimum or the maximum value. The volume that can be covered with the valid bit width can be changed using the PM_SetAmpGain function.

Arguments

MIC_SAMPLING_TYPE_8BIT Sampling with a valid bit-width of 8 bits (unsigned). The range of output data is 0 to 255.
MIC_SAMPLING_TYPE_12BIT Sampling with a valid bit-width of 12 bits (unsigned). The range of output data is 0 to 65520.
MIC_SAMPLING_TYPE_SIGNED_8BIT Sampling with a valid bit width of 8 bits (unsigned). The range of output data is -128 to 127.
MIC_SAMPLING_TYPE_SIGNED_12BIT Sampling with a valid bid width of 12 bit (unsigned). The range of output data is -32768 to 32752.

See Also

MIC_DoSampling, MIC_DoSamplingAsync, MIC_StartAutoSampling, MIC_StartAutoSamplingAsync, PM_SetAmpGain

Revision History

06/01/2004 Initial version