Cleanup, changed ifc_name() to interface_name()
[debian/gnuradio] / usrp2 / host / lib / usrp2.cc
index ecfc0b30af672c5db0c92b4c7278ea1034f81d3b..2e8540e91cb13dd3cd7f36eb29116675bee45236 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2008 Free Software Foundation, Inc.
+ * Copyright 2008,2009 Free Software Foundation, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -160,6 +160,12 @@ namespace usrp2 {
     return d_impl->mac_addr();
   }
 
+  std::string
+  usrp2::interface_name()
+  {
+    return d_impl->interface_name();
+  }
+
   // Receive
 
   bool 
@@ -186,6 +192,12 @@ namespace usrp2 {
     return d_impl->rx_gain_db_per_step();
   }
 
+  bool
+  usrp2::set_rx_lo_offset(double frequency)
+  {
+    return d_impl->set_rx_lo_offset(frequency);
+  }
+
   bool
   usrp2::set_rx_center_freq(double frequency, tune_result *result)
   {
@@ -278,6 +290,12 @@ namespace usrp2 {
     return d_impl->tx_gain_db_per_step();
   }
 
+  bool
+  usrp2::set_tx_lo_offset(double frequency)
+  {
+    return d_impl->set_tx_lo_offset(frequency);
+  }
+
   bool
   usrp2::set_tx_center_freq(double frequency, tune_result *result)
   {
@@ -309,6 +327,12 @@ namespace usrp2 {
     return d_impl->tx_interp();
   }
 
+  void
+  usrp2::default_tx_scale_iq(int interpolation_factor, int *scale_i, int *scale_q)
+  {
+    d_impl->default_tx_scale_iq(interpolation_factor, scale_i, scale_q);
+  }
+
   bool
   usrp2::set_tx_scale_iq(int scale_i, int scale_q)
   {
@@ -395,6 +419,24 @@ namespace usrp2 {
     return d_impl->sync_to_pps();
   }
 
+  bool
+  usrp2::sync_every_pps(bool enable)
+  {
+    return d_impl->sync_every_pps(enable);
+  }
+
+  std::vector<uint32_t>
+  usrp2::peek32(uint32_t addr, uint32_t words)
+  {
+    return d_impl->peek32(addr, words);
+  }
+
+  bool
+  usrp2::poke32(uint32_t addr, const std::vector<uint32_t> &data)
+  {
+    return d_impl->poke32(addr, data);
+  }
+
 } // namespace usrp2