GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
notch_filter_lite.h
Go to the documentation of this file.
1 /*!
2  * \file notch_filter_lite.h
3  * \brief Adapts a light version of a multistate notch filter
4  * \author Antonio Ramos, 2017. antonio.ramosdet(at)gmail.com
5  *
6  *
7  * -----------------------------------------------------------------------------
8  *
9  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
10  *
11  * GNSS-SDR is a software defined Global Navigation
12  * Satellite Systems receiver
13  *
14  * This file is part of GNSS-SDR.
15  *
16  * SPDX-License-Identifier: GPL-3.0-or-later
17  *
18  * -----------------------------------------------------------------------------
19  */
20 
21 #ifndef GNSS_SDR_NOTCH_FILTER_LITE_H
22 #define GNSS_SDR_NOTCH_FILTER_LITE_H
23 
24 #include "gnss_block_interface.h"
25 #include "notch_lite_cc.h"
26 #include <gnuradio/blocks/file_sink.h>
27 #include <string>
28 #include <vector>
29 
31 
33 {
34 public:
35  NotchFilterLite(const ConfigurationInterface* configuration,
36  const std::string& role, unsigned int in_streams,
37  unsigned int out_streams);
38 
39  ~NotchFilterLite() = default;
40 
41  std::string role()
42  {
43  return role_;
44  }
45 
46  //! Returns "Notch_Filter_Lite"
47  std::string implementation()
48  {
49  return "Notch_Filter_Lite";
50  }
51 
52  size_t item_size()
53  {
54  return item_size_;
55  }
56 
57  void connect(gr::top_block_sptr top_block);
58  void disconnect(gr::top_block_sptr top_block);
59  gr::basic_block_sptr get_left_block();
60  gr::basic_block_sptr get_right_block();
61 
62 private:
63  notch_lite_sptr notch_filter_lite_;
64  gr::blocks::file_sink::sptr file_sink_;
65  std::string dump_filename_;
66  std::string role_;
67  std::string item_type_;
68  size_t item_size_;
69  unsigned int in_streams_;
70  unsigned int out_streams_;
71  bool dump_;
72 };
73 
74 #endif // GNSS_SDR_NOTCH_FILTER_LITE_H
Implements a notch filter light algorithm.
This interface represents a GNSS block.
This abstract class represents an interface to configuration parameters.
This abstract class represents an interface to GNSS blocks.
std::string implementation()
Returns "Notch_Filter_Lite".