GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
cshort_to_gr_complex.h
Go to the documentation of this file.
1/*!
2 * \file cshort_to_gr_complex.h
3 * \brief Adapts a complex short (16 + 16 bits) sample stream into a
4 * std::complex<float> stream (32 + 32 bits)
5 * \author Carles Fernandez Prades, 2014 cfernandez(at)cttc.es
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-2024 (see AUTHORS file for a list of contributors)
13 * SPDX-License-Identifier: GPL-3.0-or-later
14 *
15 * -----------------------------------------------------------------------------
16 */
17
18#ifndef GNSS_SDR_CSHORT_TO_GR_COMPLEX_H
19#define GNSS_SDR_CSHORT_TO_GR_COMPLEX_H
20
22#include <gnuradio/sync_block.h>
23
24/** \addtogroup Data_Type
25 * \{ */
26/** \addtogroup data_type_gnuradio_blocks
27 * \{ */
28
29
31
32using cshort_to_gr_complex_sptr = gnss_shared_ptr<cshort_to_gr_complex>;
33
34cshort_to_gr_complex_sptr make_cshort_to_gr_complex();
35
36/*!
37 * \brief This class adapts a short (16-bits) interleaved sample stream
38 * into a std::complex<float> stream
39 */
40class cshort_to_gr_complex : public gr::sync_block
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 cshort_to_gr_complex_sptr make_cshort_to_gr_complex();
49 cshort_to_gr_complex();
50};
51
52
53/** \} */
54/** \} */
55#endif // GNSS_SDR_CSHORT_TO_GR_COMPLEX_H
This class adapts a short (16-bits) interleaved sample stream into a std::complex<float> stream.
This interface represents a GNSS block.