24 #include <gnuradio/block.h>
25 #include <gnuradio/sync_block.h>
31 static const pmt::pmt_t
SOB_KEY = pmt::string_to_symbol(
"tx_sob");
32 static const pmt::pmt_t
EOB_KEY = pmt::string_to_symbol(
"tx_eob");
33 static const pmt::pmt_t
TIME_KEY = pmt::string_to_symbol(
"tx_time");
34 static const pmt::pmt_t
FREQ_KEY = pmt::string_to_symbol(
"tx_freq");
35 static const pmt::pmt_t
COMMAND_KEY = pmt::string_to_symbol(
"tx_command");
39 typedef std::shared_ptr< xtrx_sink_c > xtrx_sink_c_sptr;
44 public gr::sync_block,
76 double set_gain(
double gain,
size_t chan = 0 );
77 double set_gain(
double gain,
const std::string &
name,
size_t chan = 0 );
82 std::string
set_antenna(
const std::string & antenna,
size_t chan = 0 );
88 int work (
int noutput_items,
89 gr_vector_const_void_star &input_items,
90 gr_vector_void_star &output_items);
99 std::vector<gr::tag_t> _tags;
101 unsigned _sample_flags;
110 xtrx_wire_format_t _otw;
Definition: sink_iface.h:33
static std::vector< std::string > get_devices()
Definition: xtrx_sink_c.h:46
double get_sample_rate(void)
bool get_gain_mode(size_t chan=0)
std::vector< std::string > get_antennas(size_t chan=0)
static std::vector< std::string > get_devices(bool fake=false)
Definition: xtrx_sink_c.h:57
void tag_process(int ninput_items)
double set_gain(double gain, size_t chan=0)
double set_center_freq(double freq, size_t chan=0)
osmosdr::gain_range_t get_gain_range(const std::string &name, size_t chan=0)
double set_bandwidth(double bandwidth, size_t chan=0)
std::string get_antenna(size_t chan=0)
size_t get_num_channels(void)
double set_sample_rate(double rate)
double get_bandwidth(size_t chan=0)
osmosdr::gain_range_t get_gain_range(size_t chan=0)
double set_gain(double gain, const std::string &name, size_t chan=0)
osmosdr::meta_range_t get_sample_rates(void)
std::vector< std::string > get_gain_names(size_t chan=0)
friend xtrx_sink_c_sptr make_xtrx_sink_c(const std::string &args)
double set_freq_corr(double ppm, size_t chan=0)
std::string set_antenna(const std::string &antenna, size_t chan=0)
bool set_gain_mode(bool automatic, size_t chan=0)
osmosdr::freq_range_t get_freq_range(size_t chan=0)
double get_gain(size_t chan=0)
double get_gain(const std::string &name, size_t chan=0)
double get_center_freq(size_t chan=0)
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
double get_freq_corr(size_t chan=0)
static const pmt::pmt_t EOB_KEY
Definition: xtrx_sink_c.h:32
xtrx_sink_c_sptr make_xtrx_sink_c(const std::string &args="")
static const pmt::pmt_t SOB_KEY
Definition: xtrx_sink_c.h:31
static const pmt::pmt_t COMMAND_KEY
Definition: xtrx_sink_c.h:35
static const pmt::pmt_t TIME_KEY
Definition: xtrx_sink_c.h:33
static const pmt::pmt_t FREQ_KEY
Definition: xtrx_sink_c.h:34