Nuvoton
/
NuMaker-mbed-emWin-example
NuMaker emWin HMI
Embed:
(wiki syntax)
Show/hide line numbers
GUI_GCache_Private.h
00001 /********************************************************************* 00002 * SEGGER Software GmbH * 00003 * Solutions for real time microcontroller applications * 00004 ********************************************************************** 00005 * * 00006 * (c) 1996 - 2018 SEGGER Microcontroller GmbH * 00007 * * 00008 * Internet: www.segger.com Support: support@segger.com * 00009 * * 00010 ********************************************************************** 00011 00012 ** emWin V5.48 - Graphical user interface for embedded applications ** 00013 All Intellectual Property rights in the Software belongs to SEGGER. 00014 emWin is protected by international copyright laws. Knowledge of the 00015 source code may not be used to write a similar product. This file may 00016 only be used in accordance with the following terms: 00017 00018 The software has been licensed by SEGGER Software GmbH to Nuvoton Technology Corporationat the address: No. 4, Creation Rd. III, Hsinchu Science Park, Taiwan 00019 for the purposes of creating libraries for its 00020 Arm Cortex-M and Arm9 32-bit microcontrollers, commercialized and distributed by Nuvoton Technology Corporation 00021 under the terms and conditions of an End User 00022 License Agreement supplied with the libraries. 00023 Full source code is available at: www.segger.com 00024 00025 We appreciate your understanding and fairness. 00026 ---------------------------------------------------------------------- 00027 Licensing information 00028 Licensor: SEGGER Software GmbH 00029 Licensed to: Nuvoton Technology Corporation, No. 4, Creation Rd. III, Hsinchu Science Park, 30077 Hsinchu City, Taiwan 00030 Licensed SEGGER software: emWin 00031 License number: GUI-00735 00032 License model: emWin License Agreement, signed February 27, 2018 00033 Licensed platform: Cortex-M and ARM9 32-bit series microcontroller designed and manufactured by or for Nuvoton Technology Corporation 00034 ---------------------------------------------------------------------- 00035 Support and Update Agreement (SUA) 00036 SUA period: 2018-03-26 - 2019-03-27 00037 Contact to extend SUA: sales@segger.com 00038 ---------------------------------------------------------------------- 00039 File : GUI_GCache_Private.h 00040 Purpose : Private header 00041 ---------------------------END-OF-HEADER------------------------------ 00042 */ 00043 00044 #ifndef GUI_GCACHE_PRIVATE_H 00045 #define GUI_GCACHE_PRIVATE_H 00046 00047 #include "GUI_Private.h" 00048 00049 /********************************************************************* 00050 * 00051 * Defines 00052 * 00053 ********************************************************************** 00054 */ 00055 #define DRIVER_CONTEXT DRIVER_CONTEXT_GCACHE 00056 00057 /********************************************************************* 00058 * 00059 * Types 00060 * 00061 ********************************************************************** 00062 */ 00063 /********************************************************************* 00064 * 00065 * DRIVER_CONTEXT 00066 */ 00067 typedef struct { 00068 int x0, y0, x1, y1, IsDirty; 00069 int xSize, ySize; 00070 int CacheLocked; 00071 int MemSize; 00072 int BitsPerPixel; 00073 int BytesPerLine; 00074 // 00075 // Line buffer for reading operation 00076 // 00077 LCD_PIXELINDEX * pLineBuffer; 00078 // 00079 // Palette for drawing 'cache bitmap' 00080 // 00081 LCD_PIXELINDEX * pPalette; 00082 // 00083 // Cache management 00084 // 00085 void (* pfReadRect) (GUI_DEVICE * pDevice, int _x0, int _y0, int _x1, int _y1, LCD_PIXELINDEX * pBuffer); 00086 void (* pfSendCacheRect)(GUI_DEVICE * pDevice); 00087 U32 * pVMEM; 00088 // 00089 // Drawing functions 00090 // 00091 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); 00092 void (* pfDrawHLine )(GUI_DEVICE * pDevice, int _x0, int _y0, int _x1); 00093 void (* pfDrawVLine )(GUI_DEVICE * pDevice, int _x , int _y0, int _y1); 00094 void (* pfFillRect )(GUI_DEVICE * pDevice, int _x0, int _y0, int _x1, int _y1); 00095 LCD_PIXELINDEX (* pfGetPixelIndex)(GUI_DEVICE * pDevice, int _x, int _y); 00096 void (* pfSetPixelIndex)(GUI_DEVICE * pDevice, int _x, int _y, LCD_PIXELINDEX ColorIndex); 00097 void (* pfXorPixel )(GUI_DEVICE * pDevice, int _x, int _y); 00098 // 00099 // GetData function 00100 // 00101 void *(* pfGetDevData )(GUI_DEVICE * pDevice, int Index); 00102 } DRIVER_CONTEXT; 00103 00104 /********************************************************************* 00105 * 00106 * Interface 00107 * 00108 ********************************************************************** 00109 */ 00110 GUI_DEVICE * GUI_GCACHE__CreateEx(int LayerIndex, const LCD_API_COLOR_CONV * pColorConvAPI, int BitsPerPixel); 00111 00112 #endif 00113 00114 /*************************** End of file ****************************/
Generated on Mon Mar 4 2024 07:48:13 by 1.7.2