75#include <soc/gpio_num.h>
82#define ADC_READ_LEN 512
86#define ADC_SAMPLE_RATE_HZ 8000
94uint32_t
loopMic(uint16_t* outSamples, uint32_t outSamplesMax);
void deinitMic(void)
Deinitialize the ADC which continuously samples the microphone.
Definition hdw-mic.c:141
void initMic(gpio_num_t gpio)
Initialize the ADC which continuously samples the microphone.
Definition hdw-mic.c:25
uint32_t loopMic(uint16_t *outSamples, uint32_t outSamplesMax)
Attempt to read a block of 12-bit samples from the ADC in continuous mode. This may return fewer than...
Definition hdw-mic.c:100
void startMic(void)
Start sampling the microphone's ADC.
Definition hdw-mic.c:84
void stopMic(void)
Stop sampling the microphone's ADC.
Definition hdw-mic.c:130