2020-11-26 01:25:22 -08:00
|
|
|
/**
|
2017-06-01 03:25:42 -07:00
|
|
|
*
|
2020-11-26 01:25:22 -08:00
|
|
|
* \section COPYRIGHT
|
2017-06-01 03:25:42 -07:00
|
|
|
*
|
2021-03-19 03:45:56 -07:00
|
|
|
* Copyright 2013-2021 Software Radio Systems Limited
|
2017-06-01 03:25:42 -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:42 -07:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* File: interfaces.h
|
|
|
|
* Description: Abstract base class interfaces provided by layers
|
|
|
|
* to other layers.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
#ifndef SRSRAN_UE_INTERFACES_H
|
|
|
|
#define SRSRAN_UE_INTERFACES_H
|
2017-06-01 03:25:42 -07:00
|
|
|
|
2021-02-25 09:31:26 -08:00
|
|
|
#include "ue_mac_interfaces.h"
|
2021-02-25 11:01:44 -08:00
|
|
|
#include "ue_rrc_interfaces.h"
|
2017-06-01 03:25:42 -07:00
|
|
|
|
|
|
|
namespace srsue {
|
|
|
|
|
2019-10-02 07:38:48 -07:00
|
|
|
// STACK interface for RRC
|
2020-07-09 09:54:42 -07:00
|
|
|
class stack_interface_rrc
|
2019-10-02 07:38:48 -07:00
|
|
|
{
|
|
|
|
public:
|
2021-06-14 04:23:56 -07:00
|
|
|
virtual srsran::tti_point get_current_tti() = 0;
|
|
|
|
virtual void add_eps_bearer(uint8_t eps_bearer_id, srsran::srsran_rat_t rat, uint32_t lcid) = 0;
|
|
|
|
virtual void remove_eps_bearer(uint8_t eps_bearer_id) = 0;
|
2021-06-25 02:06:45 -07:00
|
|
|
virtual void reset_eps_bearers() = 0;
|
2019-10-02 07:38:48 -07:00
|
|
|
};
|
|
|
|
|
2019-05-07 01:11:57 -07:00
|
|
|
// Combined interface for PHY to access stack (MAC and RRC)
|
|
|
|
class stack_interface_phy_lte : public mac_interface_phy_lte, public rrc_interface_phy_lte
|
|
|
|
{
|
2020-03-18 08:43:28 -07:00
|
|
|
public:
|
|
|
|
/* Indicate new TTI */
|
|
|
|
virtual void run_tti(const uint32_t tti, const uint32_t tti_jump) = 0;
|
2019-05-07 01:11:57 -07:00
|
|
|
};
|
|
|
|
|
2018-03-31 10:04:04 -07:00
|
|
|
} // namespace srsue
|
2017-06-01 03:25:42 -07:00
|
|
|
|
2021-03-19 03:45:56 -07:00
|
|
|
#endif // SRSRAN_UE_INTERFACES_H
|