5#ifndef HAL_PDM_HANDLE_H
6#define HAL_PDM_HANDLE_H
28 std::array<int16_t, SAMPLE_SIZE>
data;
static constexpr int16_t gainUpdateBaseline
CALIBRATED value of a gain baseline.
Definition: pdm_handle.h:18
Program scope.
Definition: control_fixed_modes.hpp:12
Store the audio data obtained from the microphone.
Definition: pdm_handle.h:24
std::array< int16_t, SAMPLE_SIZE > data
raw audio data buffer
Definition: pdm_handle.h:28
bool is_valid() const
if this is false, all the data are garbage
Definition: pdm_handle.h:37
uint16_t sampleRead
number of sound sample in array. Will be <= SAMPLE_SIZE
Definition: pdm_handle.h:35
uint64_t sampleTime_us
time at the start of the sample in microseconds
Definition: pdm_handle.h:32
uint64_t sampleDuration_us
duration of the sample in microseconds
Definition: pdm_handle.h:30
static constexpr uint16_t SAMPLE_SIZE
Size of the sound sample.
Definition: pdm_handle.h:26