mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
17 lines
381 B
C
17 lines
381 B
C
#pragma once
|
|
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "constants.h"
|
|
#include <math.h>
|
|
|
|
#define HILBERT_TAPS 95
|
|
|
|
typedef struct {
|
|
float coeffs[HILBERT_TAPS];
|
|
float delay[HILBERT_TAPS];
|
|
int index;
|
|
} HilbertTransformer;
|
|
|
|
void init_hilbert(HilbertTransformer* filter);
|
|
void apply_hilbert(HilbertTransformer* filter, float input, float* inphase, float* quadrature); |