Assigning external data structure variables in TouchGFX
Hello community
I face the following problem
I have a global data structure which contains several member variables, I use this data structure to handle all my global variables needs across my project.
Such datatype is delcared in "globals.h", and a variable using this datatype is declared in "globals.c" and exported as extern always in globals.h.
I want to assign some of these variables when TouchGFX interactions happen (like moving a slider or pressing a button) in my TouchGFX "view"
The problem is, if I include globals.h in my "view.cpp", then the TouchGFX simulator won't build as it cannot find "globals.h".
for sake of simplicity
globals.h
typedef _myType{
int sliderValue;
}myType;
extern myType myGlobalVar;globals.c
#include "globals.h"
myType myGlobalVar;How should I access my global variables then without breaking the interface simulator?
Matteo
