aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/serdes_ctrl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-06-04 12:16:09 -0700
committerJosh Blum <josh@joshknows.com>2010-06-04 12:16:09 -0700
commitf2b560d5f8d19bf6bbd86802e03f061ecede78ec (patch)
tree4e0d99411b2b1ebee38ef7bbe2fb26be87b39e05 /host/lib/usrp/usrp2/serdes_ctrl.cpp
parentdbc65d928362b983d8f6113319db87841a5b159d (diff)
downloaduhd-f2b560d5f8d19bf6bbd86802e03f061ecede78ec.tar.gz
uhd-f2b560d5f8d19bf6bbd86802e03f061ecede78ec.tar.bz2
uhd-f2b560d5f8d19bf6bbd86802e03f061ecede78ec.zip
Prepend usrp2 onto the helper classes in usrp2 impl to avoid symbol conflicts.
Diffstat (limited to 'host/lib/usrp/usrp2/serdes_ctrl.cpp')
-rw-r--r--host/lib/usrp/usrp2/serdes_ctrl.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/usrp/usrp2/serdes_ctrl.cpp b/host/lib/usrp/usrp2/serdes_ctrl.cpp
index dde22b499..31708d377 100644
--- a/host/lib/usrp/usrp2/serdes_ctrl.cpp
+++ b/host/lib/usrp/usrp2/serdes_ctrl.cpp
@@ -23,14 +23,14 @@ using namespace uhd;
/*!
* A usrp2 serdes control implementation
*/
-class serdes_ctrl_impl : public serdes_ctrl{
+class usrp2_serdes_ctrl_impl : public usrp2_serdes_ctrl{
public:
- serdes_ctrl_impl(usrp2_iface::sptr iface){
+ usrp2_serdes_ctrl_impl(usrp2_iface::sptr iface){
_iface = iface;
_iface->poke32(FR_MISC_CTRL_SERDES, FRF_MISC_CTRL_SERDES_ENABLE | FRF_MISC_CTRL_SERDES_RXEN);
}
- ~serdes_ctrl_impl(void){
+ ~usrp2_serdes_ctrl_impl(void){
_iface->poke32(FR_MISC_CTRL_SERDES, 0); //power-down
}
@@ -41,6 +41,6 @@ private:
/***********************************************************************
* Public make function for the usrp2 serdes control
**********************************************************************/
-serdes_ctrl::sptr serdes_ctrl::make(usrp2_iface::sptr iface){
- return sptr(new serdes_ctrl_impl(iface));
+usrp2_serdes_ctrl::sptr usrp2_serdes_ctrl::make(usrp2_iface::sptr iface){
+ return sptr(new usrp2_serdes_ctrl_impl(iface));
}