21#ifndef INCLUDED_LORA_SDR_PARTIAL_ML_IMPL_H
22#define INCLUDED_LORA_SDR_PARTIAL_ML_IMPL_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);
Definition: partial_ml_impl.h:55
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
partial_ml_impl(uint8_t sf, uint8_t id)
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Definition: partial_ml.h:37
Symbol_type
Permitted symbol types.
Definition: mu_synchro_impl.h:35
@ PAYLOAD
Definition: partial_ml_impl.h:45
@ QUARTER_DOWN
Definition: partial_ml_impl.h:44
@ DOWNCHIRP
Definition: partial_ml_impl.h:43
@ UPCHIRP
Definition: partial_ml_impl.h:41
@ SYNC_WORD
Definition: partial_ml_impl.h:42
@ VOID
Definition: partial_ml_impl.h:40
@ UNDETERMINED
Definition: partial_ml_impl.h:46