21 #ifndef INCLUDED_BLADERF_SINK_C_H
22 #define INCLUDED_BLADERF_SINK_C_H
24 #include <gnuradio/thread/thread.h>
25 #include <gnuradio/block.h>
26 #include <gnuradio/sync_block.h>
28 #include <libbladeRF.h>
47 typedef boost::shared_ptr<bladerf_sink_c> bladerf_sink_c_sptr;
59 public gr::sync_block,
73 int work(
int noutput_items,
74 gr_vector_const_void_star &input_items,
75 gr_vector_void_star &output_items );
96 double set_gain(
double gain,
size_t chan = 0 );
97 double set_gain(
double gain,
const std::string & name,
size_t chan = 0 );
99 double get_gain(
const std::string & name,
size_t chan = 0 );
101 double set_bb_gain(
double gain,
size_t chan = 0 );
103 std::vector< std::string >
get_antennas(
size_t chan = 0 );
104 std::string
set_antenna(
const std::string & antenna,
size_t chan = 0 );
115 gr::thread::thread thread;
bool set_gain_mode(bool automatic, size_t chan=0)
std::vector< std::string > get_antennas(size_t chan=0)
double set_bb_gain(double gain, size_t chan=0)
bladerf_sink_c_sptr make_bladerf_sink_c(const std::string &args="")
Return a shared_ptr to a new instance of bladerf_sink_c.
double set_bandwidth(double bandwidth, size_t chan=0)
double get_bandwidth(size_t chan=0)
osmosdr::freq_range_t get_bandwidth_range(size_t chan=0)
double set_freq_corr(double ppm, size_t chan=0)
osmosdr::gain_range_t get_gain_range(size_t chan=0)
std::vector< std::string > get_gain_names(size_t chan=0)
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
friend bladerf_sink_c_sptr make_bladerf_sink_c(const std::string &args)
Return a shared_ptr to a new instance of bladerf_sink_c.
Definition: sink_iface.h:31
static std::vector< std::string > get_devices()
double set_gain(double gain, size_t chan=0)
bool get_gain_mode(size_t chan=0)
osmosdr::freq_range_t get_freq_range(size_t chan=0)
Definition: bladerf_sink_c.h:58
std::string set_antenna(const std::string &antenna, size_t chan=0)
Definition: bladerf_common.h:51
std::string get_antenna(size_t chan=0)
double set_center_freq(double freq, size_t chan=0)
double get_center_freq(size_t chan=0)
double get_gain(size_t chan=0)
size_t get_num_channels(void)
osmosdr::meta_range_t get_sample_rates(void)
double get_freq_corr(size_t chan=0)
double get_sample_rate(void)
double set_sample_rate(double rate)