srsLTE/srsue/hdr/phy/phy_metrics.h

66 lines
1.1 KiB
C
Raw Normal View History

/**
2017-05-30 06:38:04 -07:00
*
* \section COPYRIGHT
2017-05-30 06:38:04 -07:00
*
2021-03-19 03:45:56 -07:00
* Copyright 2013-2021 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
2021-03-19 03:45:56 -07:00
#include "srsran/srsran.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;
2021-03-09 04:08:36 -08:00
float distance_km;
float speed_kmph;
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 {
2021-03-19 03:45:56 -07:00
info_metrics_t info[SRSRAN_MAX_CARRIERS];
sync_metrics_t sync[SRSRAN_MAX_CARRIERS];
ch_metrics_t ch[SRSRAN_MAX_CARRIERS];
dl_metrics_t dl[SRSRAN_MAX_CARRIERS];
ul_metrics_t ul[SRSRAN_MAX_CARRIERS];
2019-04-23 01:53:11 -07:00
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