NuMaker emWin HMI

Committer:
csyang2
Date:
Mon Mar 04 15:47:41 2024 +0800
Revision:
10:c8165817d92a
Parent:
1:c0f972361605
Support NuMaker-IoT-M467

Who changed what in which revision?

UserRevisionLine numberNew contents of line
csyang2 1:c0f972361605 1 /*********************************************************************
csyang2 1:c0f972361605 2 * SEGGER Software GmbH *
csyang2 1:c0f972361605 3 * Solutions for real time microcontroller applications *
csyang2 1:c0f972361605 4 **********************************************************************
csyang2 1:c0f972361605 5 * *
csyang2 1:c0f972361605 6 * (c) 1996 - 2018 SEGGER Microcontroller GmbH *
csyang2 1:c0f972361605 7 * *
csyang2 1:c0f972361605 8 * Internet: www.segger.com Support: support@segger.com *
csyang2 1:c0f972361605 9 * *
csyang2 1:c0f972361605 10 **********************************************************************
csyang2 1:c0f972361605 11
csyang2 1:c0f972361605 12 ** emWin V5.48 - Graphical user interface for embedded applications **
csyang2 1:c0f972361605 13 All Intellectual Property rights in the Software belongs to SEGGER.
csyang2 1:c0f972361605 14 emWin is protected by international copyright laws. Knowledge of the
csyang2 1:c0f972361605 15 source code may not be used to write a similar product. This file may
csyang2 1:c0f972361605 16 only be used in accordance with the following terms:
csyang2 1:c0f972361605 17
csyang2 1:c0f972361605 18 The software has been licensed by SEGGER Software GmbH to Nuvoton Technology Corporationat the address: No. 4, Creation Rd. III, Hsinchu Science Park, Taiwan
csyang2 1:c0f972361605 19 for the purposes of creating libraries for its
csyang2 1:c0f972361605 20 Arm Cortex-M and Arm9 32-bit microcontrollers, commercialized and distributed by Nuvoton Technology Corporation
csyang2 1:c0f972361605 21 under the terms and conditions of an End User
csyang2 1:c0f972361605 22 License Agreement supplied with the libraries.
csyang2 1:c0f972361605 23 Full source code is available at: www.segger.com
csyang2 1:c0f972361605 24
csyang2 1:c0f972361605 25 We appreciate your understanding and fairness.
csyang2 1:c0f972361605 26 ----------------------------------------------------------------------
csyang2 1:c0f972361605 27 Licensing information
csyang2 1:c0f972361605 28 Licensor: SEGGER Software GmbH
csyang2 1:c0f972361605 29 Licensed to: Nuvoton Technology Corporation, No. 4, Creation Rd. III, Hsinchu Science Park, 30077 Hsinchu City, Taiwan
csyang2 1:c0f972361605 30 Licensed SEGGER software: emWin
csyang2 1:c0f972361605 31 License number: GUI-00735
csyang2 1:c0f972361605 32 License model: emWin License Agreement, signed February 27, 2018
csyang2 1:c0f972361605 33 Licensed platform: Cortex-M and ARM9 32-bit series microcontroller designed and manufactured by or for Nuvoton Technology Corporation
csyang2 1:c0f972361605 34 ----------------------------------------------------------------------
csyang2 1:c0f972361605 35 Support and Update Agreement (SUA)
csyang2 1:c0f972361605 36 SUA period: 2018-03-26 - 2019-03-27
csyang2 1:c0f972361605 37 Contact to extend SUA: sales@segger.com
csyang2 1:c0f972361605 38 ----------------------------------------------------------------------
csyang2 1:c0f972361605 39 File : LCD_Protected.h
csyang2 1:c0f972361605 40 Purpose : LCD level - To be used only internally by the GUI
csyang2 1:c0f972361605 41 ----------------------------------------------------------------------
csyang2 1:c0f972361605 42 */
csyang2 1:c0f972361605 43
csyang2 1:c0f972361605 44 #ifndef LCD_PROTECTED_H
csyang2 1:c0f972361605 45 #define LCD_PROTECTED_H
csyang2 1:c0f972361605 46
csyang2 1:c0f972361605 47 #include "LCD.h"
csyang2 1:c0f972361605 48
csyang2 1:c0f972361605 49 #if defined(__cplusplus)
csyang2 1:c0f972361605 50 extern "C" { /* Make sure we have C-declarations in C++ programs */
csyang2 1:c0f972361605 51 #endif
csyang2 1:c0f972361605 52
csyang2 1:c0f972361605 53 /*********************************************************************
csyang2 1:c0f972361605 54 *
csyang2 1:c0f972361605 55 * Data types
csyang2 1:c0f972361605 56 */
csyang2 1:c0f972361605 57 typedef struct {
csyang2 1:c0f972361605 58 LCD_COLOR * paColor;
csyang2 1:c0f972361605 59 I16 NumEntries;
csyang2 1:c0f972361605 60 } LCD_LUT_INFO;
csyang2 1:c0f972361605 61
csyang2 1:c0f972361605 62 typedef struct {
csyang2 1:c0f972361605 63 tLCDDEV_DrawPixel * pfDrawPixel;
csyang2 1:c0f972361605 64 tLCDDEV_DrawHLine * pfDrawHLine;
csyang2 1:c0f972361605 65 tLCDDEV_DrawVLine * pfDrawVLine;
csyang2 1:c0f972361605 66 tLCDDEV_FillRect * pfFillRect;
csyang2 1:c0f972361605 67 tLCDDEV_DrawBitmap * pfDrawBitmap;
csyang2 1:c0f972361605 68 } LCD_API_LIST;
csyang2 1:c0f972361605 69
csyang2 1:c0f972361605 70 /*********************************************************************
csyang2 1:c0f972361605 71 *
csyang2 1:c0f972361605 72 * External data
csyang2 1:c0f972361605 73 */
csyang2 1:c0f972361605 74 extern GUI_CONST_STORAGE U8 LCD_aMirror[256];
csyang2 1:c0f972361605 75 extern LCD_PIXELINDEX * LCD__aConvTable;
csyang2 1:c0f972361605 76
csyang2 1:c0f972361605 77 /*********************************************************************
csyang2 1:c0f972361605 78 *
csyang2 1:c0f972361605 79 * Misc functions
csyang2 1:c0f972361605 80 */
csyang2 1:c0f972361605 81 void LCD_UpdateColorIndices (void);
csyang2 1:c0f972361605 82 int LCD_PassingBitmapsAllowed(void);
csyang2 1:c0f972361605 83 void LCD_EnableCursor (int OnOff);
csyang2 1:c0f972361605 84 void LCD_SelectLCD (void);
csyang2 1:c0f972361605 85
csyang2 1:c0f972361605 86 void LCD_DrawBitmap(int x0, int y0,
csyang2 1:c0f972361605 87 int xsize, int ysize,
csyang2 1:c0f972361605 88 int xMul, int yMul,
csyang2 1:c0f972361605 89 int BitsPerPixel,
csyang2 1:c0f972361605 90 int BytesPerLine,
csyang2 1:c0f972361605 91 const U8 * pPixel,
csyang2 1:c0f972361605 92 const LCD_PIXELINDEX * pTrans);
csyang2 1:c0f972361605 93
csyang2 1:c0f972361605 94 void LCD__DrawBitmap_1bpp(int x0, int y0,
csyang2 1:c0f972361605 95 int xsize, int ysize,
csyang2 1:c0f972361605 96 int xMul, int yMul,
csyang2 1:c0f972361605 97 int BitsPerPixel,
csyang2 1:c0f972361605 98 int BytesPerLine,
csyang2 1:c0f972361605 99 const U8 * pPixel,
csyang2 1:c0f972361605 100 const LCD_PIXELINDEX * pTrans,
csyang2 1:c0f972361605 101 int OffData);
csyang2 1:c0f972361605 102
csyang2 1:c0f972361605 103 /*********************************************************************
csyang2 1:c0f972361605 104 *
csyang2 1:c0f972361605 105 * Internal used color conversion routines
csyang2 1:c0f972361605 106 */
csyang2 1:c0f972361605 107 tLCDDEV_Index2Color LCD_Index2Color_444_12;
csyang2 1:c0f972361605 108 tLCDDEV_Index2Color LCD_Index2Color_M444_12;
csyang2 1:c0f972361605 109 tLCDDEV_Index2Color LCD_Index2Color_444_12_1;
csyang2 1:c0f972361605 110 tLCDDEV_Index2Color LCD_Index2Color_M444_12_1;
csyang2 1:c0f972361605 111 tLCDDEV_Index2Color LCD_Index2Color_444_16;
csyang2 1:c0f972361605 112 tLCDDEV_Index2Color LCD_Index2Color_M444_16;
csyang2 1:c0f972361605 113 tLCDDEV_Index2Color LCD_Index2Color_555;
csyang2 1:c0f972361605 114 tLCDDEV_Index2Color LCD_Index2Color_565;
csyang2 1:c0f972361605 115 tLCDDEV_Index2Color LCD_Index2Color_8666;
csyang2 1:c0f972361605 116 tLCDDEV_Index2Color LCD_Index2Color_888;
csyang2 1:c0f972361605 117 tLCDDEV_Index2Color LCD_Index2Color_8888;
csyang2 1:c0f972361605 118 tLCDDEV_Index2Color LCD_Index2Color_M8888I;
csyang2 1:c0f972361605 119 tLCDDEV_Index2Color LCD_Index2Color_M555;
csyang2 1:c0f972361605 120 tLCDDEV_Index2Color LCD_Index2Color_M565;
csyang2 1:c0f972361605 121 tLCDDEV_Index2Color LCD_Index2Color_M888;
csyang2 1:c0f972361605 122
csyang2 1:c0f972361605 123 tLCDDEV_Color2Index LCD_Color2Index_8666;
csyang2 1:c0f972361605 124
csyang2 1:c0f972361605 125 #if defined(__cplusplus)
csyang2 1:c0f972361605 126 }
csyang2 1:c0f972361605 127 #endif
csyang2 1:c0f972361605 128
csyang2 1:c0f972361605 129 #endif /* LCD_PROTECTED_H */
csyang2 1:c0f972361605 130
csyang2 1:c0f972361605 131 /*************************** End of file ****************************/
csyang2 1:c0f972361605 132