STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
GUI_SIM_Win32.h
Go to the documentation of this file.
1 /*********************************************************************
2 * Portions COPYRIGHT 2015 STMicroelectronics *
3 * Portions SEGGER Microcontroller GmbH & Co. KG *
4 * Solutions for real time microcontroller applications *
5 **********************************************************************
6 * *
7 * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG *
8 * *
9 * Internet: www.segger.com Support: support@segger.com *
10 * *
11 **********************************************************************
12 
13 ** emWin V5.28 - Graphical user interface for embedded applications **
14 All Intellectual Property rights in the Software belongs to SEGGER.
15 emWin is protected by international copyright laws. Knowledge of the
16 source code may not be used to write a similar product. This file may
17 only be used in accordance with the following terms:
18 
19 The software has been licensed to STMicroelectronics International
20 N.V. a Dutch company with a Swiss branch and its headquarters in Plan-
21 les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the
22 purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_
23 troller products commercialized by Licensee only, sublicensed and dis_
24 tributed under the terms and conditions of the End User License Agree_
25 ment supplied by STMicroelectronics International N.V.
26 Full source code is available at: www.segger.com
27 
28 We appreciate your understanding and fairness.
29 ----------------------------------------------------------------------
30 File : GUI_SIM_Win32.h
31 Purpose : Declares public functions of Simulation
32 ----------------------------------------------------------------------
33 */
34 
54 #ifndef SIM_GUI_H
55 #define SIM_GUI_H
56 
57 #if defined(__cplusplus)
58 extern "C" { /* Make sure we have C-declarations in C++ programs */
59 #endif
60 
61 /********************************************************************
62 *
63 * Data
64 *
65 *********************************************************************
66 */
67 extern HINSTANCE SIM_GUI_hInst;
68 extern HWND SIM_GUI_hWndMain;
69 
70 /********************************************************************
71 *
72 * Types
73 *
74 *********************************************************************
75 */
76 typedef struct {
77  HWND hWndMain;
78  HWND ahWndLCD[16];
79  HWND ahWndColor[16];
80 } SIM_GUI_INFO;
81 
82 typedef int SIM_GUI_tfHook (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, int * pResult);
83 typedef void SIM_GUI_tfDelayHandler (int ms);
84 typedef void SIM_GUI_tfExecIdleHandler(void);
85 
86 /********************************************************************
87 *
88 * Interface
89 *
90 *********************************************************************
91 */
92 void SIM_GUI_ShowDevice (int OnOff);
93 void SIM_GUI_SetCallback (int (* pfCallback)(SIM_GUI_INFO * pInfo));
94 void SIM_GUI_HandleKeyEvents (unsigned Msg, WPARAM wParam);
95 HWND SIM_GUI_CreateCompositeWindow(HWND hParent, int x, int y, int xSize, int ySize, int DisplayIndex);
96 HWND SIM_GUI_CreateLCDWindow (HWND hParent, int x, int y, int xSize, int ySize, int LayerIndex);
97 HWND SIM_GUI_CreateLOGWindow (HWND hParent, int x, int y, int xSize, int ySize);
98 HWND SIM_GUI_CreateLCDInfoWindow (HWND hParent, int x, int y, int xSize, int ySize, int LayerIndex);
99 void SIM_GUI_Enable (void);
100 int SIM_GUI_Init (HINSTANCE hInst, HWND hWndMain, char * pCmdLine, const char * sAppName);
101 void SIM_GUI_CopyToClipboard (int LayerIndex);
105 void SIM_GUI_GetCompositeSize (int * pxSize, int * pySize);
106 int SIM_GUI_GetTransColor (void);
107 void SIM_GUI_GetLCDPos (int * px, int * py);
108 void SIM_GUI_Exit (void);
109 void SIM_GUI_SetMessageBoxOnError (int OnOff);
110 int SIM_GUI_App (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
111 void SIM_GUI_SetPixel (int x, int y, unsigned Color);
112 
113 void SIM_GUI_LOG_Time (void);
114 void __cdecl SIM_GUI_LOG_Add (const char *format ,... );
115 void SIM_GUI_LOG_AddRed(void);
116 void SIM_GUI_LOG_Clear (void);
117 
118 void LCDSIM_Paint (HWND hWnd);
119 void LCDSIM_PaintComposite(HWND hWnd);
120 void LCDSIM_SetTransMode (int LayerIndex, int TransMode);
121 void LCDSIM_SetChroma (int LayerIndex, unsigned long ChromaMin, unsigned long ChromaMax);
122 
123 #if defined(__cplusplus)
124 }
125 #endif
126 
127 #endif /* SIM_GUI_H */
void SIM_GUI_HandleKeyEvents(unsigned Msg, WPARAM wParam)
void SIM_GUI_Enable(void)
void SIM_GUI_GetLCDPos(int *px, int *py)
int SIM_GUI_tfHook(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, int *pResult)
Definition: GUI_SIM_Win32.h:82
HWND SIM_GUI_CreateCompositeWindow(HWND hParent, int x, int y, int xSize, int ySize, int DisplayIndex)
void SIM_GUI_SetDelayHandler(SIM_GUI_tfDelayHandler *pfHandler)
void SIM_GUI_CopyToClipboard(int LayerIndex)
void __cdecl SIM_GUI_LOG_Add(const char *format,...)
HWND SIM_GUI_CreateLCDWindow(HWND hParent, int x, int y, int xSize, int ySize, int LayerIndex)
void SIM_GUI_LOG_Time(void)
void SIM_GUI_ShowDevice(int OnOff)
void SIM_GUI_GetCompositeSize(int *pxSize, int *pySize)
void SIM_GUI_tfExecIdleHandler(void)
Definition: GUI_SIM_Win32.h:84
HWND SIM_GUI_CreateLCDInfoWindow(HWND hParent, int x, int y, int xSize, int ySize, int LayerIndex)
void SIM_GUI_tfDelayHandler(int ms)
Definition: GUI_SIM_Win32.h:83
int SIM_GUI_App(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
void SIM_GUI_Exit(void)
void LCDSIM_Paint(HWND hWnd)
void SIM_GUI_LOG_AddRed(void)
void SIM_GUI_SetMessageBoxOnError(int OnOff)
int SIM_GUI_Init(HINSTANCE hInst, HWND hWndMain, char *pCmdLine, const char *sAppName)
HWND SIM_GUI_hWndMain
void SIM_GUI_SetExecIdleHandler(SIM_GUI_tfExecIdleHandler *pfHandler)
HINSTANCE SIM_GUI_hInst
int SIM_GUI_GetTransColor(void)
void SIM_GUI_SetPixel(int x, int y, unsigned Color)
void LCDSIM_PaintComposite(HWND hWnd)
void LCDSIM_SetChroma(int LayerIndex, unsigned long ChromaMin, unsigned long ChromaMax)
unsigned int UINT
Definition: integer.h:25
void SIM_GUI_SetLCDWindowHook(SIM_GUI_tfHook *pfHook)
HWND SIM_GUI_CreateLOGWindow(HWND hParent, int x, int y, int xSize, int ySize)
void SIM_GUI_LOG_Clear(void)
void LCDSIM_SetTransMode(int LayerIndex, int TransMode)
void SIM_GUI_SetCallback(int(*pfCallback)(SIM_GUI_INFO *pInfo))