1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-18 11:09:56 +00:00
gnss-sdr/src/algorithms/channel/libs/channel_msg_receiver_cc.h

57 lines
1.7 KiB
C
Raw Normal View History

/*!
* \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
* \author Javier Arribas, 2016. jarribas(at)cttc.es
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
*
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
* This file is part of GNSS-SDR.
*
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
* SPDX-License-Identifier: GPL-3.0-or-later
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
*/
#ifndef GNSS_SDR_CHANNEL_MSG_RECEIVER_CC_H
#define GNSS_SDR_CHANNEL_MSG_RECEIVER_CC_H
#include "channel_fsm.h"
#include <gnuradio/block.h>
2019-03-04 07:12:50 +00:00
#include <pmt/pmt.h>
#include <memory>
/** \addtogroup Channel
* \{ */
/** \addtogroup Channel_libs
* \{ */
class channel_msg_receiver_cc;
using channel_msg_receiver_cc_sptr = gnss_shared_ptr<channel_msg_receiver_cc>;
channel_msg_receiver_cc_sptr channel_msg_receiver_make_cc(std::shared_ptr<ChannelFsm> channel_fsm, bool repeat);
/*!
2016-04-25 18:34:27 +00:00
* \brief GNU Radio block that receives asynchronous channel messages from acquisition and tracking blocks
*/
class channel_msg_receiver_cc : public gr::block
{
public:
~channel_msg_receiver_cc() = default; //!< Default destructor
private:
2019-07-02 15:48:00 +00:00
friend channel_msg_receiver_cc_sptr channel_msg_receiver_make_cc(std::shared_ptr<ChannelFsm> channel_fsm, bool repeat);
channel_msg_receiver_cc(std::shared_ptr<ChannelFsm> channel_fsm, bool repeat);
void msg_handler_channel_events(const pmt::pmt_t& msg);
std::shared_ptr<ChannelFsm> d_channel_fsm;
bool d_repeat; // todo: change FSM to include repeat value
};
/** \} */
/** \} */
#endif // GNSS_SDR_CHANNEL_MSG_RECEIVER_CC_H