Updates to C++ and Python APIs:
[debian/gnuradio] / gr-usrp2 / src / usrp2_base.h
index ad99b4eda558a8e84b226cfa3ce69649ec35cfae..67a62ba10643fb30ed68056e4d53608f0ffdc9c3 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2008 Free Software Foundation, Inc.
+ * Copyright 2008,2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -53,6 +53,41 @@ public:
    */
   std::string mac_addr() const;
   
+  /*!
+   * \brief Get interface name used to communicat with USRP2
+   */
+  std::string interface_name() const;
+
+  /*!
+   * \brief Get USRP2 master clock rate
+   */
+  bool fpga_master_clock_freq(long *freq) const;
+
+  /*!
+   * \brief MIMO configuration
+   */
+  bool config_mimo(int flags);
+  
+  /*!
+   * \brief Set master time to 0 at next PPS rising edge
+   */
+  bool sync_to_pps();
+
+  /*!
+   * Reset master time to 0 at every PPS edge
+   */
+  bool sync_every_pps(bool enable);
+
+  /*!
+   * \brief Read memory from Wishbone bus as words
+   */
+  std::vector<uint32_t> peek32(uint32_t addr, uint32_t words);
+
+  /*!
+   * \brief Write memory to Wishbone bus as words
+   */
+  bool poke32(uint32_t addr, const std::vector<uint32_t> &data);
+
   /*!
    * \brief Called by scheduler when starting flowgraph
    */