finish remove global vars for UE PBCH

This commit is contained in:
Laurent THOMAS
2022-02-18 09:41:18 +01:00
parent 53001d0d10
commit 18a421578f
6 changed files with 141 additions and 127 deletions
+5 -4
View File
@@ -32,6 +32,7 @@
#ifndef __PHY_SCOPE_INTERFACE_H__
#define __PHY_SCOPE_INTERFACE_H__
#include <openair1/PHY/defs_gNB.h>
#include <openair1/PHY/defs_nr_UE.h>
typedef struct {
int *argc;
@@ -52,13 +53,13 @@ typedef struct scopeData_s {
char **argv;
RU_t *ru;
PHY_VARS_gNB *gNB;
void * liveData;
void (*slotFunc)(int32_t* data, int slot, void * scopeData);
void (*copyData)(enum UEdataType, void * data, int elementSz, int colSz, int lineSz);
void *liveData;
void (*slotFunc)(int32_t *data, int slot, void *scopeData);
void (*copyData)(PHY_VARS_NR_UE *,enum UEdataType, void *data, int elementSz, int colSz, int lineSz);
} scopeData_t;
int load_softscope(char *exectype, void *initarg);
int end_forms(void) ;
#define scopeCopy(ue, type, ...) if(ue->scopeData) ((scopeData_t*)ue->scopeData)->copyData(type, ##__VA_ARGS__);
#define UEscopeCopy(ue, type, ...) if(ue->scopeData) ((scopeData_t*)ue->scopeData)->copyData(ue, type, ##__VA_ARGS__);
#endif