diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-05 12:18:17 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-05 12:18:17 -0700 |
commit | 12aa8ad74cf3a343159ddbb452455bf4e7f435b8 (patch) | |
tree | 69b6928826b73d9a8adcfa62d8301ce28b95c11a /host/lib/usrp/usrp2/usrp2_impl.hpp | |
parent | 83bd55d63972804e62f3890a4a90c8288fcbad0c (diff) | |
download | uhd-12aa8ad74cf3a343159ddbb452455bf4e7f435b8.tar.gz uhd-12aa8ad74cf3a343159ddbb452455bf4e7f435b8.tar.bz2 uhd-12aa8ad74cf3a343159ddbb452455bf4e7f435b8.zip |
added 16 bit peek and poke, 16 bit register defs for gpios and atrs
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index 7c55d4c3c..26f9bb386 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -103,8 +103,11 @@ public: usrp2_ctrl_data_t ctrl_send_and_recv(const usrp2_ctrl_data_t &); //peek and poke registers - void poke(boost::uint32_t addr, boost::uint32_t data); - boost::uint32_t peek(boost::uint32_t addr); + void poke32(boost::uint32_t addr, boost::uint32_t data); + boost::uint32_t peek32(boost::uint32_t addr); + + void poke16(boost::uint32_t addr, boost::uint16_t data); + boost::uint16_t peek16(boost::uint32_t addr); //misc access methods double get_master_clock_freq(void); |