GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
pps_samplestamp.h
Go to the documentation of this file.
1 /*!
2  * \file pps_samplestamp.h
3  * \brief A simple container for the sample count associated to PPS rising edge
4  * \author Javier Arribas, jarribas(at)cttc.es
5  * -----------------------------------------------------------------------------
6  *
7  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
8  * This file is part of GNSS-SDR.
9  *
10  * Copyright (C) 2010-2023 (see AUTHORS file for a list of contributors)
11  * SPDX-License-Identifier: GPL-3.0-or-later
12  *
13  * -----------------------------------------------------------------------------
14  */
15 
16 #ifndef IIOPPS_PPS_SAMPLESTAMP_H
17 #define IIOPPS_PPS_SAMPLESTAMP_H
18 
19 #include <cstdint>
20 
22 {
23 public:
24  uint64_t samplestamp = 0; // PPS rising edge samples counter from the beginning of rx stream opperation. Notice that it is reseted to zero if sample buffer overflow is detected on the FPGA side
25  uint32_t overflow_reg = 0; // >0 indicates overflow situation in the FPGA RX buffer
26 };
27 
28 #endif