0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 11:33:54 +01:00
This commit is contained in:
2025-04-27 13:11:42 +02:00
parent ca82168784
commit c4d5c39ed5
17 changed files with 82 additions and 149 deletions

15
dsp/bs412.h Normal file
View File

@@ -0,0 +1,15 @@
#pragma once
#include <math.h>
typedef struct
{
int i;
int sample_rate;
double 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, float deviation);