GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
direct_resampler_conditioner.h
Go to the documentation of this file.
1/*!
2 * \file direct_resampler_conditioner.h
3 * \brief Interface of an adapter of a direct resampler conditioner block
4 * to a SignalConditionerInterface
5 * \author Carlos Aviles, 2010. carlos.avilesr(at)googlemail.com
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
19#ifndef GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_H
20#define GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_H
21
23#include <gnuradio/hier_block2.h>
24#include <string>
25
26/** \addtogroup Resampler
27 * \{ */
28/** \addtogroup Resampler_adapters
29 * \{ */
30
31
33
34/*!
35 * \brief Interface of an adapter of a direct resampler conditioner block
36 * to a SignalConditionerInterface
37 */
38class DirectResamplerConditioner : public GNSSBlockInterface
39{
40public:
41 DirectResamplerConditioner(const ConfigurationInterface* configuration,
42 const std::string& role, unsigned int in_stream,
43 unsigned int out_stream);
44
45 ~DirectResamplerConditioner() = default;
46
47 inline std::string role() override
48 {
49 return role_;
50 }
51
52 //! Returns "Direct_Resampler"
53 inline std::string implementation() override
54 {
55 return "Direct_Resampler";
56 }
57
58 inline size_t item_size() override
59 {
60 return item_size_;
61 }
62
63 void connect(gr::top_block_sptr top_block) override;
64 void disconnect(gr::top_block_sptr top_block) override;
65 gr::basic_block_sptr get_left_block() override;
66 gr::basic_block_sptr get_right_block() override;
67
68private:
69 gr::block_sptr resampler_;
70 gr::block_sptr file_sink_;
71 std::string role_;
72 std::string item_type_;
73 std::string dump_filename_;
74 double sample_freq_in_;
75 double sample_freq_out_;
76 size_t item_size_;
77 unsigned int in_stream_;
78 unsigned int out_stream_;
79 bool dump_;
80};
81
82
83/** \} */
84/** \} */
85#endif // GNSS_SDR_DIRECT_RESAMPLER_CONDITIONER_H
This abstract class represents an interface to configuration parameters.
std::string implementation() override
Returns "Direct_Resampler".
This abstract class represents an interface to GNSS blocks.
This interface represents a GNSS block.