GNU Radio Radar Toolbox
 All Classes Namespaces Files Functions Variables Typedefs Macros
usrp_echotimer_cc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2014 Communications Engineering Lab, KIT.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_RADAR_USRP_ECHOTIMER_CC_H
22 #define INCLUDED_RADAR_USRP_ECHOTIMER_CC_H
23 
24 #include <radar/api.h>
25 #include <gnuradio/tagged_stream_block.h>
26 
27 namespace gr {
28  namespace radar {
29 
30  /*!
31  * \brief <+description of block+>
32  * \ingroup radar
33  *
34  */
35  class RADAR_API usrp_echotimer_cc : virtual public gr::tagged_stream_block
36  {
37  public:
38  typedef boost::shared_ptr<usrp_echotimer_cc> sptr;
39 
40  /*!
41  * \brief Return a shared_ptr to a new instance of radar::usrp_echotimer_cc.
42  *
43  * To avoid accidental use of raw pointers, radar::usrp_echotimer_cc's
44  * constructor is in a private implementation
45  * class. radar::usrp_echotimer_cc::make is the public interface for
46  * creating new instances.
47  */
48  static sptr make(int samp_rate, float center_freq, int num_delay_samps,
49  std::string args_tx, std::string wire_tx, std::string clock_source_tx, std::string time_source_tx, std::string antenna_tx, float gain_tx,
50  float timeout_tx, float wait_tx, float lo_offset_tx,
51  std::string args_rx, std::string wire_rx, std::string clock_source_rx, std::string time_source_rx, std::string antenna_rx, float gain_rx,
52  float timeout_rx, float wait_rx, float lo_offset_rx,
53  const std::string& len_key="packet_len");
54 
55  virtual void set_num_delay_samps(int num_samps) = 0;
56  virtual void set_rx_gain(float gain) = 0;
57  virtual void set_tx_gain(float gain) = 0;
58  };
59 
60  } // namespace radar
61 } // namespace gr
62 
63 #endif /* INCLUDED_RADAR_USRP_ECHOTIMER_CC_H */
64 
boost::shared_ptr< usrp_echotimer_cc > sptr
Definition: usrp_echotimer_cc.h:38
<+description of block+>
Definition: usrp_echotimer_cc.h:35
#define RADAR_API
Definition: api.h:30