Add getter functions for sample size
authorokcsampson <okcsampson@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 16 Jun 2017 21:20:38 +0000 (21:20 +0000)
committerokcsampson <okcsampson@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 16 Jun 2017 21:20:38 +0000 (21:20 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3202 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/codec2_ofdm.h
codec2-dev/src/ofdm.c

index 11265bdd483306bfa54389593396635ab043549e..eeb26e0e3d24e8e5ee3c157bab725327bd44ac0d 100644 (file)
@@ -50,6 +50,8 @@ void ofdm_destroy(struct OFDM *);
 void ofdm_mod(struct OFDM *, COMP *, const int *);
 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);
 
 /* option setters */
 
index 5b413560ef9a722dcc8be639cb818510ed41d96a..d3dba897c239147b2a4b4a3cb6318a83735d1813 100644 (file)
@@ -355,6 +355,14 @@ int ofdm_get_nin(struct OFDM *ofdm) {
     return ofdm->nin;
 }
 
+int ofdm_get_samples_per_frame() {
+    return OFDM_SAMPLESPERFRAME;
+}
+
+int ofdm_get_max_samples_per_frame() {
+    return OFDM_MAX_SAMPLESPERFRAME;
+}
+
 void ofdm_set_verbose(struct OFDM *ofdm, int level) {
     ofdm->verbose = level;
 }