21 #ifndef INCLUDED_LORA_SDR_PARTIAL_ML_IMPL_H
22 #define INCLUDED_LORA_SDR_PARTIAL_ML_IMPL_H
25 #include <volk/volk.h>
77 std::vector<gr_complex> m_ref_upchirp;
78 std::vector<gr_complex> m_ref_downchirp;
80 std::vector<gr_complex> mf;
81 std::vector<bool> third_symbol_part;
89 std::vector<gr_complex> preamb_peak;
95 std::vector<std::tuple<int, double, double>> dechirp_and_fft(
const gr_complex *samples,
Symbol_type type);
97 gr_complex matched_filter1(
const gr_complex *dechirped,
int win_len,
int Si,
double tau,
double delta_cfo,
int win_type);
99 gr_complex matched_filter2(
const gr_complex *dechirped,
int win_len,
int Si,
double tau,
double delta_cfo,
int win_type);
101 void add_demod_tag(
int Su,
int Si1,
int Si2,
double Mu,
double Mi1,
double Mi2,
double SNR_est);
103 bool is_kind_upchirp(
long t);
105 bool is_kind_downchirp(
long t);
108 std::ofstream out_file;
116 void forecast(
int noutput_items, gr_vector_int &ninput_items_required);
119 gr_vector_int &ninput_items,
120 gr_vector_const_void_star &input_items,
121 gr_vector_void_star &output_items);