GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
interleaved_byte_to_complex_byte.h
Go to the documentation of this file.
1/*!
2 * \file interleaved_byte_to_complex_byte.h
3 * \brief Adapts an 8-bits interleaved sample stream into a 16-bits complex 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_BYTE_TO_COMPLEX_BYTE_H
18#define GNSS_SDR_INTERLEAVED_BYTE_TO_COMPLEX_BYTE_H
19
21#include <gnuradio/sync_decimator.h>
22
23/** \addtogroup Data_Type
24 * \{ */
25/** \addtogroup data_type_gnuradio_blocks data_type_gr_blocks
26 * GNU Radio Blocks for data type conversion
27 * \{ */
28
29
31
32using interleaved_byte_to_complex_byte_sptr = gnss_shared_ptr<interleaved_byte_to_complex_byte>;
33
34interleaved_byte_to_complex_byte_sptr make_interleaved_byte_to_complex_byte();
35
36/*!
37 * \brief This class adapts an 8-bits interleaved sample stream
38 * into a 16-bits complex stream (std::complex<unsigned char>)
39 */
40class interleaved_byte_to_complex_byte : 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_byte_sptr make_interleaved_byte_to_complex_byte();
49 interleaved_byte_to_complex_byte();
50};
51
52
53/** \} */
54/** \} */
55#endif // GNSS_SDR_INTERLEAVED_BYTE_TO_COMPLEX_BYTE_H
This class adapts an 8-bits interleaved sample stream into a 16-bits complex stream (std::complex<uns...
This interface represents a GNSS block.