2015-03-03 17:07:26 +00:00
|
|
|
/*!
|
2019-02-22 20:49:07 +00:00
|
|
|
* \file flexiband_signal_source.h
|
|
|
|
* \brief ignal Source adapter for the Teleorbit Flexiband front-end device.
|
|
|
|
* This adapter requires a Flexiband GNU Radio driver
|
|
|
|
* installed (not included with GNSS-SDR)
|
2015-03-03 17:07:26 +00:00
|
|
|
* \author Javier Arribas, jarribas(at)cttc.es
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2015-03-03 17:07:26 +00:00
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2015-03-03 17:07:26 +00:00
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-12-30 12:35:06 +00:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2015-03-03 17:07:26 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2015-03-03 17:07:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#ifndef GNSS_SDR_FLEXIBAND_SIGNAL_SOURCE_H
|
|
|
|
#define GNSS_SDR_FLEXIBAND_SIGNAL_SOURCE_H
|
2015-03-03 17:07:26 +00:00
|
|
|
|
2019-07-16 15:41:12 +00:00
|
|
|
#include "concurrent_queue.h"
|
2021-02-15 22:34:48 +00:00
|
|
|
#include "signal_source_base.h"
|
2015-03-03 17:07:26 +00:00
|
|
|
#include <gnuradio/blocks/char_to_float.h>
|
2018-12-09 21:00:09 +00:00
|
|
|
#include <gnuradio/blocks/file_sink.h>
|
2015-03-03 17:07:26 +00:00
|
|
|
#include <gnuradio/blocks/float_to_complex.h>
|
2019-03-29 16:34:06 +00:00
|
|
|
#include <gnuradio/blocks/null_sink.h>
|
2018-12-09 21:00:09 +00:00
|
|
|
#include <gnuradio/hier_block2.h>
|
2019-07-16 15:41:12 +00:00
|
|
|
#include <pmt/pmt.h>
|
2019-08-17 11:56:54 +00:00
|
|
|
#include <memory>
|
2018-02-26 02:15:53 +00:00
|
|
|
#include <string>
|
2015-03-03 17:07:26 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
2020-11-01 12:37:19 +00:00
|
|
|
/** \addtogroup Signal_Source
|
|
|
|
* \{ */
|
|
|
|
/** \addtogroup Signal_Source_adapters
|
|
|
|
* \{ */
|
|
|
|
|
|
|
|
|
2015-03-03 17:07:26 +00:00
|
|
|
class ConfigurationInterface;
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief This class configures and reads samples from Teleorbit Flexiband front-end.
|
2015-03-04 20:09:44 +00:00
|
|
|
* This software requires a Flexiband GNU Radio driver installed (not included with GNSS-SDR).
|
2015-03-03 17:07:26 +00:00
|
|
|
*/
|
2021-02-09 22:47:34 +00:00
|
|
|
class FlexibandSignalSource : public SignalSourceBase
|
2015-03-03 17:07:26 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-06-29 07:07:41 +00:00
|
|
|
FlexibandSignalSource(const ConfigurationInterface* configuration,
|
2019-02-22 20:34:42 +00:00
|
|
|
const std::string& role, unsigned int in_stream,
|
2020-06-18 09:49:28 +00:00
|
|
|
unsigned int out_stream, Concurrent_Queue<pmt::pmt_t>* queue);
|
2015-03-03 17:07:26 +00:00
|
|
|
|
2019-07-21 17:32:52 +00:00
|
|
|
~FlexibandSignalSource() = default;
|
2017-08-15 22:58:10 +00:00
|
|
|
|
2017-08-21 09:45:12 +00:00
|
|
|
inline size_t item_size() override
|
2015-03-03 17:07:26 +00:00
|
|
|
{
|
|
|
|
return item_size_;
|
|
|
|
}
|
2017-08-15 22:58:10 +00:00
|
|
|
|
|
|
|
void connect(gr::top_block_sptr top_block) override;
|
|
|
|
void disconnect(gr::top_block_sptr top_block) override;
|
|
|
|
gr::basic_block_sptr get_left_block() override;
|
|
|
|
gr::basic_block_sptr get_right_block() override;
|
|
|
|
gr::basic_block_sptr get_right_block(int RF_channel) override;
|
2015-03-03 17:07:26 +00:00
|
|
|
|
|
|
|
private:
|
2024-04-05 11:37:45 +00:00
|
|
|
gnss_shared_ptr<gr::block> flexiband_source_;
|
2020-06-24 20:27:51 +00:00
|
|
|
|
2024-04-05 11:37:45 +00:00
|
|
|
std::vector<gnss_shared_ptr<gr::block>> char_to_float;
|
|
|
|
std::vector<gnss_shared_ptr<gr::block>> float_to_complex_;
|
2020-06-24 20:27:51 +00:00
|
|
|
std::vector<gr::blocks::null_sink::sptr> null_sinks_;
|
|
|
|
|
2015-03-03 17:07:26 +00:00
|
|
|
std::string item_type_;
|
2020-06-24 20:27:51 +00:00
|
|
|
std::string firmware_filename_;
|
|
|
|
std::string signal_file;
|
|
|
|
|
2015-03-03 17:07:26 +00:00
|
|
|
size_t item_size_;
|
2020-06-24 20:27:51 +00:00
|
|
|
unsigned int in_stream_;
|
|
|
|
unsigned int out_stream_;
|
2015-03-03 17:07:26 +00:00
|
|
|
|
|
|
|
int gain1_;
|
|
|
|
int gain2_;
|
|
|
|
int gain3_;
|
|
|
|
int usb_packet_buffer_size_;
|
2019-03-29 16:34:06 +00:00
|
|
|
int n_channels_;
|
|
|
|
int sel_ch_;
|
2015-03-03 17:07:26 +00:00
|
|
|
|
2020-06-24 20:27:51 +00:00
|
|
|
bool AGC_;
|
|
|
|
bool flag_read_file;
|
2015-03-03 17:07:26 +00:00
|
|
|
};
|
|
|
|
|
2020-11-01 12:37:19 +00:00
|
|
|
|
|
|
|
/** \} */
|
|
|
|
/** \} */
|
2020-02-08 09:10:46 +00:00
|
|
|
#endif // GNSS_SDR_FLEXIBAND_SIGNAL_SOURCE_H
|