ue_stack_lte: expose MAC NR interface for NSA configs

This commit is contained in:
Andre Puschmann 2021-02-02 15:01:28 +01:00
parent 5ec78be872
commit ecf7eaec5c
1 changed files with 17 additions and 1 deletions

View File

@ -46,6 +46,9 @@ namespace srsue {
class ue_stack_lte final : public ue_stack_base,
public stack_interface_phy_lte,
#ifdef HAVE_5GNR
public stack_interface_phy_nr,
#endif
public stack_interface_gw,
public stack_interface_rrc,
public srslte::thread
@ -78,7 +81,7 @@ public:
void set_config_complete(bool status) final;
void set_scell_complete(bool status) final;
// MAC Interface for PHY
// MAC Interface for EUTRA PHY
uint16_t get_dl_sched_rnti(uint32_t tti) final { return mac.get_dl_sched_rnti(tti); }
uint16_t get_ul_sched_rnti(uint32_t tti) final { return mac.get_ul_sched_rnti(tti); }
@ -113,6 +116,19 @@ public:
void run_tti(uint32_t tti, uint32_t tti_jump) final;
#ifdef HAVE_5GNR
// MAC Interface for NR PHY
int sf_indication(const uint32_t tti) final { return SRSLTE_SUCCESS; }
void tb_decoded(const uint32_t cc_idx, mac_nr_grant_dl_t& grant) final { mac_nr.tb_decoded(cc_idx, grant); }
void new_grant_ul(const uint32_t cc_idx, const mac_nr_grant_ul_t& grant) final { mac_nr.new_grant_ul(cc_idx, grant); }
void run_tti(const uint32_t tti) final
{
// ignored, timing will be handled by EUTRA
}
#endif
// Interface for GW
void write_sdu(uint32_t lcid, srslte::unique_byte_buffer_t sdu) final;