GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
unpack_spir_gss6450_samples.h
Go to the documentation of this file.
1/*!
2 * \file unpack_spir_gss6450_samples.h
3 * \brief Unpacks SPIR int samples
4 * \author Antonio Ramos, antonio.ramos(at)cttc.es
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 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_SPIR_GSS6450_SAMPLES_H
19#define GNSS_SDR_UNPACK_SPIR_GSS6450_SAMPLES_H
20
22#include <gnuradio/sync_interpolator.h>
23
24/** \addtogroup Signal_Source
25 * \{ */
26/** \addtogroup Signal_Source_gnuradio_blocks
27 * \{ */
28
29
31
32using unpack_spir_gss6450_samples_sptr = gnss_shared_ptr<unpack_spir_gss6450_samples>;
33
34unpack_spir_gss6450_samples_sptr make_unpack_spir_gss6450_samples(int adc_nbit_);
35
36
37class unpack_spir_gss6450_samples : public gr::sync_interpolator
38{
39public:
40 explicit unpack_spir_gss6450_samples(int adc_nbit);
41 ~unpack_spir_gss6450_samples() = default;
42 void decode_4bits_word(uint32_t input_uint32, gr_complex *out, int adc_bits_);
43 int work(int noutput_items,
44 gr_vector_const_void_star &input_items, gr_vector_void_star &output_items);
45
46private:
47 friend unpack_spir_gss6450_samples_sptr make_unpack_spir_gss6450_samples_sptr(int adc_nbit);
48 int adc_bits;
49 int samples_per_int;
50};
51
52
53/** \} */
54/** \} */
55#endif // GNSS_SDR_UNPACK_SPIR_GSS6450_SAMPLES_H
This interface represents a GNSS block.