diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-12 16:10:29 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-12 16:10:29 -0700 |
commit | 40c231937e1ab4fb70ffb241a5ddb2455db0e907 (patch) | |
tree | e0537029f17c532797534239e13df4b2875f33fc /host/lib/usrp/usrp2/usrp2_impl.hpp | |
parent | b87d9afe82e962718f5f5d514abf9d79b9603b98 (diff) | |
download | uhd-40c231937e1ab4fb70ffb241a5ddb2455db0e907.tar.gz uhd-40c231937e1ab4fb70ffb241a5ddb2455db0e907.tar.bz2 uhd-40c231937e1ab4fb70ffb241a5ddb2455db0e907.zip |
moved spi transact to usrp2 impl, and removed spi read
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index 4e7154afa..5a02b33dc 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -110,6 +110,15 @@ public: void poke16(boost::uint32_t addr, boost::uint16_t data); boost::uint16_t peek16(boost::uint32_t addr); + //spi read and write + boost::uint32_t transact_spi( + int which_slave, + const uhd::usrp::spi_config_t &config, + boost::uint32_t data, + size_t num_bits, + bool readback + ); + //misc access methods double get_master_clock_freq(void); |