|
|
@ -91,9 +91,9 @@ private:
|
|
|
|
std::vector<int32_t> rx_offset_n = {};
|
|
|
|
std::vector<int32_t> rx_offset_n = {};
|
|
|
|
rf_metrics_t rf_metrics = {};
|
|
|
|
rf_metrics_t rf_metrics = {};
|
|
|
|
std::mutex metrics_mutex;
|
|
|
|
std::mutex metrics_mutex;
|
|
|
|
srslog::basic_logger& logger = srslog::fetch_basic_logger("RF", false);
|
|
|
|
srslog::basic_logger& logger = srslog::fetch_basic_logger("RF", false);
|
|
|
|
phy_interface_radio* phy = nullptr;
|
|
|
|
phy_interface_radio* phy = nullptr;
|
|
|
|
cf_t* zeros = nullptr;
|
|
|
|
cf_t* zeros = nullptr;
|
|
|
|
std::array<cf_t*, SRSRAN_MAX_CHANNELS> dummy_buffers;
|
|
|
|
std::array<cf_t*, SRSRAN_MAX_CHANNELS> dummy_buffers;
|
|
|
|
std::mutex tx_mutex;
|
|
|
|
std::mutex tx_mutex;
|
|
|
|
std::mutex rx_mutex;
|
|
|
|
std::mutex rx_mutex;
|
|
|
@ -103,23 +103,23 @@ private:
|
|
|
|
std::array<srsran_resampler_fft_t, SRSRAN_MAX_CHANNELS> decimators = {};
|
|
|
|
std::array<srsran_resampler_fft_t, SRSRAN_MAX_CHANNELS> decimators = {};
|
|
|
|
bool decimator_busy = false; ///< Indicates the decimator is changing the rate
|
|
|
|
bool decimator_busy = false; ///< Indicates the decimator is changing the rate
|
|
|
|
|
|
|
|
|
|
|
|
rf_timestamp_t end_of_burst_time = {};
|
|
|
|
rf_timestamp_t end_of_burst_time = {};
|
|
|
|
bool is_start_of_burst = false;
|
|
|
|
std::atomic<bool> is_start_of_burst{false};
|
|
|
|
uint32_t tx_adv_nsamples = 0;
|
|
|
|
uint32_t tx_adv_nsamples = 0;
|
|
|
|
double tx_adv_sec = 0.0; // Transmission time advance to compensate for antenna->timestamp delay
|
|
|
|
double tx_adv_sec = 0.0; // Transmission time advance to compensate for antenna->timestamp delay
|
|
|
|
bool tx_adv_auto = false;
|
|
|
|
bool tx_adv_auto = false;
|
|
|
|
bool tx_adv_negative = false;
|
|
|
|
bool tx_adv_negative = false;
|
|
|
|
bool is_initialized = false;
|
|
|
|
bool is_initialized = false;
|
|
|
|
bool radio_is_streaming = false;
|
|
|
|
bool radio_is_streaming = false;
|
|
|
|
bool continuous_tx = false;
|
|
|
|
bool continuous_tx = false;
|
|
|
|
double freq_offset = 0.0;
|
|
|
|
double freq_offset = 0.0;
|
|
|
|
double cur_tx_srate = 0.0;
|
|
|
|
double cur_tx_srate = 0.0;
|
|
|
|
double cur_rx_srate = 0.0;
|
|
|
|
double cur_rx_srate = 0.0;
|
|
|
|
double fix_srate_hz = 0.0;
|
|
|
|
double fix_srate_hz = 0.0;
|
|
|
|
uint32_t nof_antennas = 0;
|
|
|
|
uint32_t nof_antennas = 0;
|
|
|
|
uint32_t nof_channels = 0;
|
|
|
|
uint32_t nof_channels = 0;
|
|
|
|
uint32_t nof_channels_x_dev = 0;
|
|
|
|
uint32_t nof_channels_x_dev = 0;
|
|
|
|
uint32_t nof_carriers = 0;
|
|
|
|
uint32_t nof_carriers = 0;
|
|
|
|
|
|
|
|
|
|
|
|
std::vector<double> cur_tx_freqs = {};
|
|
|
|
std::vector<double> cur_tx_freqs = {};
|
|
|
|
std::vector<double> cur_rx_freqs = {};
|
|
|
|
std::vector<double> cur_rx_freqs = {};
|
|
|
|