From ece26036e665cc00dad561b3ed25750e5490b021 Mon Sep 17 00:00:00 2001 From: Thomas Schlichter Date: Mon, 17 Jun 2019 13:34:50 +0200 Subject: [PATCH] Consolidate header files for nr_phy_scope --- executables/nr-softmodem.h | 4 ---- openair1/PHY/TOOLS/nr_phy_scope.c | 1 + openair1/PHY/TOOLS/nr_phy_scope.h | 11 ++++++++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/executables/nr-softmodem.h b/executables/nr-softmodem.h index 8856c92059..488b38281c 100644 --- a/executables/nr-softmodem.h +++ b/executables/nr-softmodem.h @@ -48,10 +48,6 @@ } -typedef struct { - int *argc; - char **argv; -} scopeParms_t; extern int T_port; extern int T_nowait; diff --git a/openair1/PHY/TOOLS/nr_phy_scope.c b/openair1/PHY/TOOLS/nr_phy_scope.c index 3a962e4931..af895ba556 100644 --- a/openair1/PHY/TOOLS/nr_phy_scope.c +++ b/openair1/PHY/TOOLS/nr_phy_scope.c @@ -23,6 +23,7 @@ #include #include "nr_phy_scope.h" +#include "executables/nr-softmodem-common.h" #define TPUT_WINDOW_LENGTH 100 int otg_enabled; diff --git a/openair1/PHY/TOOLS/nr_phy_scope.h b/openair1/PHY/TOOLS/nr_phy_scope.h index 37331b511d..770006d234 100644 --- a/openair1/PHY/TOOLS/nr_phy_scope.h +++ b/openair1/PHY/TOOLS/nr_phy_scope.h @@ -29,7 +29,6 @@ #include #include "common/ran_context.h" #include -#include #include #include "PHY/defs_gNB.h" //#include "PHY/defs_nrUE.h" @@ -67,6 +66,11 @@ typedef struct { FL_OBJECT * button_0; } FD_phy_scope_nrue; +typedef struct { + int *argc; + char **argv; +} scopeParms_t; + extern unsigned char scope_enb_num_ue; FD_phy_scope_gnb * create_phy_scope_gnb( void ); FD_phy_scope_nrue * create_phy_scope_nrue( void ); @@ -82,5 +86,10 @@ void phy_scope_nrUE(FD_phy_scope_nrue *form, int eNB_id, int UE_id, uint8_t subframe); + + +void startScope(scopeParms_t * p); + + extern RAN_CONTEXT_t RC; #endif