GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
complex_float_to_complex_byte.h
Go to the documentation of this file.
1 /*!
2  * \file complex_float_to_complex_byte.h
3  * \brief Adapts a gr_complex stream into a std::complex<signed char> stream
4  * \author Carles Fernandez Prades, cfernandez(at)cttc.es
5  *
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-2020 (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_COMPLEX_FLOAT_TO_COMPLEX_BYTE_H
19 #define GNSS_SDR_COMPLEX_FLOAT_TO_COMPLEX_BYTE_H
20 
21 #include "gnss_block_interface.h"
22 #include <gnuradio/sync_block.h>
23 #include <gnuradio/types.h> // for gr_vector_const_void_star
24 
25 /** \addtogroup Algorithms_Library
26  * \{ */
27 /** \addtogroup Algorithm_libs algorithms_libs
28  * \{ */
29 
30 
32 
33 using complex_float_to_complex_byte_sptr = gnss_shared_ptr<complex_float_to_complex_byte>;
34 
35 complex_float_to_complex_byte_sptr make_complex_float_to_complex_byte();
36 
37 /*!
38  * \brief This class adapts a gr_complex stream into a std::complex<signed char> stream
39  */
40 class complex_float_to_complex_byte : public gr::sync_block
41 {
42 public:
43  int work(int noutput_items,
44  gr_vector_const_void_star &input_items,
45  gr_vector_void_star &output_items);
46 
47 private:
48  friend complex_float_to_complex_byte_sptr make_complex_float_to_complex_byte();
50 };
51 
52 
53 /** \} */
54 /** \} */
55 #endif // GNSS_SDR_COMPLEX_FLOAT_TO_COMPLEX_BYTE_H
This interface represents a GNSS block.
This class adapts a gr_complex stream into a std::complex<signed char> stream.