From f439fe8218b05a67148332ffefd2053ba3c0c19d Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 17 Feb 2010 18:29:16 -0800 Subject: Added control for usrp2 aux dac and adc control. --- host/include/uhd/usrp/dboard/interface.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/usrp/dboard/interface.hpp b/host/include/uhd/usrp/dboard/interface.hpp index 495304338..7c48f4d2b 100644 --- a/host/include/uhd/usrp/dboard/interface.hpp +++ b/host/include/uhd/usrp/dboard/interface.hpp @@ -35,6 +35,12 @@ public: typedef boost::shared_ptr sptr; typedef std::vector byte_vector_t; + //tells the host which unit to use + enum unit_type_t{ + UNIT_TYPE_RX, + UNIT_TYPE_TX + }; + //tells the host which device to use enum spi_dev_t{ SPI_TX_DEV, @@ -65,17 +71,19 @@ public: /*! * Write to an aux dac. + * \param unit which unit rx or tx * \param which_dac the dac index 0, 1, 2, 3... * \param value the value to write */ - virtual void write_aux_dac(int which_dac, int value) = 0; + virtual void write_aux_dac(unit_type_t unit, int which_dac, int value) = 0; /*! * Read from an aux adc. + * \param unit which unit rx or tx * \param which_adc the adc index 0, 1, 2, 3... * \return the value that was read */ - virtual int read_aux_adc(int which_adc) = 0; + virtual int read_aux_adc(unit_type_t unit, int which_adc) = 0; /*! * Set daughterboard ATR register. -- cgit v1.2.3