2016-04-18 12:17:09 +00:00
|
|
|
/*!
|
|
|
|
* \file channel_msg_receiver_cc.h
|
2016-04-25 18:34:27 +00:00
|
|
|
* \brief GNU Radio block that receives asynchronous channel messages from acquisition and tracking blocks
|
2016-04-18 12:17:09 +00:00
|
|
|
* \author Javier Arribas, 2016. jarribas(at)cttc.es
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
2018-05-13 20:49:11 +00:00
|
|
|
* Copyright (C) 2010-2018 (see AUTHORS file for a list of contributors)
|
2016-04-18 12:17:09 +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
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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/>.
|
2016-04-18 12:17:09 +00:00
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GNSS_SDR_CHANNEL_MSG_RECEIVER_CC_H
|
|
|
|
#define GNSS_SDR_CHANNEL_MSG_RECEIVER_CC_H
|
|
|
|
|
|
|
|
#include "channel_fsm.h"
|
2018-02-26 02:15:53 +00:00
|
|
|
#include <gnuradio/block.h>
|
2019-03-04 07:12:50 +00:00
|
|
|
#include <pmt/pmt.h>
|
|
|
|
#include <memory>
|
2016-04-18 12:17:09 +00:00
|
|
|
|
|
|
|
class channel_msg_receiver_cc;
|
|
|
|
|
2019-02-11 12:02:18 +00:00
|
|
|
using channel_msg_receiver_cc_sptr = boost::shared_ptr<channel_msg_receiver_cc>;
|
2016-04-18 12:17:09 +00:00
|
|
|
|
2018-01-08 11:03:32 +00:00
|
|
|
channel_msg_receiver_cc_sptr channel_msg_receiver_make_cc(std::shared_ptr<ChannelFsm> channel_fsm, bool repeat);
|
2016-04-18 12:17:09 +00:00
|
|
|
|
|
|
|
/*!
|
2016-04-25 18:34:27 +00:00
|
|
|
* \brief GNU Radio block that receives asynchronous channel messages from acquisition and tracking blocks
|
2016-04-18 12:17:09 +00:00
|
|
|
*/
|
|
|
|
class channel_msg_receiver_cc : public gr::block
|
|
|
|
{
|
2019-07-01 21:44:42 +00:00
|
|
|
public:
|
|
|
|
~channel_msg_receiver_cc(); //!< Default destructor
|
|
|
|
|
2016-04-18 12:17:09 +00:00
|
|
|
private:
|
2018-01-08 11:03:32 +00:00
|
|
|
std::shared_ptr<ChannelFsm> d_channel_fsm;
|
2018-03-03 01:03:39 +00:00
|
|
|
bool d_repeat; // todo: change FSM to include repeat value
|
2018-01-08 11:03:32 +00:00
|
|
|
friend channel_msg_receiver_cc_sptr channel_msg_receiver_make_cc(std::shared_ptr<ChannelFsm> channel_fsm, bool repeat);
|
2016-04-18 12:17:09 +00:00
|
|
|
void msg_handler_events(pmt::pmt_t msg);
|
2018-01-08 11:03:32 +00:00
|
|
|
channel_msg_receiver_cc(std::shared_ptr<ChannelFsm> channel_fsm, bool repeat);
|
2016-04-18 12:17:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|