GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
interleaved_byte_to_complex_short.h
Go to the documentation of this file.
1/*!
2 * \file interleaved_byte_to_complex_short.h
3 * \brief Adapts a byte (8-bits) interleaved sample stream into a std::complex<short> stream
4 * \author Javier Arribas (jarribas(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_BYTE_TO_COMPLEX_SHORT_H
18#define GNSS_SDR_INTERLEAVED_BYTE_TO_COMPLEX_SHORT_H
19
21#include <gnuradio/sync_decimator.h>
22
23
24/** \addtogroup Data_Type
25 * \{ */
26/** \addtogroup data_type_gnuradio_blocks
27 * \{ */
28
29
31
32using interleaved_byte_to_complex_short_sptr = gnss_shared_ptr<interleaved_byte_to_complex_short>;
33
34interleaved_byte_to_complex_short_sptr make_interleaved_byte_to_complex_short();
35
36/*!
37 * \brief This class adapts a short (16-bits) interleaved sample stream
38 * into a std::complex<short> stream
39 */
40class interleaved_byte_to_complex_short : public gr::sync_decimator
41{
42public:
43 int work(int noutput_items,
44 gr_vector_const_void_star &input_items,
45 gr_vector_void_star &output_items);
46
47private:
48 friend interleaved_byte_to_complex_short_sptr make_interleaved_byte_to_complex_short();
49 interleaved_byte_to_complex_short();
50};
51
52
53/** \} */
54/** \} */
55#endif // GNSS_SDR_INTERLEAVED_BYTE_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.