- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
71 lines
1.8 KiB
C
71 lines
1.8 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
#include "phy_scope_interface.h"
|
|
|
|
#ifndef phy_scope_h_
|
|
#define phy_scope_h_
|
|
|
|
#define TPUT_WINDOW_LENGTH 100
|
|
#define ScaleZone 4
|
|
#define localBuff(NaMe, SiZe) \
|
|
float NaMe[SiZe]; \
|
|
memset(NaMe, 0, sizeof(NaMe));
|
|
|
|
/* scope chart window id's, used to select which frontend chart to use for displaying data */
|
|
#define SCOPEMSG_DATAID_IQ 1
|
|
#define SCOPEMSG_DATAID_LLR 2
|
|
#define SCOPEMSG_DATAID_WF 3
|
|
#define SCOPEMSG_DATAID_TRESP 4
|
|
|
|
typedef c16_t scopeSample_t;
|
|
#define SquaredNorm(VaR) ((VaR).r * (VaR).r + (VaR).i * (VaR).i)
|
|
|
|
typedef struct OAIgraph {
|
|
FL_OBJECT *graph;
|
|
FL_OBJECT *text;
|
|
float maxX;
|
|
float maxY;
|
|
float minX;
|
|
float minY;
|
|
int x;
|
|
int y;
|
|
int w;
|
|
int h;
|
|
int waterFallh;
|
|
double *waterFallAvg;
|
|
bool initDone;
|
|
int iteration;
|
|
void (*gNBfunct)(struct OAIgraph *graph, scopeData_t *p, int UE_id);
|
|
void (*nrUEfunct)(scopeGraphData_t **data, struct OAIgraph *graph, PHY_VARS_NR_UE *phy_vars_ue, int eNB_id, int UE_id);
|
|
bool enabled;
|
|
char chartid;
|
|
char datasetid;
|
|
} OAIgraph_t;
|
|
|
|
/* Forms and Objects */
|
|
typedef struct {
|
|
FL_FORM *phy_scope;
|
|
OAIgraph_t graph[20];
|
|
FL_OBJECT *button_0;
|
|
} OAI_phy_scope_t;
|
|
|
|
typedef struct {
|
|
FL_FORM *stats_form;
|
|
void *vdata;
|
|
char *cdata;
|
|
long ldata;
|
|
FL_OBJECT *stats_text;
|
|
FL_OBJECT *stats_button;
|
|
} FD_stats_form;
|
|
#ifdef WEBSRVSCOPE
|
|
extern OAI_phy_scope_t *create_phy_scope_gnb(void);
|
|
extern OAI_phy_scope_t *create_phy_scope_nrue(int ueid);
|
|
extern void phy_scope_gNB(OAI_phy_scope_t *form, scopeData_t *p, int nb_UE);
|
|
extern void phy_scope_nrUE(scopeGraphData_t **UEliveData, OAI_phy_scope_t *form, PHY_VARS_NR_UE *phy_vars_ue, int eNB_id, int UE_id);
|
|
extern void nrUEinitScope(PHY_VARS_NR_UE *ue);
|
|
extern void gNBinitScope(scopeParms_t *p);
|
|
typedef int16_t chart_data_t;
|
|
#endif
|
|
#endif
|