GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
acquisition_msg_rx.h
Go to the documentation of this file.
1 /*!
2  * \file acquisition_msg_rx.h
3  * \brief This is a helper class to catch the asynchronous messages
4  * emitted by an acquisition block.
5  * \author Carles Fernandez-Prades, 2018. cfernandez(at)cttc.cat
6  *
7  *
8  * -----------------------------------------------------------------------------
9  *
10  * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
11  * This file is part of GNSS-SDR.
12  *
13  * Copyright (C) 2012-2020 (see AUTHORS file for a list of contributors)
14  * SPDX-License-Identifier: GPL-3.0-or-later
15  *
16  * -----------------------------------------------------------------------------
17  */
18 
19 #ifndef GNSS_SDR_ACQUISITION_MSG_RX_H
20 #define GNSS_SDR_ACQUISITION_MSG_RX_H
21 
22 #include "gnss_block_interface.h"
23 #include <gnuradio/block.h>
24 #include <gnuradio/top_block.h>
25 #include <pmt/pmt.h>
26 
27 
28 // ######## GNURADIO ACQUISITION BLOCK MESSAGE RECEVER #########
29 class Acquisition_msg_rx;
30 
31 using Acquisition_msg_rx_sptr = gnss_shared_ptr<Acquisition_msg_rx>;
32 
33 Acquisition_msg_rx_sptr Acquisition_msg_rx_make();
34 
35 
36 class Acquisition_msg_rx : public gr::block
37 {
38 private:
39  friend Acquisition_msg_rx_sptr Acquisition_msg_rx_make();
40  void msg_handler_channel_events(const pmt::pmt_t& msg);
42 
43 public:
44  int rx_message;
45  gr::top_block_sptr top_block;
46  ~Acquisition_msg_rx(); //!< Default destructor
47 };
48 
49 
50 #endif // GNSS_SDR_ACQUISITION_MSG_RX_H
~Acquisition_msg_rx()
Default destructor.
This interface represents a GNSS block.