please have a look into the provided Build Environment, which contains (in most cases) an example called DeviceIntegration. It demonstrates how to set data on the underlying system (e.g. switch on/off a LED) and how to push data from the underlying system to the GUI application (e.g. when the user presses a hard button).
The adaptation is implemented within the file DeviceDriver.c and the declaration can be found in the file DeviceDriver.h. This file is included by using inline code.
Please note, that this is only necessary for the generated code. The include is placed into the generated C code. The search path depends on your toolchain and has to be set usually by project settings inside the IDE.
Does this answer your question?
the initialization of Embedded Wizard GUI application should be done in ewmain.c and not in a device driver file.
See the article main loop for more information - in particular the section Life Cycle of the GUI Application.
Build Env : Visual Studio
I want to drive ew_main.c file but probably i could not link
In visual studio i have win32 folder, RTE folder and GFX folder
Thanks for clarification.
The structure of a Win32 applications is different compared to all the Build Environments we provide for MCUs and MPUs.
In case of Win32 you can adapt the file ewapp.c (which can be compared to the ewmain.c of MCUs and MPUs): Please take a look in the folder Platforms\Tara\Win32\RTE just below the installation directory of Embedded Wizard. There you will find the files main.c, ewapp.c and ewapp.h. You can copy these files to your own project and adapt it as necessary. They implement the glue code between Windows and Embedded Wizard application.
There you can add your code to initialize your device driver and to process the data - as mentioned in the section Implement a Device Driver. For Win32 we do not have a prepared DeviceDriver.c - you can add the functions as described in this section.
I hope it is more clear now.
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!