28 #ifndef INCLUDED_BAZ_CORRELATOR_H 29 #define INCLUDED_BAZ_CORRELATOR_H 31 #include <gnuradio/sync_block.h> 46 typedef boost::shared_ptr<baz_correlator> baz_correlator_sptr;
61 const char* sync_path=
"sync.dat",
65 int sync_window_length=500
86 const char* sync_path,
90 int sync_window_length
99 const char* sync_path,
103 int sync_window_length
115 int d_sync_window_length;
117 std::vector<std::complex<float> > d_sync;
119 int64_t d_next_window_idx;
120 int64_t d_current_idx;
121 std::vector<std::complex<float> > d_conjmul_result;
125 int d_sync_window_idx;
126 int d_current_item_idx;
128 std::complex<float> correlate(
const std::complex<float>* in,
const std::complex<float>* sync);
136 int general_work(
int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
BAZ_API baz_correlator_sptr baz_make_correlator(float samp_rate, float symbol_rate, int window_length, float threshold=0.5, int width=1024, const char *sync_path="sync.dat", int sync_length=511, int sync_offset=50, int sync_window_length=500)
Return a shared_ptr to a new instance of baz_correlator.
class BAZ_API baz_correlator
Definition: baz_correlator.h:33
#define BAZ_API
Definition: config.h:8
square2 a stream of floats.This uses the preferred technique: subclassing gr::sync_block.
Definition: baz_correlator.h:74