GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
unpack_byte_4bit_samples.h
Go to the documentation of this file.
1 /*!
2  * \file unpack_byte_4bit_samples.h
3  *
4  * \brief Unpacks byte samples to 4 bits samples.
5  * Packing Order
6  * Packing order in Nibble I0 I1 I2 I3 I0 I1 I2 I3
7  * \author Javier Arribas jarribas (at) cttc.es
8  * -----------------------------------------------------------------------------
9  *
10  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
11  *
12  * GNSS-SDR is a software defined Global Navigation
13  * Satellite Systems receiver
14  *
15  * This file is part of GNSS-SDR.
16  *
17  * SPDX-License-Identifier: GPL-3.0-or-later
18  *
19  * -----------------------------------------------------------------------------
20  */
21 
22 #ifndef GNSS_SDR_UNPACK_BYTE_4BIT_SAMPLES_H
23 #define GNSS_SDR_UNPACK_BYTE_4BIT_SAMPLES_H
24 
25 #include <gnuradio/sync_interpolator.h>
26 
28 
29 using unpack_byte_4bit_samples_sptr = std::shared_ptr<unpack_byte_4bit_samples>;
30 
31 unpack_byte_4bit_samples_sptr make_unpack_byte_4bit_samples();
32 
33 /*!
34  * \brief This class implements conversion between byte packet samples to 4bit_cpx samples
35  * 1 byte = 1 x complex 4bit I, + 4bit Q samples
36  */
37 class unpack_byte_4bit_samples : public gr::sync_interpolator
38 {
39 public:
41  ~unpack_byte_4bit_samples() = default;
42  int work(int noutput_items,
43  gr_vector_const_void_star &input_items,
44  gr_vector_void_star &output_items);
45 
46 private:
47  friend unpack_byte_4bit_samples_sptr make_unpack_byte_4bit_samples_sptr();
48 };
49 
50 #endif // GNSS_SDR_UNPACK_BYTE_4BIT_SAMPLES_H
This class implements conversion between byte packet samples to 4bit_cpx samples 1 byte = 1 x complex...