GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
sensor_data_type.h
Go to the documentation of this file.
1/*!
2 * \file sensor_data_type.h
3 * \brief
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) 2024-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_TYPE_H
19#define GNSS_SDR_SENSOR_DATA_TYPE_H
20
21#include <pmt/pmt.h>
22#include <string>
23
24/** \addtogroup Algorithms_Library
25 * \{ */
26/** \addtogroup Algorithm_libs algorithms_libs
27 * \{ */
28
29struct SensorDataType
30{
31 SensorDataType() = delete;
32 enum value_type
33 {
34 UINT64, // Used internally for SAMPLE_STAMP and CHUNK_COUNT
35 F32,
36 F64,
37 I32,
38 I64,
39 // More types can be added here, don't forget to update the static functions
40 };
41
42 static value_type from_string(const std::string& s);
43
44 static std::string to_string(const value_type& v);
45
46 static uint64_t get_size(const value_type& v);
47
48 static pmt::pmt_t make_value(const value_type& v, void* value);
49};
50
51
52/** \} */
53/** \} */
54#endif // GNSS_SDR_SENSOR_DATA_TYPE_H