make maintainer-clean removes these, and we want a clean orig.tar.gz
[debian/gnuradio] / gr-usrp2 / src / usrp2_sink_base.h
index 0c4fe72c66c006f1a046c56ef4ef9d41fcf09630..38dc4f2364a60fef6cbadc39c8394afcca9ed06a 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2008 Free Software Foundation, Inc.
+ * Copyright 2008,2010 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -40,11 +40,21 @@ protected:
 public:
   ~usrp2_sink_base();
 
+  /*!
+   * \brief Set antenna
+   */
+  bool set_antenna(int ant);
+
   /*!
    * \brief Set transmitter gain
    */
   bool set_gain(double gain);
 
+  /*!
+   * \brief Set transmitter LO offset frequency
+   */
+  bool set_lo_offset(double frequency);
+
   /*!
    * \brief Set transmitter center frequency
    */
@@ -55,6 +65,11 @@ public:
    */
   bool set_interp(int interp_factor);
 
+  /*!
+   * \brief Calculate default scale_iq for given interpolation factor
+   */
+  void default_scale_iq(int interpolation_factor, int *scale_i, int *scale_q);
+
   /*!
    * \brief Set transmit IQ scale factors
    */
@@ -104,6 +119,26 @@ public:
    * -2 if invalid EEPROM on daughterboard.
    */
   bool daughterboard_id(int *dbid);
+
+  /*!
+   * \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);
 };
 
 #endif /* INCLUDED_USRP2_SINK_BASE_H */