GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
unpack_intspir_1bit_samples.h
Go to the documentation of this file.
1/*!
2 * \file unpack_intspir_1bit_samples.h
3 *
4 * \brief Unpacks SPIR int samples to NSR 1 bit samples
5 * \author Fran Fabra fabra (at) ice.csic.es
6 *
7 * -----------------------------------------------------------------------------
8 *
9 * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
10 * This file is not 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_INTSPIR_1BIT_SAMPLES_H
19#define GNSS_SDR_UNPACK_INTSPIR_1BIT_SAMPLES_H
20
22#include <gnuradio/sync_interpolator.h>
23
24
25/** \addtogroup Signal_Source
26 * \{ */
27/** \addtogroup Signal_Source_gnuradio_blocks
28 * \{ */
29
30
32
33using unpack_intspir_1bit_samples_sptr = gnss_shared_ptr<unpack_intspir_1bit_samples>;
34
35unpack_intspir_1bit_samples_sptr make_unpack_intspir_1bit_samples();
36
37/*!
38 * \brief This class implements conversion between byte packet samples to 2bit samples
39 * 1 byte = 4 2bit samples
40 */
41class unpack_intspir_1bit_samples : public gr::sync_interpolator
42{
43public:
44 unpack_intspir_1bit_samples();
45 ~unpack_intspir_1bit_samples() = default;
46 int work(int noutput_items,
47 gr_vector_const_void_star &input_items,
48 gr_vector_void_star &output_items);
49
50private:
51 friend unpack_intspir_1bit_samples_sptr make_unpack_intspir_1bit_samples_sptr();
52};
53
54
55/** \} */
56/** \} */
57#endif // GNSS_SDR_UNPACK_INTSPIR_1BIT_SAMPLES_H
This class implements conversion between byte packet samples to 2bit samples 1 byte = 4 2bit samples.
This interface represents a GNSS block.