28 #ifndef INCLUDED_BAZ_SWEEP_H 29 #define INCLUDED_BAZ_SWEEP_H 31 #include <gnuradio/sync_block.h> 33 #include <boost/thread/mutex.hpp> 34 #include <boost/thread/condition_variable.hpp> 49 typedef boost::shared_ptr<baz_sweep> baz_sweep_sptr;
58 BAZ_API baz_sweep_sptr
baz_make_sweep (
float samp_rate,
float sweep_rate = 0.0,
bool is_duration =
false);
74 baz_sweep (
float samp_rate,
float sweep_rate,
bool is_duration);
77 float d_default_sweep_rate;
78 float d_default_is_duration;
79 float d_last_output, d_target, d_sweep_rate, d_start_freq;
81 boost::condition_variable d_sweep_done;
82 uint64_t d_start_sample;
87 void sweep(
float freq,
float rate = -1.0f,
bool is_duration =
false,
bool block =
false);
92 int work (
int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
class BAZ_API baz_sweep
Definition: baz_sweep.h:36
square2 a stream of floats.This uses the preferred technique: subclassing gr::sync_block.
Definition: baz_sweep.h:66
BAZ_API baz_sweep_sptr baz_make_sweep(float samp_rate, float sweep_rate=0.0, bool is_duration=false)
Return a shared_ptr to a new instance of baz_sweep.
#define BAZ_API
Definition: config.h:8