finish remove global vars for UE PBCH
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user