2020-11-26 01:25:22 -08:00
|
|
|
/**
|
2017-05-30 06:38:04 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* \section COPYRIGHT
|
2017-05-30 06:38:04 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* Copyright 2013-2020 Software Radio Systems Limited
|
2017-05-30 06:38:04 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* By using this file, you agree to the terms and conditions set
|
|
|
|
* forth in the LICENSE file which can be found at the top level of
|
|
|
|
* the distribution.
|
2017-05-30 06:38:04 -07:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#ifndef SRSUE_PHY_METRICS_H
|
|
|
|
#define SRSUE_PHY_METRICS_H
|
2017-05-30 06:38:04 -07:00
|
|
|
|
2020-01-28 01:13:44 -08:00
|
|
|
#include "srslte/srslte.h"
|
2017-05-30 06:38:04 -07:00
|
|
|
|
|
|
|
namespace srsue {
|
|
|
|
|
2019-12-03 01:34:00 -08:00
|
|
|
struct info_metrics_t {
|
|
|
|
uint32_t pci;
|
|
|
|
uint32_t dl_earfcn;
|
|
|
|
};
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
struct sync_metrics_t {
|
2018-05-10 19:49:00 -07:00
|
|
|
float ta_us;
|
2017-05-30 06:38:04 -07:00
|
|
|
float cfo;
|
|
|
|
float sfo;
|
|
|
|
};
|
|
|
|
|
2020-09-22 05:32:08 -07:00
|
|
|
struct ch_metrics_t {
|
2017-05-30 06:38:04 -07:00
|
|
|
float n;
|
|
|
|
float sinr;
|
|
|
|
float rsrp;
|
|
|
|
float rsrq;
|
|
|
|
float rssi;
|
2019-01-03 11:33:53 -08:00
|
|
|
float ri;
|
2017-05-30 06:38:04 -07:00
|
|
|
float pathloss;
|
2019-04-12 08:35:49 -07:00
|
|
|
float sync_err;
|
2017-05-30 06:38:04 -07:00
|
|
|
};
|
|
|
|
|
2020-09-22 05:32:08 -07:00
|
|
|
struct dl_metrics_t {
|
|
|
|
float turbo_iters;
|
|
|
|
float mcs;
|
|
|
|
};
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
struct ul_metrics_t {
|
2017-05-30 06:38:04 -07:00
|
|
|
float mcs;
|
|
|
|
float power;
|
|
|
|
};
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
struct phy_metrics_t {
|
2019-12-03 01:34:00 -08:00
|
|
|
info_metrics_t info[SRSLTE_MAX_CARRIERS];
|
2019-05-17 04:03:29 -07:00
|
|
|
sync_metrics_t sync[SRSLTE_MAX_CARRIERS];
|
2020-09-22 05:32:08 -07:00
|
|
|
ch_metrics_t ch[SRSLTE_MAX_CARRIERS];
|
2019-04-23 01:53:11 -07:00
|
|
|
dl_metrics_t dl[SRSLTE_MAX_CARRIERS];
|
|
|
|
ul_metrics_t ul[SRSLTE_MAX_CARRIERS];
|
|
|
|
uint32_t nof_active_cc;
|
2017-05-30 06:38:04 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace srsue
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#endif // SRSUE_PHY_METRICS_H
|