9#ifndef INCLUDED_GR_SOAPY_BLOCK_H
10#define INCLUDED_GR_SOAPY_BLOCK_H
107 virtual void set_frequency(
size_t channel,
const std::string& name,
double freq) = 0;
122 virtual double get_frequency(
size_t channel,
const std::string& name)
const = 0;
146 const std::string& name)
const = 0;
188 virtual void set_antenna(
size_t channel,
const std::string& name) = 0;
223 virtual std::vector<std::string>
list_gains(
size_t channel)
const = 0;
232 virtual void set_gain(
size_t channel,
double gain) = 0;
240 virtual void set_gain(
size_t channel,
const std::string& name,
double gain) = 0;
255 virtual double get_gain(
size_t channel,
const std::string& name)
const = 0;
490 virtual std::string
read_sensor(
const std::string& key)
const = 0;
498 virtual std::vector<std::string>
list_sensors(
size_t channel)
const = 0;
517 virtual std::string
read_sensor(
size_t channel,
const std::string& key)
const = 0;
542 virtual unsigned read_register(
const std::string& name,
unsigned addr)
const = 0;
554 const std::vector<unsigned>& value) = 0;
563 virtual std::vector<unsigned>
578 virtual void write_setting(
const std::string& key,
const std::string& value) = 0;
602 write_setting(
size_t channel,
const std::string& key,
const std::string& value) = 0;
610 virtual std::string
read_setting(
size_t channel,
const std::string& key)
const = 0;
622 virtual void write_gpio(
const std::string& bank,
unsigned value) = 0;
630 virtual void write_gpio(
const std::string& bank,
unsigned value,
unsigned mask) = 0;
637 virtual unsigned read_gpio(
const std::string& bank)
const = 0;
654 virtual void write_gpio_dir(
const std::string& bank,
unsigned dir,
unsigned mask) = 0;
671 virtual void write_i2c(
int addr,
const std::string& data) = 0;
681 virtual std::string
read_i2c(
int addr,
size_t num_bytes) = 0;
697 virtual unsigned transact_spi(
int addr,
unsigned data,
size_t num_bits) = 0;
712 virtual void write_uart(
const std::string& which,
const std::string& data) = 0;
723 long timeout_us = 100000)
const = 0;
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
Definition: gr-soapy/include/gnuradio/soapy/block.h:23
virtual range_t get_gain_range(size_t channel, const std::string &name) const =0
virtual void set_dc_offset_mode(size_t channel, bool automatic)=0
virtual void set_reference_clock_rate(double rate)=0
virtual std::string read_uart(const std::string &which, long timeout_us=100000) const =0
virtual std::string get_time_source() const =0
virtual void set_time_source(const std::string &source)=0
virtual void set_master_clock_rate(double clock_rate)=0
virtual std::vector< std::string > list_antennas(int channel) const =0
virtual double get_reference_clock_rate() const =0
virtual kwargs_t get_channel_info(size_t channel) const =0
virtual std::string read_i2c(int addr, size_t num_bytes)=0
virtual void write_i2c(int addr, const std::string &data)=0
virtual void set_clock_source(const std::string &clock_source)=0
virtual double get_gain(size_t channel) const =0
virtual void set_frequency(size_t channel, double freq)=0
virtual void write_register(const std::string &name, unsigned addr, unsigned value)=0
virtual double get_frequency(size_t channel, const std::string &name) const =0
virtual std::string get_antenna(size_t channel) const =0
virtual std::vector< std::string > list_clock_sources() const =0
virtual bool has_iq_balance_mode(size_t channel) const =0
virtual bool has_hardware_time(const std::string &what="") const =0
virtual void set_antenna(size_t channel, const std::string &name)=0
virtual double get_frequency_correction(size_t channel) const =0
virtual void set_bandwidth(size_t channel, double bandwidth)=0
virtual std::string read_sensor(size_t channel, const std::string &key) const =0
virtual range_list_t get_sample_rate_range(size_t channel) const =0
virtual bool has_frequency_correction(size_t channel) const =0
virtual arginfo_list_t get_frequency_args_info(size_t channel) const =0
virtual std::vector< std::string > list_frequencies(size_t channel) const =0
virtual double get_master_clock_rate() const =0
virtual bool has_iq_balance(size_t channel) const =0
virtual bool has_dc_offset(size_t channel) const =0
virtual bool get_dc_offset_mode(size_t channel) const =0
virtual std::string read_setting(const std::string &key) const =0
virtual std::vector< std::string > list_sensors(size_t channel) const =0
virtual arginfo_t get_sensor_info(size_t channel, const std::string &key) const =0
virtual void write_gpio(const std::string &bank, unsigned value)=0
virtual range_list_t get_master_clock_rates() const =0
virtual double get_bandwidth(size_t channel) const =0
virtual void set_frequency(size_t channel, const std::string &name, double freq)=0
virtual std::vector< std::string > list_gpio_banks() const =0
virtual void write_setting(const std::string &key, const std::string &value)=0
virtual double get_sample_rate(size_t channel) const =0
virtual void set_gain(size_t channel, double gain)=0
virtual std::string read_sensor(const std::string &key) const =0
virtual void set_frequency_correction(size_t channel, double freq_correction)=0
virtual std::string read_setting(size_t channel, const std::string &key) const =0
virtual arginfo_t get_sensor_info(const std::string &key) const =0
virtual void set_sample_rate(size_t channel, double sample_rate)=0
virtual std::vector< std::string > list_time_sources() const =0
virtual bool has_gain_mode(size_t channel) const =0
virtual std::string get_hardware_key() const =0
virtual void set_dc_offset(size_t channel, const gr_complexd &dc_offset)=0
virtual range_list_t get_frequency_range(size_t channel, const std::string &name) const =0
virtual std::vector< std::string > list_register_interfaces() const =0
virtual void set_frontend_mapping(const std::string &frontend_mapping)=0
virtual arginfo_list_t get_setting_info() const =0
virtual void set_hardware_time(long long timeNs, const std::string &what="")=0
virtual void write_registers(const std::string &name, unsigned addr, const std::vector< unsigned > &value)=0
virtual range_list_t get_bandwidth_range(size_t channel) const =0
virtual void write_gpio_dir(const std::string &bank, unsigned dir)=0
virtual double get_gain(size_t channel, const std::string &name) const =0
virtual unsigned read_gpio(const std::string &bank) const =0
virtual long long get_hardware_time(const std::string &what="") const =0
virtual range_t get_gain_range(size_t channel) const =0
virtual double get_frequency(size_t channel) const =0
virtual bool has_dc_offset_mode(size_t channel) const =0
virtual void set_gain_mode(size_t channel, bool enable)=0
virtual void set_iq_balance_mode(size_t channel, bool automatic)=0
virtual bool get_iq_balance_mode(size_t channel) const =0
virtual std::string get_driver_key() const =0
virtual std::vector< std::string > list_sensors() const =0
virtual void write_gpio_dir(const std::string &bank, unsigned dir, unsigned mask)=0
virtual void write_gpio(const std::string &bank, unsigned value, unsigned mask)=0
virtual unsigned read_gpio_dir(const std::string &bank) const =0
virtual std::vector< unsigned > read_registers(const std::string &name, unsigned addr, size_t length) const =0
virtual unsigned read_register(const std::string &name, unsigned addr) const =0
virtual kwargs_t get_hardware_info() const =0
virtual range_list_t get_reference_clock_rates() const =0
virtual unsigned transact_spi(int addr, unsigned data, size_t num_bits)=0
virtual range_list_t get_frequency_range(size_t channel) const =0
virtual gr_complexd get_iq_balance(size_t channel) const =0
virtual std::vector< std::string > list_uarts() const =0
virtual void set_iq_balance(size_t channel, const gr_complexd &iq_balance)=0
virtual std::string get_frontend_mapping() const =0
virtual bool get_gain_mode(size_t channel) const =0
virtual gr_complexd get_dc_offset(size_t channel) const =0
virtual void set_gain(size_t channel, const std::string &name, double gain)=0
virtual void write_setting(size_t channel, const std::string &key, const std::string &value)=0
virtual std::string get_clock_source() const =0
virtual std::vector< std::string > list_gains(size_t channel) const =0
virtual arginfo_list_t get_setting_info(size_t channel) const =0
virtual void write_uart(const std::string &which, const std::string &data)=0
Definition: gr-soapy/include/gnuradio/soapy/source.h:41
#define SOAPY_API
Definition: gr-soapy/include/gnuradio/soapy/api.h:19
std::complex< double > gr_complexd
Definition: gr_complex.h:16
SoapySDR::RangeList range_list_t
Definition: soapy_types.h:29
SoapySDR::ArgInfoList arginfo_list_t
Definition: soapy_types.h:21
SoapySDR::Kwargs kwargs_t
Definition: soapy_types.h:25
SoapySDR::ArgInfo arginfo_t
Definition: soapy_types.h:20
SoapySDR::Range range_t
Definition: soapy_types.h:28
GNU Radio logging wrapper.
Definition: basic_block.h:29
PMT_API size_t length(const pmt_t &v)
Return the number of elements in v.