Merge commit 'v3.3.0' into upstream
[debian/gnuradio] / gr-usrp2 / src / usrp2_source_base.h
index 998a022dadc034a786b60f5fcdec0c157737ce8c..9e35e2e9360e245f6a5971e2ea182c0ab773970b 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2008 Free Software Foundation, Inc.
+ * Copyright 2008,2009,2010 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -40,11 +40,21 @@ protected:
 public:
   ~usrp2_source_base();
 
+  /*!
+   * \brief Set antenna
+   */
+  bool set_antenna(int ant);
+
   /*!
    * \brief Set receiver gain
    */
   bool set_gain(double gain);
 
+  /*!
+   * \brief Set receive LO offset frequency
+   */
+  bool set_lo_offset(double frequency);
+
   /*!
    * \brief Set receiver center frequency
    */
@@ -124,6 +134,31 @@ public:
    * \brief Called by scheduler when stopping flowgraph
    */
   virtual bool stop();
+
+  /*!
+   * \brief Set daughterboard GPIO data direction register.
+   */
+  bool set_gpio_ddr(uint16_t value, uint16_t mask);
+
+  /*!
+   * \brief Set daughterboard GPIO output selection register.
+   */
+  bool set_gpio_sels(std::string sels);
+
+  /*!
+   * \brief Set daughterboard GPIO pin values.
+   */
+  bool write_gpio(uint16_t value, uint16_t mask);
+
+  /*!
+   * \brief Read daughterboard GPIO pin values
+   */
+  bool read_gpio(uint16_t *value);
+
+  /*!
+   * \brief Enable streaming GPIO in sample LSBs
+   */
+  bool enable_gpio_streaming(int enable);
 };
 
 #endif /* INCLUDED_USRP2_SOURCE_BASE_H */