cancel
Showing results for 
Search instead for 
Did you mean: 

I have some questions about PDM2PCM library settings.

Shio
Associate

I tried to use the PDM2PCM library in the STM32L432.

I have some questions about PDM2PCM library.

1.

The values set by an output buffer in the function PDM_Filter().

We must use values in the output buffer (= PCM data stream) as uint or int ?

2.

I am not able to understand that I should set the value to output_samples_number.

I set,

decimation_factor = PDM_FILTER_DEC_FACTOR_64.

out_ptr_channels = 1.

in_ptr_channels = 1.

and pdm data buffer is defined as following,

uint8_t pdm_buffer[4096].

and pcm data buffer is defined as following,

uint16_t pcm_buffer[64].

I expect that the output_samples_number may be setting 4096 / 64 = 64, this is correct?

0 REPLIES 0