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-01 03:25:57 -07:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#ifndef SRSENB_RRC_METRICS_H
|
|
|
|
#define SRSENB_RRC_METRICS_H
|
2017-06-01 03:25:57 -07:00
|
|
|
|
2021-04-07 06:38:05 -07:00
|
|
|
#include "srsenb/hdr/common/common_enb.h"
|
2020-11-19 05:40:40 -08:00
|
|
|
#include <vector>
|
2017-06-01 03:25:57 -07:00
|
|
|
|
|
|
|
namespace srsenb {
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
typedef enum {
|
2017-06-01 03:25:57 -07:00
|
|
|
RRC_STATE_IDLE = 0,
|
|
|
|
RRC_STATE_WAIT_FOR_CON_SETUP_COMPLETE,
|
2020-05-04 09:33:35 -07:00
|
|
|
RRC_STATE_WAIT_FOR_CON_REEST_COMPLETE,
|
2017-06-01 03:25:57 -07:00
|
|
|
RRC_STATE_WAIT_FOR_SECURITY_MODE_COMPLETE,
|
|
|
|
RRC_STATE_WAIT_FOR_UE_CAP_INFO,
|
2021-07-20 14:30:08 -07:00
|
|
|
RRC_STATE_WAIT_FOR_UE_CAP_INFO_ENDC, /* only entered for UEs with NSA support */
|
2017-06-01 03:25:57 -07:00
|
|
|
RRC_STATE_WAIT_FOR_CON_RECONF_COMPLETE,
|
2020-06-12 04:22:42 -07:00
|
|
|
RRC_STATE_REESTABLISHMENT_COMPLETE,
|
2017-06-01 03:25:57 -07:00
|
|
|
RRC_STATE_REGISTERED,
|
|
|
|
RRC_STATE_RELEASE_REQUEST,
|
|
|
|
RRC_STATE_N_ITEMS,
|
2019-12-16 07:04:22 -08:00
|
|
|
} rrc_state_t;
|
2017-06-01 03:25:57 -07:00
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
struct rrc_ue_metrics_t {
|
2020-12-08 07:55:42 -08:00
|
|
|
rrc_state_t state;
|
|
|
|
std::vector<std::pair<uint32_t, uint32_t> > drb_qci_map;
|
2017-06-01 03:25:57 -07:00
|
|
|
};
|
|
|
|
|
2019-12-16 07:04:22 -08:00
|
|
|
struct rrc_metrics_t {
|
2020-11-19 05:40:40 -08:00
|
|
|
std::vector<rrc_ue_metrics_t> ues;
|
2017-06-01 03:25:57 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace srsenb
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
#endif // SRSENB_RRC_METRICS_H
|