diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2018-02-08 13:50:27 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-02-14 21:04:55 -0800 |
commit | ea468b8d1ff4283c8659487bcf4689e98d00d79e (patch) | |
tree | 14ae0783c2a18ebac4e1d2527c21c7ce264574ac /gr-digital/lib/ofdm_sync_sc_cfb_impl.h | |
parent | 573d4c89f9ef4151b76eec8487c71adf4bbeebb0 (diff) |
digital: add threshold set and get to Schmidl & Cox OFDM sync
Also add the callback to the GRC block.
Diffstat (limited to 'gr-digital/lib/ofdm_sync_sc_cfb_impl.h')
-rw-r--r-- | gr-digital/lib/ofdm_sync_sc_cfb_impl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gr-digital/lib/ofdm_sync_sc_cfb_impl.h b/gr-digital/lib/ofdm_sync_sc_cfb_impl.h index af767e2a2b..aad805e028 100644 --- a/gr-digital/lib/ofdm_sync_sc_cfb_impl.h +++ b/gr-digital/lib/ofdm_sync_sc_cfb_impl.h @@ -24,6 +24,7 @@ #define INCLUDED_DIGITAL_OFDM_SYNC_SC_CFB_IMPL_H #include <gnuradio/digital/ofdm_sync_sc_cfb.h> +#include <gnuradio/blocks/plateau_detector_fb.h> namespace gr { namespace digital { @@ -31,8 +32,15 @@ namespace gr { class ofdm_sync_sc_cfb_impl : public ofdm_sync_sc_cfb { public: - ofdm_sync_sc_cfb_impl(int fft_len, int cp_len, bool use_even_carriers); + ofdm_sync_sc_cfb_impl(int fft_len, int cp_len, bool use_even_carriers, float threshold); ~ofdm_sync_sc_cfb_impl(); + + virtual void set_threshold(float threshold); + virtual float threshold() const; + + private: + gr::blocks::plateau_detector_fb::sptr d_plateau_detector; + }; } // namespace digital |