A-Netz: Calibration of tone levels on TX and RX side

This commit is contained in:
Andreas Eversberg
2016-05-05 13:11:15 +02:00
parent b73894ac49
commit aae58d5a68
3 changed files with 58 additions and 32 deletions

View File

@@ -24,7 +24,7 @@ typedef struct anetz {
/* dsp states */
enum dsp_mode dsp_mode; /* current mode: audio, durable tone 0 or 1, paging */
int fsk_tone_coeff; /* coefficient k = 2*cos(2*PI*f/samplerate), k << 15 */
int fsk_tone_coeff[2]; /* coefficient k = 2*cos(2*PI*f/samplerate), k << 15 */
int samples_per_chunk; /* how many samples lasts one chunk */
int16_t *fsk_filter_spl; /* array with samples_per_chunk */
int fsk_filter_pos; /* current sample position in filter_spl */