mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.8 KiB
C
66 lines
1.8 KiB
C
2 years ago
|
/**
|
||
|
*
|
||
|
* \section COPYRIGHT
|
||
|
*
|
||
|
* Copyright 2013-2022 Software Radio Systems Limited
|
||
|
*
|
||
|
* 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.
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
|
||
2 years ago
|
#ifndef SRSRAN_E2AP_RIC_SUBSCRIPTION_H
|
||
|
#define SRSRAN_E2AP_RIC_SUBSCRIPTION_H
|
||
2 years ago
|
|
||
2 years ago
|
#include "e2ap.h"
|
||
2 years ago
|
#include "srsran/common/task_scheduler.h"
|
||
|
#include "srsran/common/threads.h"
|
||
|
#include "srsran/srsran.h"
|
||
|
|
||
|
namespace srsenb {
|
||
|
|
||
2 years ago
|
class e2ap::ric_subscription
|
||
2 years ago
|
{
|
||
|
public:
|
||
2 years ago
|
ric_subscription(e2ap* e2ap, ricsubscription_request_s ric_subscription_request);
|
||
|
virtual ~ric_subscription() { parent = nullptr; };
|
||
2 years ago
|
|
||
|
uint32_t get_ric_requestor_id() { return ric_requestor_id; };
|
||
|
uint32_t get_ric_instance_id() { return ric_instance_id; };
|
||
2 years ago
|
bool is_initialized() { return initialized; };
|
||
2 years ago
|
|
||
2 years ago
|
void start_subscription();
|
||
|
void delete_subscription();
|
||
2 years ago
|
|
||
2 years ago
|
bool handle_subscription_modification_request(uint32_t ric_subscription_modification_request);
|
||
|
bool handle_subscription_modification_confirm(uint32_t ric_subscription_modification_confirm);
|
||
|
bool handle_subscription_modification_refuse(uint32_t ric_subscription_modification_refuse);
|
||
|
|
||
2 years ago
|
private:
|
||
2 years ago
|
void _send_subscription_response();
|
||
|
void _send_subscription_failure();
|
||
2 years ago
|
void _send_ric_indication();
|
||
2 years ago
|
uint32_t _generate_ric_indication_sn();
|
||
2 years ago
|
|
||
2 years ago
|
e2ap* parent = nullptr;
|
||
|
bool initialized = false;
|
||
2 years ago
|
|
||
|
uint32_t ric_requestor_id;
|
||
|
uint32_t ric_instance_id;
|
||
|
uint16_t ra_nfunction_id;
|
||
|
|
||
2 years ago
|
e2sm* sm_ptr = nullptr;
|
||
2 years ago
|
uint32_t reporting_period = 0; // ms
|
||
2 years ago
|
srsran::unique_timer reporting_timer; // for RIC indication reporting
|
||
2 years ago
|
|
||
2 years ago
|
std::vector<E2AP_RIC_action_t> admitted_actions;
|
||
2 years ago
|
std::vector<uint32_t> not_admitted_actions;
|
||
2 years ago
|
|
||
|
uint32_t _ric_indication_sn_gen = 0;
|
||
2 years ago
|
};
|
||
|
|
||
|
} // namespace srsenb
|
||
2 years ago
|
#endif // SRSRAN_E2AP_RIC_SUBSCRIPTION_H
|