STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
GUIDRV_DCache_Private.h
Go to the documentation of this file.
1 /*********************************************************************
2 * SEGGER Microcontroller GmbH & Co. KG *
3 * Solutions for real time microcontroller applications *
4 **********************************************************************
5 * *
6 * (c) 1996 - 2015 SEGGER Microcontroller GmbH & Co. KG *
7 * *
8 * Internet: www.segger.com Support: support@segger.com *
9 * *
10 **********************************************************************
11 
12 ** emWin V5.28 - Graphical user interface for embedded applications **
13 All Intellectual Property rights in the Software belongs to SEGGER.
14 emWin is protected by international copyright laws. Knowledge of the
15 source code may not be used to write a similar product. This file may
16 only be used in accordance with the following terms:
17 
18 The software has been licensed to STMicroelectronics International
19 N.V. a Dutch company with a Swiss branch and its headquarters in Plan-
20 les-Ouates, Geneva, 39 Chemin du Champ des Filles, Switzerland for the
21 purposes of creating libraries for ARM Cortex-M-based 32-bit microcon_
22 troller products commercialized by Licensee only, sublicensed and dis_
23 tributed under the terms and conditions of the End User License Agree_
24 ment supplied by STMicroelectronics International N.V.
25 Full source code is available at: www.segger.com
26 
27 We appreciate your understanding and fairness.
28 ----------------------------------------------------------------------
29 File : GUIDRV_DCache_Private.h
30 Purpose : Private declarations for GUIDRV_DCache driver
31 ---------------------------END-OF-HEADER------------------------------
32 */
33 
34 #ifndef GUIDRV_DCACHE_PRIVATE_H
35 #define GUIDRV_DCACHE_PRIVATE_H
36 
37 #include "GUIDRV_DCache.h"
38 
39 #if defined(__cplusplus)
40 extern "C" { /* Make sure we have C-declarations in C++ programs */
41 #endif
42 
43 /*********************************************************************
44 *
45 * Types
46 *
47 **********************************************************************
48 */
49 /*********************************************************************
50 *
51 * DRIVER_CONTEXT
52 */
53 typedef struct {
54  //
55  // Data
56  //
57  int xSize, ySize; // Display size
58  int vxSize, vySize; // Virtual display size
61  int NumColors;
66  //
67  // Cache mamagement
68  //
69  void (* pfFlush )(GUI_DEVICE * pDevice);
70  void (* pfSendCacheRect)(GUI_DEVICE * pDevice, int x0, int y0, int x1, int y1);
71  //
72  // Setting the rectangle to be filled up within the real driver
73  //
74  void (* pfSetRect )(GUI_DEVICE * pDevice, int x0, int y0, int x1, int y1, int OnOff);
75  //
76  // Mode dependent drawing functions
77  //
78  void (* pfDrawBitmap )(GUI_DEVICE * pDevice, int x0, int y0, int xsize, int ysize, int _BitsPerPixel, int BytesPerLine, const U8 * pData, int Diff, const LCD_PIXELINDEX * pTrans);
79  void (* pfFillRect )(GUI_DEVICE * pDevice, int x0, int y0, int x1, int y1);
80  unsigned (* pfGetPixelIndex)(GUI_DEVICE * pDevice, int x, int y);
81  void (* pfSetPixelIndex)(GUI_DEVICE * pDevice, int x, int y, int ColorIndex);
82  //
83  // Request information
84  //
85  I32 (* pfGetDevProp )(GUI_DEVICE * pDevice, int Index);
86  //
87  // Initialization
88  //
89  void (* pfInit) (GUI_DEVICE * pDevice);
90  //
91  // Conversion array from cache to real display driver
92  //
95  //
96  // Cache
97  //
98  U8 * pVRAM;
103  //
104  // The driver which is used for the actual drawing operations
105  //
108 
109 /*********************************************************************
110 *
111 * Private interface
112 *
113 **********************************************************************
114 */
115 void GUIDRV_DCache__AddDirtyRect (DRIVER_CONTEXT * pContext, int x0, int y0, int x1, int y1);
117 void GUIDRV_DCache__InitOnce (GUI_DEVICE * pDevice);
118 
119 #if defined(__cplusplus)
120 }
121 #endif
122 
123 #endif /* GUIDRV_DCACHE_PRIVATE_H */
124 
125 /*************************** End of file ****************************/
126 
#define U32
Definition: Global.h:50
Definition: LCD.h:102
#define LCD_PIXELINDEX
void GUIDRV_DCache__AddDirtyRect(DRIVER_CONTEXT *pContext, int x0, int y0, int x1, int y1)
LCD_PIXELINDEX IndexMask
void GUIDRV_DCache__ClearDirtyRect(DRIVER_CONTEXT *pContext)
void GUIDRV_DCache__InitOnce(GUI_DEVICE *pDevice)
LCD_PIXELINDEX * pConvert
struct DRIVER_CONTEXT DRIVER_CONTEXT
const GUI_DEVICE_API * pMemdev_API
#define I32
Definition: Global.h:59
LCD_PIXELINDEX * pIndex
#define U8
Definition: Global.h:44