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.
44 lines
884 B
C
44 lines
884 B
C
4 years ago
|
/**
|
||
5 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
5 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
5 years ago
|
*
|
||
4 years ago
|
* 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.
|
||
5 years ago
|
*
|
||
|
*/
|
||
|
|
||
5 years ago
|
/**
|
||
|
* @file radio_base.h
|
||
|
* @brief Base class for all eNB/UE radios.
|
||
|
*/
|
||
5 years ago
|
|
||
4 years ago
|
#ifndef SRSRAN_RADIO_BASE_H
|
||
|
#define SRSRAN_RADIO_BASE_H
|
||
5 years ago
|
|
||
4 years ago
|
#include "srsran/common/interfaces_common.h"
|
||
|
#include "srsran/radio/radio_metrics.h"
|
||
5 years ago
|
|
||
4 years ago
|
namespace srsran {
|
||
5 years ago
|
|
||
|
class phy_interface_radio;
|
||
|
|
||
|
class radio_base
|
||
|
{
|
||
|
public:
|
||
5 years ago
|
virtual ~radio_base() = default;
|
||
5 years ago
|
|
||
|
virtual std::string get_type() = 0;
|
||
|
|
||
|
virtual int init(const rf_args_t& args_, phy_interface_radio* phy_) = 0;
|
||
|
virtual void stop() = 0;
|
||
|
|
||
|
virtual bool get_metrics(rf_metrics_t* metrics) = 0;
|
||
|
};
|
||
|
|
||
4 years ago
|
} // namespace srsran
|
||
5 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_RADIO_BASE_H
|