srsLTE/srsue/hdr/phy/phy_metrics.h

64 lines
1.0 KiB
C
Raw Normal View History

/**
2017-05-30 06:38:04 -07:00
*
* \section COPYRIGHT
2017-05-30 06:38:04 -07:00
*
* Copyright 2013-2020 Software Radio Systems Limited
2017-05-30 06:38:04 -07: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
#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;
};
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;
};
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;
float sync_err;
2017-05-30 06:38:04 -07:00
};
struct dl_metrics_t {
float turbo_iters;
float mcs;
};
struct ul_metrics_t {
2017-05-30 06:38:04 -07:00
float mcs;
float power;
};
struct phy_metrics_t {
2019-12-03 01:34:00 -08:00
info_metrics_t info[SRSLTE_MAX_CARRIERS];
sync_metrics_t sync[SRSLTE_MAX_CARRIERS];
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