|
|
@ -14,12 +14,12 @@
|
|
|
|
#define SRSUE_PHY_METRICS_H
|
|
|
|
#define SRSUE_PHY_METRICS_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "srsran/srsran.h"
|
|
|
|
#include "srsran/srsran.h"
|
|
|
|
#include <srsran/adt/circular_array.h>
|
|
|
|
#include <array>
|
|
|
|
|
|
|
|
|
|
|
|
namespace srsue {
|
|
|
|
namespace srsue {
|
|
|
|
|
|
|
|
|
|
|
|
struct info_metrics_t {
|
|
|
|
struct info_metrics_t {
|
|
|
|
typedef srsran::circular_array<info_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
typedef std::array<info_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
|
|
|
|
|
|
|
|
uint32_t pci;
|
|
|
|
uint32_t pci;
|
|
|
|
uint32_t dl_earfcn;
|
|
|
|
uint32_t dl_earfcn;
|
|
|
@ -31,7 +31,7 @@ struct info_metrics_t {
|
|
|
|
} while (false)
|
|
|
|
} while (false)
|
|
|
|
|
|
|
|
|
|
|
|
struct sync_metrics_t {
|
|
|
|
struct sync_metrics_t {
|
|
|
|
typedef srsran::circular_array<sync_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
typedef std::array<sync_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
|
|
|
|
|
|
|
|
float ta_us;
|
|
|
|
float ta_us;
|
|
|
|
float distance_km;
|
|
|
|
float distance_km;
|
|
|
@ -64,7 +64,7 @@ private:
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct ch_metrics_t {
|
|
|
|
struct ch_metrics_t {
|
|
|
|
typedef srsran::circular_array<ch_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
typedef std::array<ch_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
|
|
|
|
|
|
|
|
float n;
|
|
|
|
float n;
|
|
|
|
float sinr;
|
|
|
|
float sinr;
|
|
|
@ -106,7 +106,7 @@ private:
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct dl_metrics_t {
|
|
|
|
struct dl_metrics_t {
|
|
|
|
typedef srsran::circular_array<dl_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
typedef std::array<dl_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
|
|
|
|
|
|
|
|
float fec_iters;
|
|
|
|
float fec_iters;
|
|
|
|
float mcs;
|
|
|
|
float mcs;
|
|
|
@ -133,7 +133,7 @@ private:
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct ul_metrics_t {
|
|
|
|
struct ul_metrics_t {
|
|
|
|
typedef srsran::circular_array<ul_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
typedef std::array<ul_metrics_t, SRSRAN_MAX_CARRIERS> array_t;
|
|
|
|
|
|
|
|
|
|
|
|
float mcs;
|
|
|
|
float mcs;
|
|
|
|
float power;
|
|
|
|
float power;
|
|
|
|