Implementation of C-Netz (German mobile telephone system)

This commit is contained in:
Andreas Eversberg
2016-02-16 18:56:55 +01:00
parent 4b3e3385b5
commit 16acdbf59d
28 changed files with 10428 additions and 12 deletions

12
src/cnetz/scrambler.h Normal file
View File

@@ -0,0 +1,12 @@
#include "../common/filter.h"
typedef struct scrambler {
double carrier_phaseshift256; /* carrier phase shift per sample */
double carrier_phase256; /* current phase of carrier frequency */
biquad_low_pass_t bq; /* filter to remove carrier frequency */
} scrambler_t;
void scrambler_init(void);
void scrambler_setup(scrambler_t *scrambler, int samplerate);
void scrambler(scrambler_t *scrambler, int16_t *samples, int length);