srsLTE/srsenb/hdr/phy/phy_metrics.h

44 lines
701 B
C
Raw Normal View History

/**
2017-06-02 03:46:06 -07: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
*
* 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 {
// PHY metrics per user
2017-06-01 03:25:57 -07:00
struct ul_metrics_t {
2017-06-01 03:25:57 -07:00
float n;
float pusch_sinr;
float pucch_sinr;
2017-06-01 03:25:57 -07:00
float rssi;
float turbo_iters;
float mcs;
int n_samples;
int n_samples_pucch;
2017-06-01 03:25:57 -07:00
};
struct dl_metrics_t {
2017-06-01 03:25:57 -07:00
float mcs;
int n_samples;
2017-06-01 03:25:57 -07: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