mirror of https://github.com/pvnis/srsRAN_4G.git
sched,nr: nr_phy_test now uses the whole mac class rather than just the scheduler
parent
05a5f4115f
commit
04e5c81edf
@ -0,0 +1,39 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* \section COPYRIGHT
|
||||||
|
*
|
||||||
|
* Copyright 2013-2021 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.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SRSRAN_GNB_MAC_INTERFACES_H
|
||||||
|
#define SRSRAN_GNB_MAC_INTERFACES_H
|
||||||
|
|
||||||
|
#include "srsenb/hdr/stack/mac/nr/sched_nr_interface.h"
|
||||||
|
|
||||||
|
namespace srsenb {
|
||||||
|
|
||||||
|
class mac_interface_rrc_nr
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
// Provides cell configuration including SIB periodicity, etc.
|
||||||
|
virtual int cell_cfg(const sched_interface::cell_cfg_t& cell,
|
||||||
|
srsran::const_span<sched_nr_interface::cell_cfg_t> nr_cells) = 0;
|
||||||
|
|
||||||
|
/// Allocates a new user/RNTI at MAC. Returns RNTI on success or SRSRAN_INVALID_RNTI otherwise.
|
||||||
|
virtual uint16_t reserve_rnti(uint32_t enb_cc_idx) = 0;
|
||||||
|
|
||||||
|
virtual int ue_cfg(uint16_t rnti, const sched_nr_interface::ue_cfg_t& ue_cfg) = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
// NR interface is identical to EUTRA interface
|
||||||
|
class mac_interface_rlc_nr : public mac_interface_rlc
|
||||||
|
{};
|
||||||
|
|
||||||
|
} // namespace srsenb
|
||||||
|
|
||||||
|
#endif // SRSRAN_GNB_MAC_INTERFACES_H
|
@ -0,0 +1,28 @@
|
|||||||
|
/**
|
||||||
|
*
|
||||||
|
* \section COPYRIGHT
|
||||||
|
*
|
||||||
|
* Copyright 2013-2021 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.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SRSRAN_RLC_TEST_DUMMY_H
|
||||||
|
#define SRSRAN_RLC_TEST_DUMMY_H
|
||||||
|
|
||||||
|
#include "srsran/interfaces/enb_rlc_interfaces.h"
|
||||||
|
|
||||||
|
namespace srsenb {
|
||||||
|
|
||||||
|
class rlc_dummy : public rlc_interface_mac
|
||||||
|
{
|
||||||
|
int read_pdu(uint16_t rnti, uint32_t lcid, uint8_t* payload, uint32_t nof_bytes) { return SRSRAN_SUCCESS; }
|
||||||
|
void write_pdu(uint16_t rnti, uint32_t lcid, uint8_t* payload, uint32_t nof_bytes) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace srsenb
|
||||||
|
|
||||||
|
#endif // SRSRAN_RLC_TEST_DUMMY_H
|
Loading…
Reference in New Issue