diff options
author | Nick Foster <nick@nerdnetworks.org> | 2010-10-12 14:46:41 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2010-10-12 14:46:41 -0700 |
commit | 5982ec4ee2c6f9efca1c5068e42dc38b822df7dc (patch) | |
tree | 6b15ce5f837ea57cc5c9fdf79e45fdbd2f44d9de /host/lib/usrp/usrp2/usrp2_iface.cpp | |
parent | 3df994e1c784d7037e869610f1417fe64e0e89a8 (diff) | |
download | uhd-5982ec4ee2c6f9efca1c5068e42dc38b822df7dc.tar.gz uhd-5982ec4ee2c6f9efca1c5068e42dc38b822df7dc.tar.bz2 uhd-5982ec4ee2c6f9efca1c5068e42dc38b822df7dc.zip |
USRP2P: This is surprisingly involved. Adding a consistent interface to deal with hardware revisions.
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_iface.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_iface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp index 0771c4945..7ce5cc936 100644 --- a/host/lib/usrp/usrp2/usrp2_iface.cpp +++ b/host/lib/usrp/usrp2/usrp2_iface.cpp @@ -260,12 +260,12 @@ public: /*********************************************************************** * Get/set hardware revision **********************************************************************/ - void set_hw_rev(int rev) { + void set_hw_rev(mboard_rev_t rev) { hw_rev = rev; regs = usrp2_get_regs(rev); //might be a better place to do this } - int get_hw_rev(void) { + mboard_rev_t get_hw_rev(void) { return hw_rev; } |