GNU Radio Radar Toolbox
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 <gnuradio/tagged_stream_block.h>
25#include <radar/api.h>
26
27namespace gr {
28namespace radar {
29
30/*!
31 * \brief <+description of block+>
32 * \ingroup radar
33 *
34 */
35class RADAR_API usrp_echotimer_cc : virtual public gr::tagged_stream_block
36{
37public:
38 typedef std::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,
49 float center_freq,
50 int num_delay_samps,
51 std::string args_tx,
52 std::string wire_tx,
53 std::string clock_source_tx,
54 std::string time_source_tx,
55 std::string antenna_tx,
56 float gain_tx,
57 float timeout_tx,
58 float wait_tx,
59 float lo_offset_tx,
60 std::string args_rx,
61 std::string wire_rx,
62 std::string clock_source_rx,
63 std::string time_source_rx,
64 std::string antenna_rx,
65 float gain_rx,
66 float timeout_rx,
67 float wait_rx,
68 float lo_offset_rx,
69 const std::string& len_key = "packet_len");
70
71 virtual void set_num_delay_samps(int num_samps) = 0;
72 virtual void set_rx_gain(float gain) = 0;
73 virtual void set_tx_gain(float gain) = 0;
74};
75
76} // namespace radar
77} // namespace gr
78
79#endif /* INCLUDED_RADAR_USRP_ECHOTIMER_CC_H */
#define RADAR_API
Definition api.h:31
<+description of block+>
Definition usrp_echotimer_cc.h:36
virtual void set_tx_gain(float gain)=0
virtual void set_rx_gain(float gain)=0
virtual void set_num_delay_samps(int num_samps)=0
static sptr make(int samp_rate, float center_freq, int num_delay_samps, 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, float timeout_tx, float wait_tx, float lo_offset_tx, 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, float timeout_rx, float wait_rx, float lo_offset_rx, const std::string &len_key="packet_len")
Return a shared_ptr to a new instance of radar::usrp_echotimer_cc.
std::shared_ptr< usrp_echotimer_cc > sptr
Definition usrp_echotimer_cc.h:38
Definition crop_matrix_vcvc.h:28