commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10123 - gnuradio/branches/features/cppdb-test/usrp/ho


From: jcorgan
Subject: [Commit-gnuradio] r10123 - gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy
Date: Tue, 16 Dec 2008 09:53:06 -0700 (MST)

Author: jcorgan
Date: 2008-12-16 09:53:05 -0700 (Tue, 16 Dec 2008)
New Revision: 10123

Modified:
   gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.cc
   gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.h
   gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.i
Log:
Added missed select_rx_antenna(string) to C++ daughterboard API

Modified: gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.cc
===================================================================
--- gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.cc       
2008-12-15 14:19:46 UTC (rev 10122)
+++ gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.cc       
2008-12-16 16:53:05 UTC (rev 10123)
@@ -184,7 +184,16 @@
   return which_antenna == 0;
 }
 
+bool
+db_base::select_rx_antenna(const std::string &which_antenna)
+{
+  // Specify which antenna port to use for reception.
+  // Should be overriden by daughterboards that care.
 
+  return which_antenna == "";
+}
+
+
 // Reference Clock section
 //
 // Control whether a reference clock is sent to the daughterboards,

Modified: gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.h
===================================================================
--- gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.h        
2008-12-15 14:19:46 UTC (rev 10122)
+++ gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.h        
2008-12-16 16:53:05 UTC (rev 10123)
@@ -91,6 +91,7 @@
   virtual bool set_enable(bool on);
   virtual bool set_auto_tr(bool on);
   virtual bool select_rx_antenna(int which_antenna);
+  virtual bool select_rx_antenna(const std::string &which_antenna);
   virtual void shutdown();
 };
 

Modified: gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.i
===================================================================
--- gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.i        
2008-12-15 14:19:46 UTC (rev 10122)
+++ gnuradio/branches/features/cppdb-test/usrp/host/lib/legacy/db_base.i        
2008-12-16 16:53:05 UTC (rev 10123)
@@ -81,6 +81,7 @@
   virtual bool set_enable(bool on);
   virtual bool set_auto_tr(bool on);
   virtual bool select_rx_antenna(int which_antenna);
+  virtual bool select_rx_antenna(const std::string &antenna);
   virtual void shutdown();
 };
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]