summaryrefslogtreecommitdiff
path: root/gr-usrp/src/usrp_sink_base.i
blob: 17fca441de62f41c099876284ef2a847a62401a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* -*- 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 version 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 "usrp_sink_base.h"
%}

class usrp_sink_base : public usrp_base 
{
private:
  usrp_sink_base() throw (std::runtime_error);

public:
  bool set_interp_rate (unsigned int rate);
  bool set_nchannels (int nchan);
  bool set_mux (int mux);
  %rename(_real_determine_tx_mux_value) determine_tx_mux_value;
  int determine_tx_mux_value(usrp_subdev_spec ss);
  int determine_tx_mux_value(usrp_subdev_spec ss_a, usrp_subdev_spec ss_b);
  bool set_tx_freq (int channel, double freq);
  long dac_rate() const { return converter_rate(); }
  long dac_freq() const { return converter_rate(); }
  unsigned int interp_rate () const;
  int nchannels () const;
  int mux () const;
  double tx_freq (int channel) const;
  int nunderruns () const { return d_nunderruns; }
  bool has_rx_halfband();
  bool has_tx_halfband();
  int nddcs();
  int nducs();
  %rename(_real_tune) tune;
  bool tune(int chan, db_base_sptr db, double target_freq, usrp_tune_result *result);
  %rename(_real_pick_tx_subdevice) pick_tx_subdevice();
  usrp_subdev_spec pick_tx_subdevice();
};