diff options
author | Josh Blum <josh@joshknows.com> | 2011-03-17 17:50:18 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-03-17 17:50:18 -0700 |
commit | e460ae41da48a5853898366a403dae9a874a2981 (patch) | |
tree | bac34ca221f483fafdd888c9a9ad897660012b1b | |
parent | fb65f85e0f915b8587f218bde433210cc574b21f (diff) | |
download | uhd-e460ae41da48a5853898366a403dae9a874a2981.tar.gz uhd-e460ae41da48a5853898366a403dae9a874a2981.tar.bz2 uhd-e460ae41da48a5853898366a403dae9a874a2981.zip |
usrp: dboard iface can inherit from i2c iface
-rw-r--r-- | host/include/uhd/usrp/dboard_iface.hpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/host/include/uhd/usrp/dboard_iface.hpp b/host/include/uhd/usrp/dboard_iface.hpp index c5898365d..1ec0fa1ff 100644 --- a/host/include/uhd/usrp/dboard_iface.hpp +++ b/host/include/uhd/usrp/dboard_iface.hpp @@ -55,7 +55,7 @@ struct UHD_API dboard_iface_special_props_t{ * This interface provides i2c, spi, gpio, atr, aux dac/adc access. * Each mboard should have a specially tailored iface for its dboard. */ -class UHD_API dboard_iface{ +class UHD_API dboard_iface : public uhd::i2c_iface{ public: typedef boost::shared_ptr<dboard_iface> sptr; typedef dboard_iface_special_props_t special_props_t; @@ -209,23 +209,6 @@ public: virtual boost::uint16_t read_gpio(unit_t unit) = 0; /*! - * Write to an I2C peripheral. - * - * \param addr I2C bus address (7-bits) - * \param bytes the data to write - */ - virtual void write_i2c(boost::uint8_t addr, const byte_vector_t &bytes) = 0; - - /*! - * Read from an I2C peripheral. - * - * \param addr I2C bus address (7-bits) - * \param num_bytes number of bytes to read - * \return the data read if successful, else a zero length string. - */ - virtual byte_vector_t read_i2c(boost::uint8_t addr, size_t num_bytes) = 0; - - /*! * Write data to SPI bus peripheral. * * \param unit which unit, rx or tx |