srsLTE/srsue/hdr/phy/phy_metrics.h

69 lines
1.5 KiB
C
Raw Normal View History

2019-04-26 12:27:38 -07:00
/*
2020-03-13 04:12:52 -07:00
* Copyright 2013-2020 Software Radio Systems Limited
2017-05-30 06:38:04 -07:00
*
2019-04-26 12:27:38 -07:00
* This file is part of srsLTE.
2017-05-30 06:38:04 -07:00
*
2019-04-26 12:27:38 -07:00
* srsLTE is free software: you can redistribute it and/or modify
2017-05-30 06:38:04 -07:00
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
2019-04-26 12:27:38 -07:00
* srsLTE is distributed in the hope that it will be useful,
2017-05-30 06:38:04 -07:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* A copy of the GNU Affero General Public License can be found in
* the LICENSE file in the top-level directory of this distribution
* and at http://www.gnu.org/licenses/.
*
*/
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 dl_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 turbo_iters;
float mcs;
float pathloss;
float sync_err;
2017-05-30 06:38:04 -07:00
};
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];
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