0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00

experiment with the pll

This commit is contained in:
2025-03-23 17:38:41 +01:00
parent 52e081ad3f
commit ecbeb6a18f
3 changed files with 10 additions and 7 deletions

View File

@@ -22,8 +22,9 @@ typedef struct {
float loop_filter_state;
float kp;
float ki;
float last_output;
int sample_rate;
int quadrature_mode;
} PLL;
void init_pll(PLL *pll, float freq, float loop_filter_bandwidth, int quadrature_mode, int sample_rate);
float apply_pll(PLL *pll, float ref_sample, float input_sample);
float apply_pll(PLL *pll, float ref_sample);