GNU Radio Radar Toolbox
signal_generator_fmcw_c.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_SIGNAL_GENERATOR_FMCW_C_H
22 #define INCLUDED_RADAR_SIGNAL_GENERATOR_FMCW_C_H
23 
24 #include <radar/api.h>
25 #include <gnuradio/sync_block.h>
26 
27 namespace gr {
28  namespace radar {
29 
30  /*!
31  * \brief This block generates a signal for FMCW radar in baseband. The modulation is structured in a CW part with constant frequency and a following up- and down-chirp.
32  * The chirp goes from CW frequency to CW frequency plus sweep frequency and back to the CW frequency. The CW part is first, up- and down-chirp is following.
33  * The packet length for subsequent tagged streams is calculated by the sum of the number of samples of the single modulations parts.
34  *
35  * \param samp_rate Signal sample rate
36  * \param samp_up Number samples of up-chirp part
37  * \param samp_down Number samples of down-chirp part
38  * \param samp_cw Number samples of CW part
39  * \param freq_cw CW signal frequency in baseband
40  * \param freq_sweep Sweep frequency of up- and down-chirp
41  * \param amplitude Signal amplitude
42  * \param len_key Packet length key for tagged stream
43  *
44  * \ingroup radar
45  *
46  */
47  class RADAR_API signal_generator_fmcw_c : virtual public gr::sync_block
48  {
49  public:
50  typedef boost::shared_ptr<signal_generator_fmcw_c> sptr;
51 
52  /*!
53  * \brief Return a shared_ptr to a new instance of radar::signal_generator_fmcw_c.
54  *
55  * To avoid accidental use of raw pointers, radar::signal_generator_fmcw_c's
56  * constructor is in a private implementation
57  * class. radar::signal_generator_fmcw_c::make is the public interface for
58  * creating new instances.
59  */
60  static sptr make(int samp_rate, int samp_up, int samp_down, int samp_cw, float freq_cw, float freq_sweep, float amplitude, const std::string& len_key="packet_len");
61  };
62 
63  } // namespace radar
64 } // namespace gr
65 
66 #endif /* INCLUDED_RADAR_SIGNAL_GENERATOR_FMCW_C_H */
67 
boost::shared_ptr< signal_generator_fmcw_c > sptr
Definition: signal_generator_fmcw_c.h:50
Definition: crop_matrix_vcvc.h:28
This block generates a signal for FMCW radar in baseband. The modulation is structured in a CW part w...
Definition: signal_generator_fmcw_c.h:47
#define RADAR_API
Definition: api.h:30