diff options
author | Michael West <michael.west@ettus.com> | 2013-11-15 09:50:07 -0800 |
---|---|---|
committer | Michael West <michael.west@ettus.com> | 2013-11-15 09:50:07 -0800 |
commit | e83a941a9ff6094358602302212aed760341c873 (patch) | |
tree | c38adb41c921a3250ec2798a847a95d6adcd19ee /host/lib/usrp/b200/b200_iface.hpp | |
parent | 7641b42a89f009b1c5dc8875eef07c2a90128164 (diff) | |
download | uhd-e83a941a9ff6094358602302212aed760341c873.tar.gz uhd-e83a941a9ff6094358602302212aed760341c873.tar.bz2 uhd-e83a941a9ff6094358602302212aed760341c873.zip |
BUG #182: Refactored b2xx_fx3_utils to use files from UHD
Diffstat (limited to 'host/lib/usrp/b200/b200_iface.hpp')
-rw-r--r-- | host/lib/usrp/b200/b200_iface.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/host/lib/usrp/b200/b200_iface.hpp b/host/lib/usrp/b200/b200_iface.hpp index 1247d1f86..6ba77f0ff 100644 --- a/host/lib/usrp/b200/b200_iface.hpp +++ b/host/lib/usrp/b200/b200_iface.hpp @@ -25,6 +25,12 @@ #include <boost/utility.hpp> #include "ad9361_ctrl.hpp" +const static boost::uint16_t B200_VENDOR_ID = 0x2500; +const static boost::uint16_t B200_PRODUCT_ID = 0x0020; +const static boost::uint16_t FX3_VID = 0x04b4; +const static boost::uint16_t FX3_DEFAULT_PID = 0x00f3; +const static boost::uint16_t FX3_REENUM_PID = 0x00f0; + class b200_iface: boost::noncopyable, public virtual uhd::i2c_iface, public ad9361_ctrl_iface_type { public: @@ -64,6 +70,10 @@ public: //! send SPI through the FX3 virtual void transact_spi( unsigned char *tx_data, size_t num_tx_bits, \ unsigned char *rx_data, size_t num_rx_bits) = 0; + + virtual void write_eeprom(boost::uint16_t addr, boost::uint16_t offset, const uhd::byte_vector_t &bytes) = 0; + + virtual uhd::byte_vector_t read_eeprom(boost::uint16_t addr, boost::uint16_t offset, size_t num_bytes) = 0; }; |