2 #ifndef INCLUDED_LORA_SDR_FFT_DEMOD_IMPL_H
3 #define INCLUDED_LORA_SDR_FFT_DEMOD_IMPL_H
8 #include <gnuradio/io_signature.h>
12 #include <volk/volk.h>
42 uint32_t m_number_of_bins;
52 std::vector<gr_complex> m_upchirp;
58 std::vector<gr_complex> m_downchirp;
63 std::vector<gr_complex> m_dechirped;
69 std::vector<gr_complex> m_fft;
76 std::vector<uint32_t> output;
90 #ifdef GRLORA_MEASUREMENTS
91 std::ofstream energy_file;
94 std::ofstream idx_file;
104 int32_t get_symbol_val(
const gr_complex *samples);
112 void new_frame_handler(
int cfo_int);
120 void header_cr_handler(pmt::pmt_t cr);
147 void forecast(
int noutput_items, gr_vector_int &ninput_items_required);
158 int general_work(
int noutput_items, gr_vector_int &ninput_items,
159 gr_vector_const_void_star &input_items,
160 gr_vector_void_star &output_items);