2019-04-23 01:53:11 -07:00
|
|
|
/*
|
|
|
|
* Copyright 2013-2019 Software Radio Systems Limited
|
2017-05-30 06:38:04 -07:00
|
|
|
*
|
2019-04-23 01:53:11 -07:00
|
|
|
* This file is part of srsLTE.
|
2017-05-30 06:38:04 -07:00
|
|
|
*
|
2019-04-23 01:53:11 -07:00
|
|
|
* srsLTE is free software: you can redistribute it and/or modify
|
2017-05-30 06:38:04 -07:00
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
2019-04-23 01:53:11 -07:00
|
|
|
* srsLTE is distributed in the hope that it will be useful,
|
2017-05-30 06:38:04 -07:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* A copy of the GNU Affero General Public License can be found in
|
|
|
|
* the LICENSE file in the top-level directory of this distribution
|
|
|
|
* and at http://www.gnu.org/licenses/.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#ifndef SRSUE_PHCH_RECV_H
|
|
|
|
#define SRSUE_PHCH_RECV_H
|
2017-05-30 06:38:04 -07:00
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
#include <condition_variable>
|
2017-11-20 01:02:39 -08:00
|
|
|
#include <map>
|
2019-06-10 15:52:03 -07:00
|
|
|
#include <mutex>
|
2018-03-19 06:14:51 -07:00
|
|
|
#include <pthread.h>
|
2019-05-27 09:21:55 -07:00
|
|
|
#include <srslte/phy/channel/channel.h>
|
2017-11-20 01:02:39 -08:00
|
|
|
|
2019-04-23 01:53:11 -07:00
|
|
|
#include "phy_common.h"
|
|
|
|
#include "prach.h"
|
|
|
|
#include "sf_worker.h"
|
2017-05-31 14:39:17 -07:00
|
|
|
#include "srslte/common/log.h"
|
|
|
|
#include "srslte/common/thread_pool.h"
|
2019-04-23 01:53:11 -07:00
|
|
|
#include "srslte/common/threads.h"
|
2017-11-20 01:02:39 -08:00
|
|
|
#include "srslte/common/tti_sync_cv.h"
|
2017-06-01 03:25:42 -07:00
|
|
|
#include "srslte/interfaces/ue_interfaces.h"
|
2019-04-23 01:53:11 -07:00
|
|
|
#include "srslte/srslte.h"
|
2019-06-07 05:38:58 -07:00
|
|
|
#include "srsue/hdr/phy/scell/async_scell_recv.h"
|
|
|
|
|
|
|
|
#include <srsue/hdr/phy/scell/intra_measure.h>
|
2017-05-30 06:38:04 -07:00
|
|
|
|
|
|
|
namespace srsue {
|
2019-07-05 07:47:39 -07:00
|
|
|
|
2017-11-20 01:02:39 -08:00
|
|
|
typedef _Complex float cf_t;
|
|
|
|
|
2019-04-23 01:53:11 -07:00
|
|
|
class sync : public thread, public chest_feedback_itf
|
2017-05-30 06:38:04 -07:00
|
|
|
{
|
|
|
|
public:
|
2019-07-05 07:47:39 -07:00
|
|
|
sync() : thread("SYNC"){};
|
2019-04-23 01:53:11 -07:00
|
|
|
~sync();
|
|
|
|
|
2019-07-05 07:47:39 -07:00
|
|
|
void init(srslte::radio_interface_phy* radio_,
|
|
|
|
stack_interface_phy_lte* _stack,
|
|
|
|
prach* prach_buffer,
|
|
|
|
srslte::thread_pool* _workers_pool,
|
|
|
|
phy_common* _worker_com,
|
|
|
|
srslte::log* _log_h,
|
|
|
|
srslte::log* _log_phy_lib_h,
|
|
|
|
scell::async_recv_vector* scell_sync_,
|
|
|
|
uint32_t prio,
|
|
|
|
int sync_cpu_affinity = -1);
|
2017-05-30 06:38:04 -07:00
|
|
|
void stop();
|
2018-03-19 06:14:51 -07:00
|
|
|
void radio_overflow();
|
2017-05-30 06:38:04 -07:00
|
|
|
|
2018-03-19 06:14:51 -07:00
|
|
|
// RRC interface for controling the SYNC state
|
2019-05-07 01:11:57 -07:00
|
|
|
phy_interface_rrc_lte::cell_search_ret_t cell_search(phy_interface_rrc_lte::phy_cell_t* cell);
|
|
|
|
bool cell_select(phy_interface_rrc_lte::phy_cell_t* cell);
|
2019-07-05 07:47:39 -07:00
|
|
|
bool cell_is_camping();
|
2017-06-21 09:29:17 -07:00
|
|
|
|
2018-03-19 06:14:51 -07:00
|
|
|
// RRC interface for controlling the neighbour cell measurement
|
2019-07-05 07:47:39 -07:00
|
|
|
void meas_reset();
|
|
|
|
int meas_start(uint32_t earfcn, int pci);
|
|
|
|
int meas_stop(uint32_t earfcn, int pci);
|
2017-11-20 01:02:39 -08:00
|
|
|
|
2017-11-30 11:01:35 -08:00
|
|
|
// from chest_feedback_itf
|
2019-06-10 15:52:03 -07:00
|
|
|
void in_sync() final;
|
|
|
|
void out_of_sync() final;
|
|
|
|
void set_cfo(float cfo) final;
|
2017-11-30 11:01:35 -08:00
|
|
|
|
2019-07-05 07:47:39 -07:00
|
|
|
void set_time_adv_sec(float time_adv_sec);
|
2019-06-10 15:52:03 -07:00
|
|
|
void get_current_cell(srslte_cell_t* cell, uint32_t* earfcn = nullptr);
|
2018-03-19 06:14:51 -07:00
|
|
|
uint32_t get_current_tti();
|
2017-10-13 08:59:12 -07:00
|
|
|
|
2018-03-19 06:14:51 -07:00
|
|
|
// From UE configuration
|
2019-07-05 07:47:39 -07:00
|
|
|
void set_agc_enable(bool enable);
|
|
|
|
void set_earfcn(std::vector<uint32_t> earfcn);
|
|
|
|
void force_freq(float dl_freq, float ul_freq);
|
2017-10-13 08:59:12 -07:00
|
|
|
|
2018-03-19 06:14:51 -07:00
|
|
|
// Other functions
|
2017-11-24 03:02:41 -08:00
|
|
|
double set_rx_gain(double gain);
|
2019-07-05 07:47:39 -07:00
|
|
|
int radio_recv_fnc(cf_t* data[SRSLTE_MAX_PORTS], uint32_t nsamples, srslte_timestamp_t* rx_time);
|
2017-05-30 06:38:04 -07:00
|
|
|
|
|
|
|
private:
|
2017-10-10 07:42:24 -07:00
|
|
|
// Class to run cell search
|
2019-07-05 07:47:39 -07:00
|
|
|
class search
|
|
|
|
{
|
2017-10-10 07:42:24 -07:00
|
|
|
public:
|
2019-07-05 07:47:39 -07:00
|
|
|
typedef enum { CELL_NOT_FOUND, CELL_FOUND, ERROR, TIMEOUT } ret_code;
|
2017-10-10 07:42:24 -07:00
|
|
|
|
|
|
|
~search();
|
2019-04-23 01:53:11 -07:00
|
|
|
void init(cf_t* buffer[SRSLTE_MAX_PORTS], srslte::log* log_h, uint32_t nof_rx_antennas, sync* parent);
|
2017-10-10 07:42:24 -07:00
|
|
|
void reset();
|
|
|
|
float get_last_cfo();
|
2018-02-13 06:06:22 -08:00
|
|
|
void set_agc_enable(bool enable);
|
2019-09-07 02:17:47 -07:00
|
|
|
ret_code run(srslte_cell_t* cell, std::array<uint8_t, SRSLTE_BCH_PAYLOAD_LEN>& bch_payload);
|
2017-10-10 07:42:24 -07:00
|
|
|
|
|
|
|
private:
|
2019-06-10 15:52:03 -07:00
|
|
|
sync* p = nullptr;
|
|
|
|
srslte::log* log_h = nullptr;
|
|
|
|
cf_t* buffer[SRSLTE_MAX_PORTS] = {};
|
|
|
|
srslte_ue_cellsearch_t cs = {};
|
|
|
|
srslte_ue_mib_sync_t ue_mib_sync = {};
|
|
|
|
int force_N_id_2 = 0;
|
2017-10-10 07:42:24 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
// Class to synchronize system frame number
|
2019-07-05 07:47:39 -07:00
|
|
|
class sfn_sync
|
|
|
|
{
|
2017-10-10 07:42:24 -07:00
|
|
|
public:
|
2019-07-05 07:47:39 -07:00
|
|
|
typedef enum { IDLE, SFN_FOUND, SFX0_FOUND, SFN_NOFOUND, ERROR } ret_code;
|
2019-06-10 15:52:03 -07:00
|
|
|
sfn_sync() = default;
|
2017-10-10 07:42:24 -07:00
|
|
|
~sfn_sync();
|
2019-04-23 01:53:11 -07:00
|
|
|
void init(srslte_ue_sync_t* ue_sync,
|
|
|
|
cf_t* buffer[SRSLTE_MAX_PORTS],
|
|
|
|
srslte::log* log_h,
|
|
|
|
uint32_t nof_subframes = SFN_SYNC_NOF_SUBFRAMES);
|
2017-10-10 07:42:24 -07:00
|
|
|
void reset();
|
|
|
|
bool set_cell(srslte_cell_t cell);
|
2019-09-07 02:17:47 -07:00
|
|
|
ret_code run_subframe(srslte_cell_t* cell,
|
|
|
|
uint32_t* tti_cnt,
|
|
|
|
std::array<uint8_t, SRSLTE_BCH_PAYLOAD_LEN>& bch_payload,
|
|
|
|
bool sfidx_only = false);
|
|
|
|
ret_code decode_mib(srslte_cell_t* cell,
|
|
|
|
uint32_t* tti_cnt,
|
|
|
|
cf_t* ext_buffer[SRSLTE_MAX_PORTS],
|
|
|
|
std::array<uint8_t, SRSLTE_BCH_PAYLOAD_LEN>& bch_payload,
|
|
|
|
bool sfidx_only = false);
|
2017-10-10 07:42:24 -07:00
|
|
|
|
|
|
|
private:
|
2018-03-19 06:14:51 -07:00
|
|
|
const static int SFN_SYNC_NOF_SUBFRAMES = 100;
|
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
uint32_t cnt = 0;
|
|
|
|
uint32_t timeout = 0;
|
|
|
|
srslte::log* log_h = nullptr;
|
|
|
|
srslte_ue_sync_t* ue_sync = nullptr;
|
|
|
|
cf_t* buffer[SRSLTE_MAX_PORTS] = {};
|
|
|
|
srslte_ue_mib_t ue_mib = {};
|
2017-10-10 07:42:24 -07:00
|
|
|
};
|
|
|
|
|
2017-11-20 01:02:39 -08:00
|
|
|
/* TODO: Intra-freq measurements can be improved by capturing 200 ms length signal and run cell search +
|
|
|
|
* measurements offline using sync object and finding multiple cells for each N_id_2
|
|
|
|
*/
|
|
|
|
|
2018-03-19 06:14:51 -07:00
|
|
|
std::vector<uint32_t> earfcn;
|
|
|
|
|
2019-07-05 07:47:39 -07:00
|
|
|
void reset();
|
|
|
|
void radio_error();
|
|
|
|
void set_ue_sync_opts(srslte_ue_sync_t* q, float cfo);
|
|
|
|
void run_thread() final;
|
|
|
|
float get_tx_cfo();
|
2018-03-19 06:14:51 -07:00
|
|
|
|
2019-07-05 07:47:39 -07:00
|
|
|
void set_sampling_rate();
|
|
|
|
bool set_frequency();
|
|
|
|
bool set_cell();
|
2018-03-19 06:14:51 -07:00
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
bool radio_is_overflow = false;
|
|
|
|
bool radio_overflow_return = false;
|
|
|
|
bool running = false;
|
2017-10-10 07:42:24 -07:00
|
|
|
|
|
|
|
// Objects for internal use
|
2019-07-05 07:47:39 -07:00
|
|
|
search search_p;
|
|
|
|
sfn_sync sfn_p;
|
|
|
|
scell::intra_measure intra_freq_meas;
|
2017-09-18 09:34:33 -07:00
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
uint32_t current_sflen = 0;
|
|
|
|
int next_offset = 0; // Sample offset triggered by Time aligment commands
|
|
|
|
int next_radio_offset[SRSLTE_MAX_RADIOS] = {}; // Sample offset triggered by SFO compensation
|
2017-10-10 07:42:24 -07:00
|
|
|
|
|
|
|
// Pointers to other classes
|
2019-07-05 07:47:39 -07:00
|
|
|
stack_interface_phy_lte* stack = nullptr;
|
|
|
|
srslte::log* log_h = nullptr;
|
|
|
|
srslte::log* log_phy_lib_h = nullptr;
|
|
|
|
srslte::thread_pool* workers_pool = nullptr;
|
|
|
|
srslte::radio_interface_phy* radio_h = nullptr;
|
|
|
|
phy_common* worker_com = nullptr;
|
|
|
|
prach* prach_buffer = nullptr;
|
|
|
|
scell::async_recv_vector* scell_sync = nullptr;
|
|
|
|
srslte::channel_ptr channel_emulator = nullptr;
|
2017-09-01 04:29:11 -07:00
|
|
|
|
2017-10-10 07:42:24 -07:00
|
|
|
// Object for synchronization of the primary cell
|
2019-06-10 15:52:03 -07:00
|
|
|
srslte_ue_sync_t ue_sync = {};
|
2017-09-01 04:29:11 -07:00
|
|
|
|
2019-04-23 01:53:11 -07:00
|
|
|
// Buffer for primary and secondary cell samples
|
2019-06-10 15:52:03 -07:00
|
|
|
cf_t* sf_buffer[SRSLTE_MAX_RADIOS][SRSLTE_MAX_PORTS] = {};
|
2017-05-30 06:38:04 -07:00
|
|
|
|
|
|
|
// Sync metrics
|
2019-06-10 15:52:03 -07:00
|
|
|
sync_metrics_t metrics = {};
|
2017-05-30 06:38:04 -07:00
|
|
|
|
2018-02-01 09:17:40 -08:00
|
|
|
// in-sync / out-of-sync counters
|
2019-06-10 15:52:03 -07:00
|
|
|
uint32_t out_of_sync_cnt = 0;
|
|
|
|
uint32_t in_sync_cnt = 0;
|
2018-02-01 09:17:40 -08:00
|
|
|
|
2019-04-12 08:48:49 -07:00
|
|
|
const static uint32_t NOF_OUT_OF_SYNC_SF = 20;
|
|
|
|
const static uint32_t NOF_IN_SYNC_SF = 10;
|
2018-02-01 09:17:40 -08:00
|
|
|
|
2018-03-19 06:14:51 -07:00
|
|
|
// State machine for SYNC thread
|
2019-07-05 07:47:39 -07:00
|
|
|
class sync_state
|
|
|
|
{
|
|
|
|
public:
|
2018-03-19 06:14:51 -07:00
|
|
|
typedef enum {
|
|
|
|
IDLE = 0,
|
|
|
|
CELL_SEARCH,
|
|
|
|
SFN_SYNC,
|
|
|
|
CAMPING,
|
|
|
|
} state_t;
|
|
|
|
|
|
|
|
/* Run_state is called by the main thread at the start of each loop. It updates the state
|
|
|
|
* and returns the current state
|
|
|
|
*/
|
2019-07-05 07:47:39 -07:00
|
|
|
state_t run_state()
|
|
|
|
{
|
2019-10-01 03:14:24 -07:00
|
|
|
std::lock_guard<std::mutex> lock(inside);
|
2018-03-19 06:14:51 -07:00
|
|
|
cur_state = next_state;
|
2018-08-14 10:50:03 -07:00
|
|
|
if (state_setting) {
|
2019-04-23 01:53:11 -07:00
|
|
|
state_setting = false;
|
|
|
|
state_running = true;
|
2018-08-14 10:50:03 -07:00
|
|
|
}
|
2019-06-10 15:52:03 -07:00
|
|
|
cvar.notify_all();
|
2018-03-19 06:14:51 -07:00
|
|
|
return cur_state;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Called by the main thread at the end of each state to indicate it has finished.
|
2019-07-05 07:47:39 -07:00
|
|
|
void state_exit(bool exit_ok = true)
|
|
|
|
{
|
2019-10-01 03:14:24 -07:00
|
|
|
std::lock_guard<std::mutex> lock(inside);
|
2018-03-21 02:46:24 -07:00
|
|
|
if (cur_state == SFN_SYNC && exit_ok == true) {
|
|
|
|
next_state = CAMPING;
|
|
|
|
} else {
|
|
|
|
next_state = IDLE;
|
|
|
|
}
|
2019-04-23 01:53:11 -07:00
|
|
|
state_running = false;
|
2019-06-10 15:52:03 -07:00
|
|
|
cvar.notify_all();
|
2018-03-19 06:14:51 -07:00
|
|
|
}
|
2019-07-05 07:47:39 -07:00
|
|
|
void force_sfn_sync()
|
|
|
|
{
|
2019-10-01 03:14:24 -07:00
|
|
|
std::lock_guard<std::mutex> lock(inside);
|
2018-03-19 06:14:51 -07:00
|
|
|
next_state = SFN_SYNC;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Functions to be called from outside the STM thread to instruct the STM to switch state.
|
|
|
|
* The functions change the state and wait until it has changed it.
|
|
|
|
*
|
|
|
|
* These functions are mutexed and only 1 can be called at a time
|
|
|
|
*/
|
2019-07-05 07:47:39 -07:00
|
|
|
void go_idle()
|
|
|
|
{
|
2019-10-01 03:14:24 -07:00
|
|
|
std::lock_guard<std::mutex> lock(outside);
|
2018-03-19 06:14:51 -07:00
|
|
|
go_state(IDLE);
|
|
|
|
}
|
2019-07-05 07:47:39 -07:00
|
|
|
void run_cell_search()
|
|
|
|
{
|
2019-10-01 03:14:24 -07:00
|
|
|
std::lock_guard<std::mutex> lock(outside);
|
2018-03-19 06:14:51 -07:00
|
|
|
go_state(CELL_SEARCH);
|
2019-04-23 01:53:11 -07:00
|
|
|
wait_state_run();
|
|
|
|
wait_state_next();
|
2018-03-19 06:14:51 -07:00
|
|
|
}
|
2019-07-05 07:47:39 -07:00
|
|
|
void run_sfn_sync()
|
|
|
|
{
|
2019-10-01 03:14:24 -07:00
|
|
|
std::lock_guard<std::mutex> lock(outside);
|
2018-03-19 06:14:51 -07:00
|
|
|
go_state(SFN_SYNC);
|
2019-04-23 01:53:11 -07:00
|
|
|
wait_state_run();
|
|
|
|
wait_state_next();
|
2018-03-19 06:14:51 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Helpers below this */
|
2019-07-05 07:47:39 -07:00
|
|
|
bool is_idle() { return cur_state == IDLE; }
|
|
|
|
bool is_camping() { return cur_state == CAMPING; }
|
2018-03-19 06:14:51 -07:00
|
|
|
|
2019-07-05 07:47:39 -07:00
|
|
|
const char* to_string()
|
|
|
|
{
|
|
|
|
switch (cur_state) {
|
2018-03-21 02:46:24 -07:00
|
|
|
case IDLE:
|
|
|
|
return "IDLE";
|
|
|
|
case CELL_SEARCH:
|
|
|
|
return "SEARCH";
|
|
|
|
case SFN_SYNC:
|
|
|
|
return "SYNC";
|
|
|
|
case CAMPING:
|
|
|
|
return "CAMPING";
|
|
|
|
default:
|
|
|
|
return "UNKNOWN";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
sync_state() = default;
|
2018-03-19 06:14:51 -07:00
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
private:
|
2019-07-05 07:47:39 -07:00
|
|
|
void go_state(state_t s)
|
|
|
|
{
|
2019-06-10 15:52:03 -07:00
|
|
|
std::unique_lock<std::mutex> ul(inside);
|
2019-07-05 07:47:39 -07:00
|
|
|
next_state = s;
|
2018-08-14 10:50:03 -07:00
|
|
|
state_setting = true;
|
2019-07-05 07:47:39 -07:00
|
|
|
while (state_setting) {
|
2019-06-10 15:52:03 -07:00
|
|
|
cvar.wait(ul);
|
2018-03-19 06:14:51 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Waits until there is a call to set_state() and then run_state(). Returns when run_state() returns */
|
2019-04-23 01:53:11 -07:00
|
|
|
void wait_state_run()
|
|
|
|
{
|
2019-06-10 15:52:03 -07:00
|
|
|
std::unique_lock<std::mutex> ul(inside);
|
2019-04-23 01:53:11 -07:00
|
|
|
while (state_running) {
|
2019-06-10 15:52:03 -07:00
|
|
|
cvar.wait(ul);
|
2019-04-23 01:53:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
void wait_state_next()
|
|
|
|
{
|
2019-06-10 15:52:03 -07:00
|
|
|
std::unique_lock<std::mutex> ul(inside);
|
2019-04-23 01:53:11 -07:00
|
|
|
while (cur_state != next_state) {
|
2019-06-10 15:52:03 -07:00
|
|
|
cvar.wait(ul);
|
2018-03-19 06:14:51 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
bool state_running = false;
|
|
|
|
bool state_setting = false;
|
|
|
|
state_t cur_state = IDLE;
|
|
|
|
state_t next_state = IDLE;
|
|
|
|
std::mutex inside;
|
|
|
|
std::mutex outside;
|
|
|
|
std::condition_variable cvar;
|
2018-03-19 06:14:51 -07:00
|
|
|
};
|
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
std::mutex rrc_mutex;
|
2018-03-05 04:07:24 -08:00
|
|
|
|
2018-03-19 06:14:51 -07:00
|
|
|
sync_state phy_state;
|
2017-06-23 10:15:30 -07:00
|
|
|
|
2019-07-05 07:47:39 -07:00
|
|
|
search::ret_code cell_search_ret = search::CELL_NOT_FOUND;
|
2017-09-01 04:29:11 -07:00
|
|
|
|
2017-10-10 07:42:24 -07:00
|
|
|
// Sampling rate mode (find is 1.96 MHz, camp is the full cell BW)
|
2019-07-05 07:47:39 -07:00
|
|
|
enum { SRATE_NONE = 0, SRATE_FIND, SRATE_CAMP } srate_mode = SRATE_NONE;
|
|
|
|
float current_srate = 0;
|
2017-05-30 06:38:04 -07:00
|
|
|
|
2017-10-10 07:42:24 -07:00
|
|
|
// This is the primary cell
|
2019-07-05 07:47:39 -07:00
|
|
|
srslte_cell_t cell = {};
|
|
|
|
bool started = false;
|
|
|
|
float time_adv_sec = 0;
|
2019-06-10 15:52:03 -07:00
|
|
|
float next_time_adv_sec = 0;
|
2019-07-05 07:47:39 -07:00
|
|
|
uint32_t tti = 0;
|
2019-09-07 02:17:47 -07:00
|
|
|
std::array<uint8_t, SRSLTE_BCH_PAYLOAD_LEN> mib;
|
2017-05-30 06:38:04 -07:00
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
uint32_t tx_worker_cnt = 0;
|
|
|
|
uint32_t nof_workers = 0;
|
2017-09-01 04:29:11 -07:00
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
float ul_dl_factor = NAN;
|
|
|
|
int current_earfcn = 0;
|
|
|
|
uint32_t cellsearch_earfcn_index = 0;
|
2017-10-10 03:33:10 -07:00
|
|
|
|
2019-06-10 15:52:03 -07:00
|
|
|
float dl_freq = -1;
|
|
|
|
float ul_freq = -1;
|
2017-05-30 06:38:04 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace srsue
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#endif // SRSUE_PHCH_RECV_H
|