7 #ifndef INCLUDED_UHD_USRP_DBOARD_IFACE_HPP 8 #define INCLUDED_UHD_USRP_DBOARD_IFACE_HPP 16 #include <boost/shared_ptr.hpp> 18 #include <boost/thread/thread.hpp> 22 namespace uhd{
namespace usrp{
53 typedef boost::shared_ptr<dboard_iface>
sptr;
87 virtual special_props_t get_special_props(
void) = 0;
96 virtual void write_aux_dac(
unit_t unit,
aux_dac_t which_dac,
double value) = 0;
114 virtual void set_pin_ctrl(
115 unit_t unit, uint32_t value, uint32_t
mask = 0xffff
124 virtual uint32_t get_pin_ctrl(
unit_t unit) = 0;
134 virtual void set_atr_reg(
135 unit_t unit, atr_reg_t reg, uint32_t value, uint32_t
mask = 0xffff
145 virtual uint32_t get_atr_reg(
unit_t unit, atr_reg_t reg) = 0;
154 virtual void set_gpio_ddr(
155 unit_t unit, uint32_t value, uint32_t
mask = 0xffff
164 virtual uint32_t get_gpio_ddr(
unit_t unit) = 0;
173 virtual void set_gpio_out(
174 unit_t unit, uint32_t value, uint32_t
mask = 0xffff
183 virtual uint32_t get_gpio_out(
unit_t unit) = 0;
191 virtual uint32_t read_gpio(
unit_t unit) = 0;
201 virtual void write_spi(
217 virtual uint32_t read_write_spi(
230 virtual void set_clock_rate(
unit_t unit,
double rate) = 0;
238 virtual double get_clock_rate(
unit_t unit) = 0;
246 virtual std::vector<double> get_clock_rates(
unit_t unit) = 0;
254 virtual void set_clock_enabled(
unit_t unit,
bool enb) = 0;
263 virtual double get_codec_rate(
unit_t unit) = 0;
272 virtual void set_fe_connection(
274 const std::string& fe_name,
294 virtual void sleep(
const boost::chrono::nanoseconds& time);
virtual ~dboard_iface(void)
Definition: dboard_iface.hpp:79
aux_adc_t
aux adc selection enums (per unit)
Definition: dboard_iface.hpp:72
Definition: serial.hpp:34
uhd::usrp::gpio_atr::gpio_atr_reg_t atr_reg_t
Definition: dboard_iface.hpp:77
Definition: time_spec.hpp:28
aux_dac_t
aux dac selection enums (per unit)
Definition: dboard_iface.hpp:64
Definition: build_info.hpp:14
Definition: dboard_iface.hpp:51
bool soft_clock_divider
Definition: dboard_iface.hpp:32
Definition: serial.hpp:94
Definition: fe_connection.hpp:16
gpio_atr_reg_t
Definition: gpio_defs.hpp:17
#define UHD_API
Definition: config.h:62
UHD_INLINE data_t mask(const soft_reg_field_t field)
Definition: soft_register.hpp:86
boost::shared_ptr< dboard_iface > sptr
Definition: dboard_iface.hpp:53
dboard_iface_special_props_t special_props_t
Definition: dboard_iface.hpp:54
Special properties that differentiate this daughterboard slot.
Definition: dboard_iface.hpp:25
unit_t
tells the host which unit to use
Definition: dboard_iface.hpp:57
bool mangle_i2c_addrs
Definition: dboard_iface.hpp:42