From 2dbbe07eec0064289c9e74deb2e0e824844da409 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Tue, 20 Mar 2018 08:54:47 +0000 Subject: [PATCH] added an extra getter for bits per frame git-svn-id: https://svn.code.sf.net/p/freetel/code@3420 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/src/codec2_ofdm.h | 3 ++- codec2-dev/src/ofdm.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/codec2-dev/src/codec2_ofdm.h b/codec2-dev/src/codec2_ofdm.h index b335df88..5b00876d 100644 --- a/codec2-dev/src/codec2_ofdm.h +++ b/codec2-dev/src/codec2_ofdm.h @@ -48,7 +48,7 @@ struct OFDM; /* Default configuration for '700D' mode */ const struct OFDM_CONFIG * OFDM_CONFIG_700D; -/* Prototypes */ +/* getters */ struct OFDM *ofdm_create(const struct OFDM_CONFIG * config); void ofdm_destroy(struct OFDM *); @@ -57,6 +57,7 @@ void ofdm_demod(struct OFDM *, int *, COMP *); int ofdm_get_nin(struct OFDM *); int ofdm_get_samples_per_frame(void); int ofdm_get_max_samples_per_frame(void); +int ofdm_get_bits_per_frame(struct OFDM *); /* option setters */ diff --git a/codec2-dev/src/ofdm.c b/codec2-dev/src/ofdm.c index 6b2d696d..5bf716de 100644 --- a/codec2-dev/src/ofdm.c +++ b/codec2-dev/src/ofdm.c @@ -390,6 +390,10 @@ int ofdm_get_max_samples_per_frame() { return OFDM_MAX_SAMPLESPERFRAME; } +int ofdm_get_bits_per_frame(struct OFDM *ofdm) { + return OFDM_BITSPERFRAME; +} + void ofdm_set_verbose(struct OFDM *ofdm, int level) { ofdm->verbose = level; } -- 2.25.1