From ccf09a1b994d9ddeebdcc7f93ac5107e03b622f2 Mon Sep 17 00:00:00 2001 From: ha7ilm Date: Fri, 3 Mar 2017 11:20:49 +0100 Subject: [PATCH] timing_recovery is timing_recovery_cc --- csdr.c | 2 +- libcsdr.c | 2 +- libcsdr.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/csdr.c b/csdr.c index 2cf1fd3..2eff419 100644 --- a/csdr.c +++ b/csdr.c @@ -2373,7 +2373,7 @@ int main(int argc, char *argv[]) for(;;) { FEOF_CHECK; - timing_recovery((complexf*)input_buffer, (complexf*)output_buffer, the_bufsize, &state); + timing_recovery_cc((complexf*)input_buffer, (complexf*)output_buffer, the_bufsize, &state); //fprintf(stderr, "os %d\n",state.output_size); fwrite(output_buffer, sizeof(complexf), state.output_size, stdout); fflush(stdout); diff --git a/libcsdr.c b/libcsdr.c index c3c9583..73270c8 100644 --- a/libcsdr.c +++ b/libcsdr.c @@ -1653,7 +1653,7 @@ timing_recovery_state_t timing_recovery_init(timing_recovery_algorithm_t algorit return to_return; } -int timing_recovery(complexf* input, complexf* output, int input_size, timing_recovery_state_t* state) +void timing_recovery_cc(complexf* input, complexf* output, int input_size, timing_recovery_state_t* state) { //We always assume that the input starts at center of the first symbol cross before the first symbol. //Last time we consumed that much from the input samples that it is there. diff --git a/libcsdr.h b/libcsdr.h index 8259c37..754a4a2 100644 --- a/libcsdr.h +++ b/libcsdr.h @@ -306,6 +306,6 @@ typedef struct timing_recovery_state_s } timing_recovery_state_t; timing_recovery_state_t timing_recovery_init(timing_recovery_algorithm_t algorithm, int decimation_rate, int use_q); -int timing_recovery(complexf* input, complexf* output, int input_length, timing_recovery_state_t* state); +void timing_recovery_cc(complexf* input, complexf* output, int input_length, timing_recovery_state_t* state); timing_recovery_algorithm_t timing_recovery_get_algorithm_from_string(char* input); char* timing_recovery_get_string_from_algorithm(timing_recovery_algorithm_t algorithm);