diff options
author | Josh Blum <josh@joshknows.com> | 2010-02-17 18:29:16 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-02-17 18:29:16 -0800 |
commit | f439fe8218b05a67148332ffefd2053ba3c0c19d (patch) | |
tree | 6fcc768397dac3266649557cbb33bdd7091856bd /host/include | |
parent | b9497ba5b8ff66856e13100160275ddc4a884db0 (diff) | |
download | uhd-f439fe8218b05a67148332ffefd2053ba3c0c19d.tar.gz uhd-f439fe8218b05a67148332ffefd2053ba3c0c19d.tar.bz2 uhd-f439fe8218b05a67148332ffefd2053ba3c0c19d.zip |
Added control for usrp2 aux dac and adc control.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/usrp/dboard/interface.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
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<interface> sptr; typedef std::vector<uint8_t> 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. |