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