mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-14 22:27:12 +00:00
Sort data members in headers
This commit is contained in:
@@ -336,7 +336,7 @@ Ad9361FpgaSignalSource::~Ad9361FpgaSignalSource()
|
||||
}
|
||||
|
||||
|
||||
void Ad9361FpgaSignalSource::run_DMA_process(const std::string &FreqBand, const std::string &Filename1, const std::string &Filename2, const bool &enable_DMA)
|
||||
void Ad9361FpgaSignalSource::run_DMA_process(const std::string &FreqBand, const std::string &Filename1, const std::string &Filename2, bool enable_DMA)
|
||||
{
|
||||
const int MAX_INPUT_SAMPLES_TOTAL = 16384;
|
||||
int max_value = 0;
|
||||
|
||||
@@ -65,54 +65,57 @@ public:
|
||||
gr::basic_block_sptr get_right_block() override;
|
||||
|
||||
private:
|
||||
void run_DMA_process(const std::string &FreqBand,
|
||||
const std::string &Filename1,
|
||||
const std::string &Filename2,
|
||||
bool enable_DMA);
|
||||
|
||||
std::thread thread_file_to_dma;
|
||||
|
||||
std::shared_ptr<Fpga_Switch> switch_fpga;
|
||||
|
||||
std::string role_;
|
||||
|
||||
// Front-end settings
|
||||
uint64_t freq_; // frequency of local oscillator
|
||||
uint64_t sample_rate_;
|
||||
uint64_t bandwidth_;
|
||||
bool quadrature_;
|
||||
bool rf_dc_;
|
||||
bool bb_dc_;
|
||||
bool rx1_enable_;
|
||||
bool rx2_enable_;
|
||||
std::string gain_mode_rx1_;
|
||||
std::string gain_mode_rx2_;
|
||||
double rf_gain_rx1_;
|
||||
double rf_gain_rx2_;
|
||||
std::string rf_port_select_;
|
||||
std::string filter_file_;
|
||||
bool filter_auto_;
|
||||
std::string filter_source_;
|
||||
std::string filter_filename_;
|
||||
float Fpass_;
|
||||
float Fstop_;
|
||||
|
||||
// DDS configuration for LO generation for external mixer
|
||||
bool enable_dds_lo_;
|
||||
uint64_t freq_rf_tx_hz_;
|
||||
uint64_t freq_dds_tx_hz_;
|
||||
uint64_t tx_bandwidth_;
|
||||
double scale_dds_dbfs_;
|
||||
double phase_dds_deg_;
|
||||
double tx_attenuation_db_;
|
||||
|
||||
uint32_t in_stream_;
|
||||
uint32_t out_stream_;
|
||||
|
||||
size_t item_size_;
|
||||
|
||||
std::shared_ptr<Fpga_Switch> switch_fpga;
|
||||
int32_t switch_position;
|
||||
|
||||
std::thread thread_file_to_dma;
|
||||
std::string filename_rx1;
|
||||
std::string filename_rx2;
|
||||
std::string freq_band;
|
||||
|
||||
double rf_gain_rx1_;
|
||||
double rf_gain_rx2_;
|
||||
uint64_t freq_; // frequency of local oscillator
|
||||
uint64_t sample_rate_;
|
||||
uint64_t bandwidth_;
|
||||
float Fpass_;
|
||||
float Fstop_;
|
||||
|
||||
// DDS configuration for LO generation for external mixer
|
||||
double scale_dds_dbfs_;
|
||||
double phase_dds_deg_;
|
||||
double tx_attenuation_db_;
|
||||
uint64_t freq_rf_tx_hz_;
|
||||
uint64_t freq_dds_tx_hz_;
|
||||
uint64_t tx_bandwidth_;
|
||||
size_t item_size_;
|
||||
uint32_t in_stream_;
|
||||
uint32_t out_stream_;
|
||||
int32_t switch_position;
|
||||
bool enable_dds_lo_;
|
||||
|
||||
bool filter_auto_;
|
||||
bool quadrature_;
|
||||
bool rf_dc_;
|
||||
bool bb_dc_;
|
||||
bool rx1_enable_;
|
||||
bool rx2_enable_;
|
||||
bool enable_DMA_;
|
||||
bool rf_shutdown_;
|
||||
void run_DMA_process(const std::string &FreqBand, const std::string &Filename1, const std::string &Filename2, const bool &enable_DMA);
|
||||
};
|
||||
|
||||
#endif // GNSS_SDR_AD9361_FPGA_SIGNAL_SOURCE_H
|
||||
|
||||
@@ -103,16 +103,6 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
uint64_t samples_;
|
||||
int64_t sampling_frequency_;
|
||||
std::string filename_;
|
||||
std::string item_type_;
|
||||
bool repeat_;
|
||||
bool dump_;
|
||||
std::string dump_filename_;
|
||||
std::string role_;
|
||||
uint32_t in_streams_;
|
||||
uint32_t out_streams_;
|
||||
gr::blocks::file_source::sptr file_source_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
@@ -121,9 +111,22 @@ private:
|
||||
#endif
|
||||
gr::blocks::file_sink::sptr sink_;
|
||||
gr::blocks::throttle::sptr throttle_;
|
||||
|
||||
std::string role_;
|
||||
std::string item_type_;
|
||||
std::string filename_;
|
||||
std::string dump_filename_;
|
||||
|
||||
uint64_t samples_;
|
||||
int64_t sampling_frequency_;
|
||||
size_t item_size_;
|
||||
// Throttle control
|
||||
|
||||
uint32_t in_streams_;
|
||||
uint32_t out_streams_;
|
||||
|
||||
bool enable_throttle_control_;
|
||||
bool repeat_;
|
||||
bool dump_;
|
||||
};
|
||||
|
||||
#endif // GNSS_SDR_FILE_SIGNAL_SOURCE_H
|
||||
|
||||
@@ -76,29 +76,30 @@ public:
|
||||
gr::basic_block_sptr get_right_block(int RF_channel) override;
|
||||
|
||||
private:
|
||||
std::string role_;
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
std::string item_type_;
|
||||
size_t item_size_;
|
||||
|
||||
std::string firmware_filename_;
|
||||
int gain1_;
|
||||
int gain2_;
|
||||
int gain3_;
|
||||
int usb_packet_buffer_size_;
|
||||
bool AGC_;
|
||||
std::string signal_file;
|
||||
bool flag_read_file;
|
||||
|
||||
int n_channels_;
|
||||
int sel_ch_;
|
||||
|
||||
boost::shared_ptr<gr::block> flexiband_source_;
|
||||
|
||||
std::vector<boost::shared_ptr<gr::block>> char_to_float;
|
||||
std::vector<boost::shared_ptr<gr::block>> float_to_complex_;
|
||||
std::vector<gr::blocks::null_sink::sptr> null_sinks_;
|
||||
|
||||
std::string role_;
|
||||
std::string item_type_;
|
||||
std::string firmware_filename_;
|
||||
std::string signal_file;
|
||||
|
||||
size_t item_size_;
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
|
||||
int gain1_;
|
||||
int gain2_;
|
||||
int gain3_;
|
||||
int usb_packet_buffer_size_;
|
||||
int n_channels_;
|
||||
int sel_ch_;
|
||||
|
||||
bool AGC_;
|
||||
bool flag_read_file;
|
||||
};
|
||||
|
||||
#endif // GNSS_SDR_FLEXIBAND_SIGNAL_SOURCE_H
|
||||
|
||||
@@ -74,51 +74,6 @@ public:
|
||||
gr::basic_block_sptr get_right_block() override;
|
||||
|
||||
private:
|
||||
std::string role_;
|
||||
|
||||
// Front-end settings
|
||||
std::string uri_; // device direction
|
||||
uint64_t freq_; // frequency of local oscilator
|
||||
uint64_t sample_rate_;
|
||||
uint64_t bandwidth_;
|
||||
uint64_t buffer_size_; // reception buffer
|
||||
bool rx1_en_;
|
||||
bool rx2_en_;
|
||||
bool quadrature_;
|
||||
bool rf_dc_;
|
||||
bool bb_dc_;
|
||||
int RF_channels_;
|
||||
std::string gain_mode_rx1_;
|
||||
std::string gain_mode_rx2_;
|
||||
double rf_gain_rx1_;
|
||||
double rf_gain_rx2_;
|
||||
std::string rf_port_select_;
|
||||
std::string filter_file_;
|
||||
bool filter_auto_;
|
||||
std::string filter_source_;
|
||||
std::string filter_filename_;
|
||||
float Fpass_;
|
||||
float Fstop_;
|
||||
bool rf_shutdown_;
|
||||
|
||||
// DDS configuration for LO generation for external mixer
|
||||
bool enable_dds_lo_;
|
||||
uint64_t freq_rf_tx_hz_;
|
||||
uint64_t freq_dds_tx_hz_;
|
||||
double scale_dds_dbfs_;
|
||||
double phase_dds_deg_;
|
||||
double tx_attenuation_db_;
|
||||
uint64_t tx_bandwidth_;
|
||||
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
|
||||
std::string item_type_;
|
||||
size_t item_size_;
|
||||
int64_t samples_;
|
||||
bool dump_;
|
||||
std::string dump_filename_;
|
||||
|
||||
gr::iio::fmcomms2_source_f32c::sptr fmcomms2_source_f32c_;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
@@ -127,6 +82,53 @@ private:
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gr::blocks::file_sink::sptr file_sink_;
|
||||
|
||||
std::string role_;
|
||||
std::string item_type_;
|
||||
std::string dump_filename_;
|
||||
|
||||
// Front-end settings
|
||||
std::string uri_; // device direction
|
||||
std::string gain_mode_rx1_;
|
||||
std::string gain_mode_rx2_;
|
||||
std::string rf_port_select_;
|
||||
std::string filter_file_;
|
||||
std::string filter_source_;
|
||||
std::string filter_filename_;
|
||||
|
||||
int64_t samples_;
|
||||
size_t item_size_;
|
||||
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
|
||||
double rf_gain_rx1_;
|
||||
double rf_gain_rx2_;
|
||||
uint64_t freq_; // frequency of local oscilator
|
||||
uint64_t sample_rate_;
|
||||
uint64_t bandwidth_;
|
||||
uint64_t buffer_size_; // reception buffer
|
||||
float Fpass_;
|
||||
float Fstop_;
|
||||
int RF_channels_;
|
||||
|
||||
// DDS configuration for LO generation for external mixer
|
||||
double scale_dds_dbfs_;
|
||||
double phase_dds_deg_;
|
||||
double tx_attenuation_db_;
|
||||
uint64_t freq_rf_tx_hz_;
|
||||
uint64_t freq_dds_tx_hz_;
|
||||
uint64_t tx_bandwidth_;
|
||||
bool enable_dds_lo_;
|
||||
|
||||
bool rx1_en_;
|
||||
bool rx2_en_;
|
||||
bool quadrature_;
|
||||
bool rf_dc_;
|
||||
bool bb_dc_;
|
||||
bool filter_auto_;
|
||||
bool rf_shutdown_;
|
||||
bool dump_;
|
||||
};
|
||||
|
||||
#endif // GNSS_SDR_FMCOMMS2_SIGNAL_SOURCE_H
|
||||
|
||||
@@ -67,16 +67,16 @@ public:
|
||||
gr::basic_block_sptr get_right_block() override;
|
||||
|
||||
private:
|
||||
std::string role_;
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
std::string item_type_;
|
||||
size_t item_size_;
|
||||
std::string filename_;
|
||||
bool dump_;
|
||||
std::string dump_filename_;
|
||||
gr::block_sptr labsat23_source_;
|
||||
gr::blocks::file_sink::sptr file_sink_;
|
||||
std::string role_;
|
||||
std::string item_type_;
|
||||
std::string filename_;
|
||||
std::string dump_filename_;
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
size_t item_size_;
|
||||
bool dump_;
|
||||
};
|
||||
|
||||
#endif // GNSS_SDR_LABSAT_SIGNAL_SOURCE_H
|
||||
|
||||
@@ -77,37 +77,36 @@ public:
|
||||
|
||||
private:
|
||||
void driver_instance();
|
||||
std::string role_;
|
||||
|
||||
// Front-end settings
|
||||
bool AGC_enabled_;
|
||||
double sample_rate_;
|
||||
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
|
||||
double freq_;
|
||||
double gain_;
|
||||
double if_gain_;
|
||||
double rf_gain_;
|
||||
|
||||
std::string item_type_;
|
||||
size_t item_size_;
|
||||
int64_t samples_;
|
||||
bool dump_;
|
||||
std::string dump_filename_;
|
||||
|
||||
osmosdr::source::sptr osmosdr_source_;
|
||||
std::string osmosdr_args_;
|
||||
|
||||
std::string antenna_;
|
||||
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::shared_ptr<gr::block> valve_;
|
||||
#else
|
||||
boost::shared_ptr<gr::block> valve_;
|
||||
#endif
|
||||
gr::blocks::file_sink::sptr file_sink_;
|
||||
|
||||
std::string role_;
|
||||
std::string item_type_;
|
||||
std::string dump_filename_;
|
||||
std::string osmosdr_args_;
|
||||
std::string antenna_;
|
||||
|
||||
// Front-end settings
|
||||
double sample_rate_;
|
||||
double freq_;
|
||||
double gain_;
|
||||
double if_gain_;
|
||||
double rf_gain_;
|
||||
|
||||
size_t item_size_;
|
||||
int64_t samples_;
|
||||
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
|
||||
bool AGC_enabled_;
|
||||
bool dump_;
|
||||
};
|
||||
|
||||
#endif // GNSS_SDR_OSMOSDR_SIGNAL_SOURCE_H
|
||||
|
||||
@@ -75,34 +75,33 @@ public:
|
||||
gr::basic_block_sptr get_right_block(int RF_channel) override;
|
||||
|
||||
private:
|
||||
std::string role_;
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
gr::uhd::usrp_source::sptr uhd_source_;
|
||||
|
||||
// UHD SETTINGS
|
||||
uhd::stream_args_t uhd_stream_args_;
|
||||
std::string device_address_;
|
||||
double sample_rate_;
|
||||
int RF_channels_;
|
||||
std::string item_type_;
|
||||
size_t item_size_;
|
||||
|
||||
std::string subdevice_;
|
||||
std::string clock_source_;
|
||||
|
||||
std::vector<double> freq_;
|
||||
std::vector<double> gain_;
|
||||
std::vector<double> IF_bandwidth_hz_;
|
||||
std::vector<uint64_t> samples_;
|
||||
std::vector<bool> dump_;
|
||||
std::vector<std::string> dump_filename_;
|
||||
#if GNURADIO_USES_STD_POINTERS
|
||||
std::vector<std::shared_ptr<gr::block>> valve_;
|
||||
#else
|
||||
std::vector<boost::shared_ptr<gr::block>> valve_;
|
||||
#endif
|
||||
std::vector<gr::blocks::file_sink::sptr> file_sink_;
|
||||
std::vector<double> freq_;
|
||||
std::vector<double> gain_;
|
||||
std::vector<double> IF_bandwidth_hz_;
|
||||
std::vector<uint64_t> samples_;
|
||||
std::vector<std::string> dump_filename_;
|
||||
std::vector<bool> dump_;
|
||||
|
||||
uhd::stream_args_t uhd_stream_args_; // UHD SETTINGS
|
||||
|
||||
std::string device_address_;
|
||||
std::string item_type_;
|
||||
std::string subdevice_;
|
||||
std::string clock_source_;
|
||||
std::string role_;
|
||||
|
||||
double sample_rate_;
|
||||
size_t item_size_;
|
||||
int RF_channels_;
|
||||
unsigned int in_stream_;
|
||||
unsigned int out_stream_;
|
||||
};
|
||||
|
||||
#endif // GNSS_SDR_UHD_SIGNAL_SOURCE_H
|
||||
|
||||
@@ -71,16 +71,17 @@ private:
|
||||
std::string generate_filename();
|
||||
void decode_samples_one_channel(int16_t input_short, gr_complex *out, int type);
|
||||
int getBit(uint8_t byte, int position);
|
||||
bool d_header_parsed;
|
||||
uint8_t d_channel_selector;
|
||||
|
||||
std::ifstream binary_input_file;
|
||||
std::string d_signal_file_basename;
|
||||
Concurrent_Queue<pmt::pmt_t> *d_queue;
|
||||
int d_channel_selector_config;
|
||||
int d_current_file_number;
|
||||
uint8_t d_labsat_version;
|
||||
std::string d_signal_file_basename;
|
||||
std::ifstream binary_input_file;
|
||||
uint8_t d_channel_selector;
|
||||
uint8_t d_ref_clock;
|
||||
uint8_t d_bits_per_sample;
|
||||
Concurrent_Queue<pmt::pmt_t> *d_queue;
|
||||
bool d_header_parsed;
|
||||
};
|
||||
|
||||
#endif // GNSS_SDR_LABSAT23_SOURCE_H
|
||||
|
||||
Reference in New Issue
Block a user