10#ifndef INCLUDED_DIGITAL_OFDM_EQUALIZER_BASE_H
11#define INCLUDED_DIGITAL_OFDM_EQUALIZER_BASE_H
26 :
public std::enable_shared_from_this<ofdm_equalizer_base>
32 typedef std::shared_ptr<ofdm_equalizer_base>
sptr;
43 const std::vector<gr_complex>& initial_taps = std::vector<gr_complex>(),
44 const std::vector<tag_t>& tags = std::vector<tag_t>()) = 0;
78 typedef std::shared_ptr<ofdm_equalizer_1d_pilots>
sptr;
81 const std::vector<std::vector<int>>& occupied_carriers,
82 const std::vector<std::vector<int>>& pilot_carriers,
83 const std::vector<std::vector<gr_complex>>& pilot_symbols,
85 bool input_is_shifted);
Definition: ofdm_equalizer_base.h:57
int d_symbols_skipped
In case the frame doesn't begin with OFDM symbol 0, this is the index of the first symbol.
Definition: ofdm_equalizer_base.h:70
void reset() override
Reset the channel information state knowledge.
ofdm_equalizer_1d_pilots(int fft_len, const std::vector< std::vector< int > > &occupied_carriers, const std::vector< std::vector< int > > &pilot_carriers, const std::vector< std::vector< gr_complex > > &pilot_symbols, int symbols_skipped, bool input_is_shifted)
std::vector< std::vector< bool > > d_pilot_carriers
If d_pilot_carriers[k][l] is true, symbol k, carrier l is carrying data.
Definition: ofdm_equalizer_base.h:64
void get_channel_state(std::vector< gr_complex > &taps) override
Return the current channel state.
int d_pilot_carr_set
The current position in the set of pilot symbols.
Definition: ofdm_equalizer_base.h:72
std::shared_ptr< ofdm_equalizer_1d_pilots > sptr
Definition: ofdm_equalizer_base.h:78
std::vector< gr_complex > d_channel_state
Vector of length d_fft_len saving the current channel state (on the occupied carriers)
Definition: ofdm_equalizer_base.h:75
std::vector< bool > d_occupied_carriers
If d_occupied_carriers[k][l] is true, symbol k, carrier l is carrying data.
Definition: ofdm_equalizer_base.h:61
~ofdm_equalizer_1d_pilots() override
std::vector< std::vector< gr_complex > > d_pilot_symbols
If d_pilot_carriers[k][l] is true, d_pilot_symbols[k][l] is its tx'd value.
Definition: ofdm_equalizer_base.h:67
Base class for implementation details of frequency-domain OFDM equalizers.
Definition: ofdm_equalizer_base.h:27
virtual void equalize(gr_complex *frame, int n_sym, const std::vector< gr_complex > &initial_taps=std::vector< gr_complex >(), const std::vector< tag_t > &tags=std::vector< tag_t >())=0
Run the actual equalization.
virtual void get_channel_state(std::vector< gr_complex > &taps)=0
Return the current channel state.
int fft_len()
Definition: ofdm_equalizer_base.h:47
sptr base()
Definition: ofdm_equalizer_base.h:48
int d_fft_len
Definition: ofdm_equalizer_base.h:29
virtual ~ofdm_equalizer_base()
ofdm_equalizer_base(int fft_len)
std::shared_ptr< ofdm_equalizer_base > sptr
Definition: ofdm_equalizer_base.h:32
virtual void reset()=0
Reset the channel information state knowledge.
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:18
std::complex< float > gr_complex
Definition: gr_complex.h:15
static constexpr float taps[NSTEPS+1][NTAPS]
Definition: interpolator_taps.h:9
GNU Radio logging wrapper.
Definition: basic_block.h:29