New common FSK implementation, replaces all individual implementations
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include "../common/iir_filter.h"
|
||||
|
||||
typedef struct fm_mod {
|
||||
double samplerate; /* sample rate of in and out */
|
||||
@@ -7,8 +8,9 @@ typedef struct fm_mod {
|
||||
double *sin_tab; /* sine/cosine table for modulation */
|
||||
} fm_mod_t;
|
||||
|
||||
void fm_mod_init(fm_mod_t *mod, double samplerate, double offset, double amplitude);
|
||||
void fm_modulate(fm_mod_t *mod, sample_t *samples, int num, float *buff);
|
||||
int fm_mod_init(fm_mod_t *mod, double samplerate, double offset, double amplitude);
|
||||
void fm_mod_exit(fm_mod_t *mod);
|
||||
void fm_modulate_complex(fm_mod_t *mod, sample_t *frequency, int num, float *baseband);
|
||||
|
||||
typedef struct fm_demod {
|
||||
double samplerate; /* sample rate of in and out */
|
||||
@@ -19,6 +21,8 @@ typedef struct fm_demod {
|
||||
double *sin_tab; /* sine/cosine table rotation */
|
||||
} fm_demod_t;
|
||||
|
||||
void fm_demod_init(fm_demod_t *demod, double samplerate, double offset, double bandwidth);
|
||||
void fm_demodulate(fm_demod_t *demod, sample_t *samples, int num, float *buff);
|
||||
int fm_demod_init(fm_demod_t *demod, double samplerate, double offset, double bandwidth);
|
||||
void fm_demod_exit(fm_demod_t *demod);
|
||||
void fm_demodulate_complex(fm_demod_t *demod, sample_t *frequency, int length, float *baseband, sample_t *I, sample_t *Q);
|
||||
void fm_demodulate_real(fm_demod_t *demod, sample_t *frequency, int length, sample_t *baseband, sample_t *I, sample_t *Q);
|
||||
|
||||
|
Reference in New Issue
Block a user