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.
89 lines
1.9 KiB
C
89 lines
1.9 KiB
C
4 years ago
|
/**
|
||
8 years ago
|
*
|
||
4 years ago
|
* \section COPYRIGHT
|
||
8 years ago
|
*
|
||
4 years ago
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
8 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.
|
||
8 years ago
|
*
|
||
|
*/
|
||
8 years ago
|
|
||
4 years ago
|
#ifndef SRSRAN_INTERFACES_COMMON_H
|
||
|
#define SRSRAN_INTERFACES_COMMON_H
|
||
8 years ago
|
|
||
4 years ago
|
#include "srsran/common/byte_buffer.h"
|
||
|
#include "srsran/common/security.h"
|
||
|
#include "srsran/phy/common/phy_common.h"
|
||
7 years ago
|
#include <string>
|
||
8 years ago
|
|
||
4 years ago
|
namespace srsran {
|
||
8 years ago
|
|
||
6 years ago
|
typedef struct {
|
||
5 years ago
|
std::string phy_level = "none";
|
||
|
std::string phy_lib_level = "none";
|
||
|
int phy_hex_limit = -1;
|
||
6 years ago
|
} phy_log_args_t;
|
||
|
|
||
5 years ago
|
typedef struct {
|
||
|
float min;
|
||
|
float max;
|
||
|
} rf_args_band_t;
|
||
|
|
||
6 years ago
|
// RF/radio args
|
||
|
typedef struct {
|
||
|
std::string type;
|
||
|
std::string log_level;
|
||
4 years ago
|
double srate_hz;
|
||
6 years ago
|
float dl_freq;
|
||
|
float ul_freq;
|
||
|
float freq_offset;
|
||
|
float rx_gain;
|
||
4 years ago
|
float rx_gain_ch[SRSRAN_MAX_CARRIERS];
|
||
6 years ago
|
float tx_gain;
|
||
4 years ago
|
float tx_gain_ch[SRSRAN_MAX_CARRIERS];
|
||
6 years ago
|
float tx_max_power;
|
||
|
float tx_gain_offset;
|
||
|
float rx_gain_offset;
|
||
5 years ago
|
uint32_t nof_carriers; // Number of RF channels
|
||
|
uint32_t nof_antennas; // Number of antennas per RF channel
|
||
6 years ago
|
std::string device_name;
|
||
5 years ago
|
std::string device_args;
|
||
6 years ago
|
std::string time_adv_nsamples;
|
||
|
std::string continuous_tx;
|
||
5 years ago
|
|
||
4 years ago
|
std::array<rf_args_band_t, SRSRAN_MAX_CARRIERS> ch_rx_bands;
|
||
|
std::array<rf_args_band_t, SRSRAN_MAX_CARRIERS> ch_tx_bands;
|
||
5 years ago
|
|
||
6 years ago
|
} rf_args_t;
|
||
|
|
||
5 years ago
|
struct vnf_args_t {
|
||
|
std::string type;
|
||
|
std::string bind_addr;
|
||
|
uint16_t bind_port;
|
||
|
std::string log_level;
|
||
|
int log_hex_limit;
|
||
|
};
|
||
|
|
||
4 years ago
|
class srsran_gw_config_t
|
||
7 years ago
|
{
|
||
|
public:
|
||
4 years ago
|
explicit srsran_gw_config_t(uint32_t lcid_ = 0) : lcid(lcid_) {}
|
||
7 years ago
|
|
||
|
uint32_t lcid;
|
||
|
};
|
||
|
|
||
8 years ago
|
class read_pdu_interface
|
||
|
{
|
||
|
public:
|
||
5 years ago
|
virtual int read_pdu(uint32_t lcid, uint8_t* payload, uint32_t requested_bytes) = 0;
|
||
8 years ago
|
};
|
||
|
|
||
5 years ago
|
class stack_interface_phy_nr
|
||
|
{};
|
||
|
|
||
4 years ago
|
} // namespace srsran
|
||
8 years ago
|
|
||
4 years ago
|
#endif // SRSRAN_INTERFACES_COMMON_H
|