GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
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 * 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_LITE_H
19#define GNSS_SDR_NOTCH_FILTER_LITE_H
20
22#include "notch_lite_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
35class NotchFilterLite : public GNSSBlockInterface
36{
37public:
38 NotchFilterLite(const ConfigurationInterface* configuration,
39 const std::string& role, unsigned int in_streams,
40 unsigned int out_streams);
41
42 ~NotchFilterLite() = default;
43
44 std::string role()
45 {
46 return role_;
47 }
48
49 //! Returns "Notch_Filter_Lite"
50 std::string implementation()
51 {
52 return "Notch_Filter_Lite";
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
65private:
66 notch_lite_sptr notch_filter_lite_;
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_LITE_H
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".
This interface represents a GNSS block.
Implements a notch filter light algorithm.