mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-12-17 22:08:05 +00:00
Sort out building flags and improve their reporting
This commit is contained in:
@@ -25,6 +25,14 @@ if(ENABLE_PLUTOSDR)
|
||||
set(OPT_DRIVER_HEADERS ${OPT_DRIVER_HEADERS} ad936x_custom_signal_source.h)
|
||||
endif()
|
||||
|
||||
if(ENABLE_AD936X_SDR AND NOT ENABLE_PLUTOSDR)
|
||||
##############################################
|
||||
# CUSTOM AD936X IIO SOURCE
|
||||
##############################################
|
||||
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} ad936x_custom_signal_source.cc)
|
||||
set(OPT_DRIVER_HEADERS ${OPT_DRIVER_HEADERS} ad936x_custom_signal_source.h)
|
||||
endif()
|
||||
|
||||
if(ENABLE_FMCOMMS2)
|
||||
###############################################
|
||||
# FMCOMMS2 based SDR Hardware
|
||||
|
||||
@@ -10,13 +10,7 @@ if(ENABLE_RAW_UDP AND PCAP_FOUND)
|
||||
list(APPEND OPT_DRIVER_HEADERS gr_complex_ip_packet_source.h)
|
||||
endif()
|
||||
|
||||
if(ENABLE_AD936X_SDR)
|
||||
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} gr_complex_ip_packet_source.cc)
|
||||
set(OPT_DRIVER_HEADERS ${OPT_DRIVER_HEADERS} gr_complex_ip_packet_source.h)
|
||||
endif()
|
||||
|
||||
|
||||
if(ENABLE_PLUTOSDR)
|
||||
if(ENABLE_PLUTOSDR OR ENABLE_AD936X_SDR)
|
||||
set(OPT_DRIVER_SOURCES ${OPT_DRIVER_SOURCES} ad936x_iio_source.cc)
|
||||
set(OPT_DRIVER_HEADERS ${OPT_DRIVER_HEADERS} ad936x_iio_source.h)
|
||||
endif()
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*!
|
||||
* \file ad936x_iio_source.cc
|
||||
* \brief A direct IIO custom front-end gnss-sdr signal gnuradio block for the AD936x AD front-end family with special FPGA custom functionalities.
|
||||
* \brief A direct IIO custom front-end gnss-sdr signal gnuradio block for the
|
||||
* AD936x AD front-end family with special FPGA custom functionalities.
|
||||
* \author Javier Arribas, jarribas(at)cttc.es
|
||||
*
|
||||
* -----------------------------------------------------------------------------
|
||||
@@ -35,9 +36,9 @@
|
||||
ad936x_iio_source_sptr ad936x_iio_make_source_sptr(
|
||||
const std::string& pluto_uri_,
|
||||
const std::string& board_type_,
|
||||
long long bandwidth_,
|
||||
long long sample_rate_,
|
||||
long long freq_,
|
||||
int64_t bandwidth_,
|
||||
int64_t sample_rate_,
|
||||
int64_t freq_,
|
||||
const std::string& rf_port_select_,
|
||||
const std::string& rf_filter,
|
||||
const std::string& gain_mode_rx0_,
|
||||
@@ -46,7 +47,7 @@ ad936x_iio_source_sptr ad936x_iio_make_source_sptr(
|
||||
double rf_gain_rx1_,
|
||||
bool enable_ch0,
|
||||
bool enable_ch1,
|
||||
long long freq_2ch,
|
||||
int64_t freq_2ch,
|
||||
bool ppsmode_,
|
||||
bool customsamplesize_,
|
||||
const std::string& fe_ip_,
|
||||
@@ -106,9 +107,9 @@ void ad936x_iio_source::ad9361_channel_demux_and_record(ad936x_iio_samples* samp
|
||||
ad936x_iio_source::ad936x_iio_source(
|
||||
const std::string& pluto_uri_,
|
||||
const std::string& board_type_,
|
||||
long long bandwidth_,
|
||||
long long sample_rate_,
|
||||
long long freq_,
|
||||
int64_t bandwidth_,
|
||||
int64_t sample_rate_,
|
||||
int64_t freq_,
|
||||
const std::string& rf_port_select_,
|
||||
const std::string& rf_filter,
|
||||
const std::string& gain_mode_rx0_,
|
||||
@@ -117,7 +118,7 @@ ad936x_iio_source::ad936x_iio_source(
|
||||
double rf_gain_rx1_,
|
||||
bool enable_ch0,
|
||||
bool enable_ch1,
|
||||
long long freq_2ch,
|
||||
int64_t freq_2ch,
|
||||
bool ppsmode_,
|
||||
bool customsamplesize_,
|
||||
const std::string& fe_ip_,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/*!
|
||||
* \file ad936x_iio_source.h
|
||||
* \brief A direct IIO custom front-end gnss-sdr signal gnuradio block for the AD936x AD front-end family with special FPGA custom functionalities.
|
||||
* \brief A direct IIO custom front-end gnss-sdr signal gnuradio block for the
|
||||
* AD936x AD front-end family with special FPGA custom functionalities.
|
||||
* \author Javier Arribas, jarribas(at)cttc.es
|
||||
*
|
||||
* -----------------------------------------------------------------------------
|
||||
@@ -46,9 +47,9 @@ using ad936x_iio_source_sptr = gnss_shared_ptr<ad936x_iio_source>;
|
||||
ad936x_iio_source_sptr ad936x_iio_make_source_sptr(
|
||||
const std::string &pluto_uri_,
|
||||
const std::string &board_type_,
|
||||
long long bandwidth_,
|
||||
long long sample_rate_,
|
||||
long long freq_,
|
||||
int64_t bandwidth_,
|
||||
int64_t sample_rate_,
|
||||
int64_t freq_,
|
||||
const std::string &rf_port_select_,
|
||||
const std::string &rf_filter,
|
||||
const std::string &gain_mode_rx0_,
|
||||
@@ -57,7 +58,7 @@ ad936x_iio_source_sptr ad936x_iio_make_source_sptr(
|
||||
double rf_gain_rx1_,
|
||||
bool enable_ch0,
|
||||
bool enable_ch1,
|
||||
long long freq_2ch,
|
||||
int64_t freq_2ch,
|
||||
bool ppsmode_,
|
||||
bool customsamplesize_,
|
||||
const std::string &fe_ip_,
|
||||
@@ -92,9 +93,9 @@ private:
|
||||
friend ad936x_iio_source_sptr ad936x_iio_make_source_sptr(
|
||||
const std::string &pluto_uri_,
|
||||
const std::string &board_type_,
|
||||
long long bandwidth_,
|
||||
long long sample_rate_,
|
||||
long long freq_,
|
||||
int64_t bandwidth_,
|
||||
int64_t sample_rate_,
|
||||
int64_t freq_,
|
||||
const std::string &rf_port_select_,
|
||||
const std::string &rf_filter,
|
||||
const std::string &gain_mode_rx0_,
|
||||
@@ -103,7 +104,7 @@ private:
|
||||
double rf_gain_rx1_,
|
||||
bool enable_ch0,
|
||||
bool enable_ch1,
|
||||
long long freq_2ch,
|
||||
int64_t freq_2ch,
|
||||
bool ppsmode_,
|
||||
bool customsamplesize_,
|
||||
const std::string &fe_ip_,
|
||||
@@ -118,9 +119,9 @@ private:
|
||||
ad936x_iio_source(
|
||||
const std::string &pluto_uri_,
|
||||
const std::string &board_type_,
|
||||
long long bandwidth_,
|
||||
long long sample_rate_,
|
||||
long long freq_,
|
||||
int64_t bandwidth_,
|
||||
int64_t sample_rate_,
|
||||
int64_t freq_,
|
||||
const std::string &rf_port_select_,
|
||||
const std::string &rf_filter,
|
||||
const std::string &gain_mode_rx0_,
|
||||
@@ -129,7 +130,7 @@ private:
|
||||
double rf_gain_rx1_,
|
||||
bool enable_ch0,
|
||||
bool enable_ch1,
|
||||
long long freq_2ch,
|
||||
int64_t freq_2ch,
|
||||
bool ppsmode_,
|
||||
bool customsamplesize_,
|
||||
const std::string &fe_ip_,
|
||||
@@ -141,7 +142,6 @@ private:
|
||||
bool high_side_lo_,
|
||||
int tx_lo_channel_);
|
||||
|
||||
|
||||
void ad9361_channel_demux_to_buffer(ad936x_iio_samples *samples_in, int nchannels, gr_vector_void_star &output_items);
|
||||
void ad9361_channel_demux_and_record(ad936x_iio_samples *samples_in, int nchannels, std::vector<std::fstream> *files_out);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ if((ENABLE_FPGA AND ENABLE_AD9361) OR ENABLE_MAX2771)
|
||||
set(OPT_SIGNAL_SOURCE_LIB_HEADERS ${OPT_SIGNAL_SOURCE_LIB_HEADERS} fpga_buffer_monitor.h)
|
||||
endif()
|
||||
|
||||
if(ENABLE_PLUTOSDR)
|
||||
if(ENABLE_PLUTOSDR OR ENABLE_AD936X_SDR)
|
||||
set(OPT_SIGNAL_SOURCE_LIB_HEADERS ${OPT_SIGNAL_SOURCE_LIB_HEADERS} ad936x_iio_samples.h)
|
||||
set(OPT_SIGNAL_SOURCE_LIB_SOURCES ${OPT_SIGNAL_SOURCE_LIB_SOURCES} ad936x_iio_custom.cc)
|
||||
set(OPT_SIGNAL_SOURCE_LIB_HEADERS ${OPT_SIGNAL_SOURCE_LIB_HEADERS} ad936x_iio_custom.h)
|
||||
@@ -51,7 +51,6 @@ if(ENABLE_ION)
|
||||
set(OPT_SIGNAL_SOURCE_LIB_HEADERS ${OPT_SIGNAL_SOURCE_LIB_HEADERS} ion_gsms_chunk_unpacking_ctx.h)
|
||||
endif()
|
||||
|
||||
|
||||
set(SIGNAL_SOURCE_LIB_SOURCES
|
||||
rtl_tcp_commands.cc
|
||||
rtl_tcp_dongle_info.cc
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
#define IIO_DEFAULTAD936XAPIFIFOSIZE_SAMPLES 32768 * 4
|
||||
#define IIO_INPUTRAMFIFOSIZE 256
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
|
||||
/** \addtogroup Signal_Source
|
||||
|
||||
Reference in New Issue
Block a user