Lines Matching refs:past_meas
125 buffer_stats_t past_meas[MEASUREMENT_WINDOW_MAX_SIZE_IN_BUFFERS]; member
628 visu_ctxt->past_meas[i].is_valid = false; in visualizer_init()
629 visu_ctxt->past_meas[i].peak_u16 = 0; in visualizer_init()
630 visu_ctxt->past_meas[i].rms_squared = 0; in visualizer_init()
749 visu_ctxt->past_meas[visu_ctxt->meas_buffer_idx].peak_u16 = (uint16_t)max_sample; in visualizer_process()
750 visu_ctxt->past_meas[visu_ctxt->meas_buffer_idx].rms_squared = in visualizer_process()
752 visu_ctxt->past_meas[visu_ctxt->meas_buffer_idx].is_valid = true; in visualizer_process()
905 visu_ctxt->past_meas[i].is_valid = false; in visualizer_command()
906 visu_ctxt->past_meas[i].peak_u16 = 0; in visualizer_command()
907 visu_ctxt->past_meas[i].rms_squared = 0; in visualizer_command()
916 if (visu_ctxt->past_meas[i].is_valid) { in visualizer_command()
917 if (visu_ctxt->past_meas[i].peak_u16 > peak_u16) { in visualizer_command()
918 peak_u16 = visu_ctxt->past_meas[i].peak_u16; in visualizer_command()
920 sum_rms_squared += visu_ctxt->past_meas[i].rms_squared; in visualizer_command()