2011-10-01 18:45:20 +00:00
|
|
|
/*!
|
|
|
|
* \file acquisition_interface.h
|
|
|
|
* \brief Header file of the interface to an acquisition GNSS block.
|
|
|
|
* \author Carlos Aviles, 2010. carlos.avilesr(at)googlemail.com
|
|
|
|
* Luis Esteve, 2011. luis(at)epsilon-formacion.com
|
|
|
|
*
|
|
|
|
* This header file contains the interface to an abstract class
|
|
|
|
* for acquisition algorithms. Since all its methods are virtual,
|
|
|
|
* this class cannot be instantiated directly, and a subclass can only be
|
|
|
|
* instantiated directly if all inherited pure virtual methods have been
|
|
|
|
* implemented by that class or a parent class.
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2019-07-26 10:38:20 +00:00
|
|
|
* Copyright (C) 2010-2019 (see AUTHORS file for a list of contributors)
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
|
|
|
* GNSS-SDR is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
2015-01-08 18:49:59 +00:00
|
|
|
* (at your option) any later version.
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-05-13 20:49:11 +00:00
|
|
|
* along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
2011-10-01 18:45:20 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GNSS_SDR_ACQUISITION_INTERFACE_H_
|
|
|
|
#define GNSS_SDR_ACQUISITION_INTERFACE_H_
|
|
|
|
|
|
|
|
#include "gnss_block_interface.h"
|
2012-01-27 18:01:17 +00:00
|
|
|
#include "gnss_synchro.h"
|
2019-08-17 11:56:54 +00:00
|
|
|
#include <memory>
|
2011-10-01 18:45:20 +00:00
|
|
|
|
2018-03-03 01:03:39 +00:00
|
|
|
template <typename Data>
|
2019-02-22 09:47:24 +00:00
|
|
|
class Concurrent_Queue;
|
2011-10-01 18:45:20 +00:00
|
|
|
|
2019-03-20 14:13:17 +00:00
|
|
|
class ChannelFsm;
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
/*! \brief This abstract class represents an interface to an acquisition GNSS block.
|
|
|
|
*
|
|
|
|
* Abstract class for acquisition algorithms. Since all its methods are virtual,
|
|
|
|
* this class cannot be instantiated directly, and a subclass can only be
|
|
|
|
* instantiated directly if all inherited pure virtual methods have been
|
|
|
|
* implemented by that class or a parent class.
|
|
|
|
*/
|
2018-03-03 01:03:39 +00:00
|
|
|
class AcquisitionInterface : public GNSSBlockInterface
|
2011-10-01 18:45:20 +00:00
|
|
|
{
|
|
|
|
public:
|
2012-10-28 10:56:04 +00:00
|
|
|
virtual void set_gnss_synchro(Gnss_Synchro* gnss_synchro) = 0;
|
2019-03-20 14:13:17 +00:00
|
|
|
virtual void set_channel(unsigned int channel_id) = 0;
|
2019-04-09 15:39:48 +00:00
|
|
|
virtual void set_channel_fsm(std::weak_ptr<ChannelFsm> channel_fsm) = 0;
|
2011-10-01 18:45:20 +00:00
|
|
|
virtual void set_threshold(float threshold) = 0;
|
|
|
|
virtual void set_doppler_max(unsigned int doppler_max) = 0;
|
|
|
|
virtual void set_doppler_step(unsigned int doppler_step) = 0;
|
2019-07-23 15:56:02 +00:00
|
|
|
virtual void set_doppler_center(int doppler_center __attribute__((unused)))
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
2012-01-27 18:01:17 +00:00
|
|
|
virtual void init() = 0;
|
2013-07-23 18:03:07 +00:00
|
|
|
virtual void set_local_code() = 0;
|
2018-07-04 11:05:44 +00:00
|
|
|
virtual void set_state(int state) = 0;
|
2011-10-01 18:45:20 +00:00
|
|
|
virtual signed int mag() = 0;
|
|
|
|
virtual void reset() = 0;
|
2018-10-28 10:07:53 +00:00
|
|
|
virtual void stop_acquisition() = 0;
|
2018-12-05 15:50:32 +00:00
|
|
|
virtual void set_resampler_latency(uint32_t latency_samples) = 0;
|
2011-10-01 18:45:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* GNSS_SDR_ACQUISITION_INTERFACE */
|