GNSS-SDR  0.0.21
An Open Source GNSS Software Defined Receiver
sensor_data_resampler.h
Go to the documentation of this file.
1 /*!
2  * \file sensor_data_resampler.h
3  * \brief Updates timestamp within sensor data tags. To be used in resampler blocks.
4  * \author Victor Castillo, 2025. victorcastilloaguero(at)gmail.com
5  *
6  * -----------------------------------------------------------------------------
7  *
8  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
9  * This file is part of GNSS-SDR.
10  *
11  * Copyright (C) 2025 (see AUTHORS file for a list of contributors)
12  * SPDX-License-Identifier: GPL-3.0-or-later
13  *
14  * -----------------------------------------------------------------------------
15  */
16 
17 
18 #ifndef GNSS_SDR_SENSOR_DATA_RESAMPLER_H
19 #define GNSS_SDR_SENSOR_DATA_RESAMPLER_H
20 
21 #include <gnuradio/tags.h>
22 #include <vector>
23 
24 /** \addtogroup Algorithms_Library
25  * \{ */
26 /** \addtogroup Algorithm_libs algorithms_libs
27  * \{ */
28 
29 
30 /** \brief Updates timestamp within sensor data tags. To be used in resampler blocks.
31  *
32  * \param tags Stream tags as retrieved by `get_tags_in_window` or `get_tags_in_range`.
33  * \param freq_in Input RF sample rate.
34  * \param freq_out Output RF sample rate.
35  * \return Stream tags to be added with `add_item_tag`.
36  */
37 std::vector<gr::tag_t> resample_sensor_data_tags(const std::vector<gr::tag_t>& tags, double freq_in, double freq_out);
38 
39 
40 /** \} */
41 /** \} */
42 #endif // GNSS_SDR_SENSOR_DATA_RESAMPLER_H
std::vector< gr::tag_t > resample_sensor_data_tags(const std::vector< gr::tag_t > &tags, double freq_in, double freq_out)
Updates timestamp within sensor data tags. To be used in resampler blocks.