mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 11:33:54 +01:00
15 lines
338 B
C
15 lines
338 B
C
#pragma once
|
|
#include <math.h>
|
|
|
|
typedef struct
|
|
{
|
|
int i;
|
|
int sample_rate;
|
|
float sample;
|
|
} MPXPowerMeasurement;
|
|
|
|
float dbr_to_deviation(float dbr);
|
|
float deviation_to_dbr(float deviation);
|
|
|
|
void init_modulation_power_measure(MPXPowerMeasurement *mpx, int sample_rate);
|
|
float measure_mpx(MPXPowerMeasurement *mpx, int deviation); |