2018-09-07 12:36:11 +00:00
|
|
|
/*!
|
|
|
|
* \file acquisition_msg_rx.h
|
|
|
|
* \brief This is a helper class to catch the asynchronous messages
|
|
|
|
* emitted by an acquisition block.
|
|
|
|
* \author Carles Fernandez-Prades, 2018. cfernandez(at)cttc.cat
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2019-07-26 10:38:20 +00:00
|
|
|
* Copyright (C) 2012-2019 (see AUTHORS file for a list of contributors)
|
2018-09-07 12:36:11 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2018-09-07 12:36:11 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2019-09-13 06:56:37 +00:00
|
|
|
#ifndef GNSS_SDR_ACQUISITION_MSG_RX_H_
|
|
|
|
#define GNSS_SDR_ACQUISITION_MSG_RX_H_
|
2018-09-07 12:36:11 +00:00
|
|
|
|
|
|
|
#include <gnuradio/block.h>
|
2018-12-09 21:00:09 +00:00
|
|
|
#include <gnuradio/top_block.h>
|
2018-09-07 12:36:11 +00:00
|
|
|
#include <pmt/pmt.h>
|
|
|
|
|
|
|
|
// ######## GNURADIO ACQUISITION BLOCK MESSAGE RECEVER #########
|
|
|
|
class Acquisition_msg_rx;
|
|
|
|
|
2019-02-11 12:02:18 +00:00
|
|
|
using Acquisition_msg_rx_sptr = boost::shared_ptr<Acquisition_msg_rx>;
|
2018-09-07 12:36:11 +00:00
|
|
|
|
|
|
|
Acquisition_msg_rx_sptr Acquisition_msg_rx_make();
|
|
|
|
|
|
|
|
|
|
|
|
class Acquisition_msg_rx : public gr::block
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
friend Acquisition_msg_rx_sptr Acquisition_msg_rx_make();
|
2019-09-11 22:31:34 +00:00
|
|
|
void msg_handler_events(const pmt::pmt_t& msg);
|
2018-09-07 12:36:11 +00:00
|
|
|
Acquisition_msg_rx();
|
|
|
|
|
|
|
|
public:
|
|
|
|
int rx_message;
|
|
|
|
gr::top_block_sptr top_block;
|
|
|
|
~Acquisition_msg_rx(); //!< Default destructor
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-09-13 06:56:37 +00:00
|
|
|
#endif // GNSS_SDR_ACQUISITION_MSG_RX_H_
|