small update
This commit is contained in:
+12
-1
@@ -53,6 +53,11 @@
|
||||
# define msg mexPrintf
|
||||
#else
|
||||
# ifdef OPENAIR2
|
||||
# if ENABLE_RAL
|
||||
# include "collection/hashtable/hashtable.h"
|
||||
# include "COMMON/ral_messages_types.h"
|
||||
# include "UTIL/queue.h"
|
||||
# endif
|
||||
# include "log.h"
|
||||
# define msg(aRGS...) LOG_D(PHY, ##aRGS)
|
||||
# else
|
||||
@@ -127,6 +132,8 @@ static inline void* malloc16_clear( size_t size )
|
||||
#include "PHY/TOOLS/defs.h"
|
||||
#include "platform_types.h"
|
||||
|
||||
#ifdef OPENAIR_LTE
|
||||
|
||||
#include "PHY/LTE_TRANSPORT/defs.h"
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -138,6 +145,9 @@ static inline void* malloc16_clear( size_t size )
|
||||
|
||||
#define NB_BANDS_MAX 8
|
||||
|
||||
#ifdef OCP_FRAMEWORK
|
||||
#include <enums.h>
|
||||
#else
|
||||
typedef enum {normal_txrx=0,rx_calib_ue=1,rx_calib_ue_med=2,rx_calib_ue_byp=3,debug_prach=4,no_L2_connect=5,calib_prach_tx=6,rx_dump_frame=7,loop_through_memory=8} runmode_t;
|
||||
|
||||
enum transmission_access_mode {
|
||||
@@ -161,6 +171,7 @@ typedef enum {
|
||||
synch_to_ext_device=0, // synch to RF or Ethernet device
|
||||
synch_to_other // synch to another source (timer, other CC_id)
|
||||
} eNB_timing_t;
|
||||
#endif
|
||||
|
||||
typedef struct UE_SCAN_INFO_s {
|
||||
/// 10 best amplitudes (linear) for each pss signals
|
||||
@@ -837,5 +848,5 @@ typedef struct {
|
||||
#include "PHY/LTE_ESTIMATION/defs.h"
|
||||
|
||||
#include "SIMULATION/ETH_TRANSPORT/defs.h"
|
||||
|
||||
#endif
|
||||
#endif // __PHY_DEFS__H__
|
||||
|
||||
@@ -47,11 +47,17 @@ extern int number_of_cards;
|
||||
|
||||
//extern PHY_CONFIG *PHY_config;
|
||||
//extern PHY_VARS *PHY_vars;
|
||||
|
||||
#ifndef OCP_FRAMEWORK
|
||||
extern PHY_VARS_UE ***PHY_vars_UE_g;
|
||||
extern PHY_VARS_eNB ***PHY_vars_eNB_g;
|
||||
extern PHY_VARS_RN **PHY_vars_RN_g;
|
||||
extern LTE_DL_FRAME_PARMS *lte_frame_parms_g;
|
||||
#else
|
||||
#define MAX_UE 10
|
||||
#define MAX_eNB 20
|
||||
extern PHY_VARS_UE * PHY_vars_UE_g[MAX_UE][MAX_NUM_CCs];
|
||||
extern PHY_VARS_eNB * PHY_vars_eNB_g[MAX_eNB][MAX_NUM_CCs];
|
||||
#endif
|
||||
|
||||
extern MAC_xface *mac_xface;
|
||||
|
||||
|
||||
@@ -62,7 +62,9 @@
|
||||
|
||||
#define MAX_MBSFN_AREA 8
|
||||
|
||||
|
||||
#ifdef OCP_FRAMEWORK
|
||||
#include "enums.h"
|
||||
#else
|
||||
typedef enum {TDD=1,FDD=0} lte_frame_type_t;
|
||||
|
||||
typedef enum {EXTENDED=1,NORMAL=0} lte_prefix_type_t;
|
||||
@@ -82,7 +84,7 @@ typedef enum {
|
||||
one=6,
|
||||
two=12
|
||||
} PHICH_RESOURCE_t;
|
||||
|
||||
#endif
|
||||
/// PHICH-Config from 36.331 RRC spec
|
||||
typedef struct {
|
||||
/// Parameter: PHICH-Duration, see TS 36.211 (Table 6.9.3-1).
|
||||
@@ -169,10 +171,12 @@ typedef struct {
|
||||
} UL_REFERENCE_SIGNALS_PUSCH_t;
|
||||
|
||||
/// Enumeration for parameter Hopping-mode \ref PUSCH_CONFIG_COMMON::hoppingMode.
|
||||
#ifndef OCP_FRAMEWORK
|
||||
typedef enum {
|
||||
interSubFrame=0,
|
||||
intraAndInterSubFrame=1
|
||||
} PUSCH_HOPPING_t;
|
||||
#endif
|
||||
|
||||
/// PUSCH-ConfigCommon from 36.331 RRC spec.
|
||||
typedef struct {
|
||||
@@ -337,6 +341,7 @@ typedef struct {
|
||||
uint8_t filterCoefficient;
|
||||
} UL_POWER_CONTROL_DEDICATED;
|
||||
|
||||
#ifndef OCP_FRAMEWORK
|
||||
/// Enumeration for parameter \f$\alpha\f$ \ref UL_POWER_CONTROL_CONFIG_COMMON::alpha.
|
||||
typedef enum {
|
||||
al0=0,
|
||||
@@ -348,6 +353,7 @@ typedef enum {
|
||||
al09=6,
|
||||
al1=7
|
||||
} PUSCH_alpha_t;
|
||||
#endif
|
||||
|
||||
/// \note UNUSED
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user