GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
unpack_byte_2bit_samples.h
Go to the documentation of this file.
1 /*!
2  * \file unpack_byte_2bit_samples.h
3  *
4  * \brief Unpacks byte samples to NSR 2 bits samples
5  * \author Javier Arribas jarribas (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-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_UNPACK_BYTE_2BIT_SAMPLES_H
19 #define GNSS_SDR_UNPACK_BYTE_2BIT_SAMPLES_H
20 
21 #include "gnss_block_interface.h"
22 #include <gnuradio/sync_interpolator.h>
23 
24 
25 /** \addtogroup Signal_Source
26  * \{ */
27 /** \addtogroup Signal_Source_gnuradio_blocks
28  * \{ */
29 
31 
32 using unpack_byte_2bit_samples_sptr = gnss_shared_ptr<unpack_byte_2bit_samples>;
33 
34 unpack_byte_2bit_samples_sptr make_unpack_byte_2bit_samples();
35 
36 /*!
37  * \brief This class implements conversion between byte packet samples to 2bit samples
38  * 1 byte = 4 2bit samples
39  */
40 class unpack_byte_2bit_samples : public gr::sync_interpolator
41 {
42 public:
44  ~unpack_byte_2bit_samples() = default;
45  int work(int noutput_items,
46  gr_vector_const_void_star &input_items,
47  gr_vector_void_star &output_items);
48 
49 private:
50  friend unpack_byte_2bit_samples_sptr make_unpack_byte_2bit_samples_sptr();
51 };
52 
53 
54 /** \} */
55 /** \} */
56 #endif // GNSS_SDR_UNPACK_BYTE_2BIT_SAMPLES_H
This interface represents a GNSS block.
This class implements conversion between byte packet samples to 2bit samples 1 byte = 4 2bit samples...