diff --git a/openair1/PHY/defs_common.h b/openair1/PHY/defs_common.h index e27622c05978b6cf9388296b6d6fe7d1d919b52d..4dab209dd5579f534a42048112c8bf88d518a795 100644 --- a/openair1/PHY/defs_common.h +++ b/openair1/PHY/defs_common.h @@ -862,7 +862,22 @@ typedef enum { RESYNCH=4 } UE_MODE_t; +/// Threading Parameter +typedef enum { + PARALLEL_SINGLE_THREAD =0, + PARALLEL_RU_L1_SPLIT =1, + PARALLEL_RU_L1_TRX_SPLIT =2 +}PARALLEL_CONF_t; +typedef enum { + WORKER_DISABLE =0, + WORKER_ENABLE =1 +}WORKER_CONF_t; + +typedef struct THREAD_STRUCT_s { + PARALLEL_CONF_t parallel_conf; + WORKER_CONF_t worker_conf; +} THREAD_STRUCT; typedef enum {SF_DL, SF_UL, SF_S} lte_subframe_t; diff --git a/openair1/PHY/defs_eNB.h b/openair1/PHY/defs_eNB.h index 5425932905b02bfce5428d5661466deb767ef4da..f23485cad84e732ec2459da1ec7c005052b6b74e 100644 --- a/openair1/PHY/defs_eNB.h +++ b/openair1/PHY/defs_eNB.h @@ -887,22 +887,6 @@ typedef struct { int prach_I0; } PHY_MEASUREMENTS_eNB; -typedef enum { - PARALLEL_SINGLE_THREAD =0, - PARALLEL_RU_L1_SPLIT =1, - PARALLEL_RU_L1_TRX_SPLIT =2 -}PARALLEL_CONF_t; - -typedef enum { - WORKER_DISABLE =0, - WORKER_ENABLE =1 -}WORKER_CONF_t; - -typedef struct THREAD_STRUCT_s { - PARALLEL_CONF_t parallel_conf; - WORKER_CONF_t worker_conf; -} THREAD_STRUCT; - /// Top-level PHY Data Structure for eNB typedef struct PHY_VARS_eNB_s { diff --git a/targets/RT/USER/lte-uesoftmodem.c b/targets/RT/USER/lte-uesoftmodem.c index 2efcb496ac1ba8d399971bea9ff8486715885284..d87e3e69b193404156a93c467809a20bb9121a83 100644 --- a/targets/RT/USER/lte-uesoftmodem.c +++ b/targets/RT/USER/lte-uesoftmodem.c @@ -220,8 +220,24 @@ int transmission_mode=1; int emulate_rf = 0; int numerology = 0; -int codingw = 0; -int fepw = 0; + +static THREAD_STRUCT thread_struct; +void set_parallel_conf(int parallel_conf) +{ + thread_struct.parallel_conf = (PARALLEL_CONF_t)parallel_conf; +} +void set_parallel_worker_conf(int worker_conf) +{ + thread_struct.worker_conf = (WORKER_CONF_t)worker_conf; +} +PARALLEL_CONF_t get_thread_paralle_conf(void) +{ + return thread_struct.parallel_conf; +} +WORKER_CONF_t get_thread_worker_conf(void) +{ + return thread_struct.worker_conf; +} /* struct for ethernet specific parameters given in eNB conf file */ eth_params_t *eth_params;