2020-11-26 01:25:22 -08:00
|
|
|
/**
|
2017-06-02 03:46:06 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* \section COPYRIGHT
|
2017-06-02 03:46:06 -07:00
|
|
|
*
|
2021-03-19 03:45:56 -07:00
|
|
|
* Copyright 2013-2021 Software Radio Systems Limited
|
2017-06-02 03:46:06 -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-06-02 03:46:06 -07:00
|
|
|
*
|
|
|
|
*/
|
2017-06-01 03:25:57 -07:00
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#ifndef SRSENB_PHY_METRICS_H
|
|
|
|
#define SRSENB_PHY_METRICS_H
|
2017-06-01 03:25:57 -07:00
|
|
|
|
|
|
|
namespace srsenb {
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
// PHY metrics per user
|
2017-06-01 03:25:57 -07:00
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
struct ul_metrics_t {
|
2017-06-01 03:25:57 -07:00
|
|
|
float n;
|
2021-01-19 12:55:24 -08:00
|
|
|
float pusch_sinr;
|
|
|
|
float pucch_sinr;
|
2017-06-01 03:25:57 -07:00
|
|
|
float rssi;
|
|
|
|
float turbo_iters;
|
|
|
|
float mcs;
|
2019-12-16 07:04:22 -08:00
|
|
|
int n_samples;
|
2021-01-19 12:55:24 -08:00
|
|
|
int n_samples_pucch;
|
2017-06-01 03:25:57 -07:00
|
|
|
};
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
struct dl_metrics_t {
|
2017-06-01 03:25:57 -07:00
|
|
|
float mcs;
|
2019-12-16 07:04:22 -08:00
|
|
|
int n_samples;
|
2017-06-01 03:25:57 -07:00
|
|
|
};
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
struct phy_metrics_t {
|
|
|
|
dl_metrics_t dl;
|
|
|
|
ul_metrics_t ul;
|
2017-06-01 03:25:57 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace srsenb
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#endif // SRSENB_PHY_METRICS_H
|