GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
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 
20 #include "gnss_block_interface.h"
21 #include <gnuradio/sync_decimator.h>
22 
23 /** \addtogroup Data_Type
24  * \{ */
25 /** \addtogroup data_type_gnuradio_blocks
26  * \{ */
27 
28 
30 
31 using interleaved_short_to_complex_short_sptr = gnss_shared_ptr<interleaved_short_to_complex_short>;
32 
33 interleaved_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  */
39 class interleaved_short_to_complex_short : public gr::sync_decimator
40 {
41 public:
42  int work(int noutput_items,
43  gr_vector_const_void_star &input_items,
44  gr_vector_void_star &output_items);
45 
46 private:
47  friend interleaved_short_to_complex_short_sptr make_interleaved_short_to_complex_short();
49 };
50 
51 
52 /** \} */
53 /** \} */
54 #endif // GNSS_SDR_INTERLEAVED_SHORT_TO_COMPLEX_SHORT_H
This interface represents a GNSS block.
This class adapts a short (16-bits) interleaved sample stream into a std::complex<short> stream...