commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r9220 - gnuradio/branches/developers/trondeau/dbs/gr-u


From: trondeau
Subject: [Commit-gnuradio] r9220 - gnuradio/branches/developers/trondeau/dbs/gr-usrp/src
Date: Sun, 10 Aug 2008 13:37:05 -0600 (MDT)

Author: trondeau
Date: 2008-08-10 13:37:05 -0600 (Sun, 10 Aug 2008)
New Revision: 9220

Added:
   gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.cc
   gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.h
   gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.i
Log:
adding db1_base wrapper class.

Added: gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.cc
===================================================================
--- gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.cc           
                (rev 0)
+++ gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.cc   
2008-08-10 19:37:05 UTC (rev 9220)
@@ -0,0 +1,58 @@
+//
+// Copyright 2008 Free Software Foundation, Inc.
+// 
+// This file is part of GNU Radio
+// 
+// GNU Radio is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either asversion 3, or (at your option)
+// any later version.
+// 
+// GNU Radio is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with GNU Radio; see the file COPYING.  If not, write to
+// the Free Software Foundation, Inc., 51 Franklin Street,
+// Boston, MA 02110-1301, USA.
+//
+
+#include <db1_base.h>
+
+db1_base::db1_base(usrp_basic *usrp, int which, bool tx)
+  : db_base(usrp, which, tx)
+{
+  printf("db1_base::db1_base\n");
+}
+
+db1_base::~db1_base()
+{
+}
+
+int 
+db1_base::dbid()
+{
+  return db_base::dbid();
+}
+
+std::string 
+db1_base::name()
+{
+  return db_base::name();
+}
+
+std::string
+db1_base::side_and_name()
+{
+  return db_base::side_and_name();
+}
+
+std::vector<float> 
+db1_base::set_freq(float target_freq)
+{
+  printf("set_freq\n");
+  return db_base::set_freq(target_freq);
+}
+

Added: gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.h
===================================================================
--- gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.h            
                (rev 0)
+++ gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.h    
2008-08-10 19:37:05 UTC (rev 9220)
@@ -0,0 +1,41 @@
+/* -*- c++ -*- */
+//
+// Copyright 2008 Free Software Foundation, Inc.
+// 
+// This file is part of GNU Radio
+// 
+// GNU Radio is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either asversion 3, or (at your option)
+// any later version.
+// 
+// GNU Radio is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with GNU Radio; see the file COPYING.  If not, write to
+// the Free Software Foundation, Inc., 51 Franklin Street,
+// Boston, MA 02110-1301, USA.
+//
+
+#ifndef DB1_BASE_H
+#define DB1_BASE_H
+
+#include <db_base.h>
+
+class db1_base : public db_base
+{
+ public:
+  db1_base(usrp_basic *usrp, int which, bool tx=true);
+  ~db1_base();
+
+  int dbid();
+  std::string name();
+  std::string side_and_name();
+  std::vector<float> set_freq(float target_freq);
+};
+
+
+#endif

Added: gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.i
===================================================================
--- gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.i            
                (rev 0)
+++ gnuradio/branches/developers/trondeau/dbs/gr-usrp/src/db1_base.i    
2008-08-10 19:37:05 UTC (rev 9220)
@@ -0,0 +1,38 @@
+/* -*- c++ -*- */
+//
+// Copyright 2008 Free Software Foundation, Inc.
+// 
+// This file is part of GNU Radio
+// 
+// GNU Radio is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either asversion 3, or (at your option)
+// any later version.
+// 
+// GNU Radio is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with GNU Radio; see the file COPYING.  If not, write to
+// the Free Software Foundation, Inc., 51 Franklin Street,
+// Boston, MA 02110-1301, USA.
+//
+
+%{
+#include "db1_base.h"
+%}
+
+class db1_base : public db_base
+{
+ public:
+  db1_base(usrp_basic *usrp, int which, bool tx=true);
+  ~db1_base();
+
+  int dbid();
+  std::string name();
+  std::string side_and_name();
+  std::vector<float> set_freq(float target_freq);
+};
+





reply via email to

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