GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
interleaved_short_to_complex_short.h
Go to the documentation of this file.
1/*!
2 * \file interleaved_short_to_complex_short.h
3 * \brief Adapts a short (16-bits) interleaved sample stream into a std::complex<short> stream
4 * \author Carles Fernandez Prades, cfernandez(at)cttc.es
5 *
6 * -----------------------------------------------------------------------------
7 *
8 * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
9 * This file is part of GNSS-SDR.
10 *
11 * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
12 * SPDX-License-Identifier: GPL-3.0-or-later
13 *
14 * -----------------------------------------------------------------------------
15 */
16
17#ifndef GNSS_SDR_INTERLEAVED_SHORT_TO_COMPLEX_SHORT_H
18#define GNSS_SDR_INTERLEAVED_SHORT_TO_COMPLEX_SHORT_H
19
21#include <gnuradio/sync_decimator.h>
22
23/** \addtogroup Data_Type
24 * \{ */
25/** \addtogroup data_type_gnuradio_blocks
26 * \{ */
27
28
30
31using interleaved_short_to_complex_short_sptr = gnss_shared_ptr<interleaved_short_to_complex_short>;
32
33interleaved_short_to_complex_short_sptr make_interleaved_short_to_complex_short();
34
35/*!
36 * \brief This class adapts a short (16-bits) interleaved sample stream
37 * into a std::complex<short> stream
38 */
39class interleaved_short_to_complex_short : public gr::sync_decimator
40{
41public:
42 int work(int noutput_items,
43 gr_vector_const_void_star &input_items,
44 gr_vector_void_star &output_items);
45
46private:
47 friend interleaved_short_to_complex_short_sptr make_interleaved_short_to_complex_short();
48 interleaved_short_to_complex_short();
49};
50
51
52/** \} */
53/** \} */
54#endif // GNSS_SDR_INTERLEAVED_SHORT_TO_COMPLEX_SHORT_H
This class adapts a short (16-bits) interleaved sample stream into a std::complex<short> stream.
This interface represents a GNSS block.