ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
pdm_metrics_t Struct Reference

Statistics for one captured PCM window. More...

Data Fields

int32_t min
 Minimum sample.
int32_t max
 Maximum sample.
int32_t mean
 DC mean (near 0 after the HPF).
int32_t peak
 Peak |sample - mean| (AC peak).
int32_t rms
 AC RMS about the mean.
uint32_t n
 Samples analysed.

Detailed Description

Statistics for one captured PCM window.

Definition at line 93 of file main.c.

Field Documentation

◆ max

int32_t pdm_metrics_t::max

Maximum sample.

Definition at line 95 of file main.c.

Referenced by pdm_demo_analyze(), pdm_demo_is_active(), and pdm_demo_publish().

◆ mean

int32_t pdm_metrics_t::mean

DC mean (near 0 after the HPF).

Definition at line 96 of file main.c.

Referenced by pdm_demo_analyze(), and pdm_demo_publish().

◆ min

int32_t pdm_metrics_t::min

Minimum sample.

Definition at line 94 of file main.c.

Referenced by pdm_demo_analyze(), pdm_demo_is_active(), and pdm_demo_publish().

◆ n

uint32_t pdm_metrics_t::n

Samples analysed.

Definition at line 99 of file main.c.

Referenced by pdm_demo_analyze(), and pdm_demo_publish().

◆ peak

int32_t pdm_metrics_t::peak

Peak |sample - mean| (AC peak).

Definition at line 97 of file main.c.

Referenced by pdm_demo_analyze(), and pdm_demo_publish().

◆ rms

int32_t pdm_metrics_t::rms

AC RMS about the mean.

Definition at line 98 of file main.c.

Referenced by main(), pdm_demo_analyze(), pdm_demo_is_active(), and pdm_demo_publish().


The documentation for this struct was generated from the following file:
  • examples/ek_ra8d2/hw_validated/hil/pdm_mic_demo/src/main.c