Headers for emWin lib

Dependents:   DISCO-F746NG_rtos_test

Committer:
redbird
Date:
Sat Mar 26 22:49:50 2016 +0000
Revision:
0:1bf8f02b0770
new code integration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
redbird 0:1bf8f02b0770 1 /*********************************************************************
redbird 0:1bf8f02b0770 2 * SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 3 * Solutions for real time microcontroller applications *
redbird 0:1bf8f02b0770 4 **********************************************************************
redbird 0:1bf8f02b0770 5 * *
redbird 0:1bf8f02b0770 6 * (c) 1996 - 2014 SEGGER Microcontroller GmbH & Co. KG *
redbird 0:1bf8f02b0770 7 * *
redbird 0:1bf8f02b0770 8 * Internet: www.segger.com Support: support@segger.com *
redbird 0:1bf8f02b0770 9 * *
redbird 0:1bf8f02b0770 10 **********************************************************************
redbird 0:1bf8f02b0770 11
redbird 0:1bf8f02b0770 12 ** emWin V5.24 - Graphical user interface for embedded applications **
redbird 0:1bf8f02b0770 13 All Intellectual Property rights in the Software belongs to SEGGER.
redbird 0:1bf8f02b0770 14 emWin is protected by international copyright laws. Knowledge of the
redbird 0:1bf8f02b0770 15 source code may not be used to write a similar product. This file may
redbird 0:1bf8f02b0770 16 only be used in accordance with the following terms:
redbird 0:1bf8f02b0770 17
redbird 0:1bf8f02b0770 18 The software has been licensed to NXP Semiconductors USA, Inc. whose
redbird 0:1bf8f02b0770 19 registered office is situated at 411 E. Plumeria Drive, San Jose,
redbird 0:1bf8f02b0770 20 CA 95134, USA solely for the purposes of creating libraries for
redbird 0:1bf8f02b0770 21 NXPs M0, M3/M4 and ARM7/9 processor-based devices, sublicensed and
redbird 0:1bf8f02b0770 22 distributed under the terms and conditions of the NXP End User License
redbird 0:1bf8f02b0770 23 Agreement.
redbird 0:1bf8f02b0770 24 Full source code is available at: www.segger.com
redbird 0:1bf8f02b0770 25
redbird 0:1bf8f02b0770 26 We appreciate your understanding and fairness.
redbird 0:1bf8f02b0770 27 ----------------------------------------------------------------------
redbird 0:1bf8f02b0770 28 File : LCD_Protected.h
redbird 0:1bf8f02b0770 29 Purpose : LCD level - To be used only internally by the GUI
redbird 0:1bf8f02b0770 30 ----------------------------------------------------------------------
redbird 0:1bf8f02b0770 31 */
redbird 0:1bf8f02b0770 32
redbird 0:1bf8f02b0770 33 #ifndef LCD_PROTECTED_H
redbird 0:1bf8f02b0770 34 #define LCD_PROTECTED_H
redbird 0:1bf8f02b0770 35
redbird 0:1bf8f02b0770 36 #include "LCD.h"
redbird 0:1bf8f02b0770 37
redbird 0:1bf8f02b0770 38 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 39 extern "C" { /* Make sure we have C-declarations in C++ programs */
redbird 0:1bf8f02b0770 40 #endif
redbird 0:1bf8f02b0770 41
redbird 0:1bf8f02b0770 42 /*********************************************************************
redbird 0:1bf8f02b0770 43 *
redbird 0:1bf8f02b0770 44 * Data types
redbird 0:1bf8f02b0770 45 */
redbird 0:1bf8f02b0770 46 typedef struct {
redbird 0:1bf8f02b0770 47 LCD_COLOR * paColor;
redbird 0:1bf8f02b0770 48 I16 NumEntries;
redbird 0:1bf8f02b0770 49 } LCD_LUT_INFO;
redbird 0:1bf8f02b0770 50
redbird 0:1bf8f02b0770 51 typedef struct {
redbird 0:1bf8f02b0770 52 tLCDDEV_DrawPixel * pfDrawPixel;
redbird 0:1bf8f02b0770 53 tLCDDEV_DrawHLine * pfDrawHLine;
redbird 0:1bf8f02b0770 54 tLCDDEV_DrawVLine * pfDrawVLine;
redbird 0:1bf8f02b0770 55 tLCDDEV_FillRect * pfFillRect;
redbird 0:1bf8f02b0770 56 tLCDDEV_DrawBitmap * pfDrawBitmap;
redbird 0:1bf8f02b0770 57 } LCD_API_LIST;
redbird 0:1bf8f02b0770 58
redbird 0:1bf8f02b0770 59 /*********************************************************************
redbird 0:1bf8f02b0770 60 *
redbird 0:1bf8f02b0770 61 * External data
redbird 0:1bf8f02b0770 62 */
redbird 0:1bf8f02b0770 63 extern GUI_CONST_STORAGE U8 LCD_aMirror[256];
redbird 0:1bf8f02b0770 64 extern LCD_PIXELINDEX * LCD__aConvTable;
redbird 0:1bf8f02b0770 65
redbird 0:1bf8f02b0770 66 /*********************************************************************
redbird 0:1bf8f02b0770 67 *
redbird 0:1bf8f02b0770 68 * Misc functions
redbird 0:1bf8f02b0770 69 */
redbird 0:1bf8f02b0770 70 void LCD_UpdateColorIndices (void);
redbird 0:1bf8f02b0770 71 int LCD_PassingBitmapsAllowed(void);
redbird 0:1bf8f02b0770 72 void LCD_EnableCursor (int OnOff);
redbird 0:1bf8f02b0770 73 void LCD_SelectLCD (void);
redbird 0:1bf8f02b0770 74
redbird 0:1bf8f02b0770 75 void LCD_DrawBitmap(int x0, int y0,
redbird 0:1bf8f02b0770 76 int xsize, int ysize,
redbird 0:1bf8f02b0770 77 int xMul, int yMul,
redbird 0:1bf8f02b0770 78 int BitsPerPixel,
redbird 0:1bf8f02b0770 79 int BytesPerLine,
redbird 0:1bf8f02b0770 80 const U8 * pPixel,
redbird 0:1bf8f02b0770 81 const LCD_PIXELINDEX * pTrans);
redbird 0:1bf8f02b0770 82
redbird 0:1bf8f02b0770 83 void LCD__DrawBitmap_1bpp(int x0, int y0,
redbird 0:1bf8f02b0770 84 int xsize, int ysize,
redbird 0:1bf8f02b0770 85 int xMul, int yMul,
redbird 0:1bf8f02b0770 86 int BitsPerPixel,
redbird 0:1bf8f02b0770 87 int BytesPerLine,
redbird 0:1bf8f02b0770 88 const U8 * pPixel,
redbird 0:1bf8f02b0770 89 const LCD_PIXELINDEX * pTrans,
redbird 0:1bf8f02b0770 90 int OffData);
redbird 0:1bf8f02b0770 91
redbird 0:1bf8f02b0770 92 /*********************************************************************
redbird 0:1bf8f02b0770 93 *
redbird 0:1bf8f02b0770 94 * Internal used color conversion routines
redbird 0:1bf8f02b0770 95 */
redbird 0:1bf8f02b0770 96 tLCDDEV_Index2Color LCD_Index2Color_444_12;
redbird 0:1bf8f02b0770 97 tLCDDEV_Index2Color LCD_Index2Color_M444_12;
redbird 0:1bf8f02b0770 98 tLCDDEV_Index2Color LCD_Index2Color_444_12_1;
redbird 0:1bf8f02b0770 99 tLCDDEV_Index2Color LCD_Index2Color_M444_12_1;
redbird 0:1bf8f02b0770 100 tLCDDEV_Index2Color LCD_Index2Color_444_16;
redbird 0:1bf8f02b0770 101 tLCDDEV_Index2Color LCD_Index2Color_M444_16;
redbird 0:1bf8f02b0770 102 tLCDDEV_Index2Color LCD_Index2Color_555;
redbird 0:1bf8f02b0770 103 tLCDDEV_Index2Color LCD_Index2Color_565;
redbird 0:1bf8f02b0770 104 tLCDDEV_Index2Color LCD_Index2Color_8666;
redbird 0:1bf8f02b0770 105 tLCDDEV_Index2Color LCD_Index2Color_888;
redbird 0:1bf8f02b0770 106 tLCDDEV_Index2Color LCD_Index2Color_8888;
redbird 0:1bf8f02b0770 107 tLCDDEV_Index2Color LCD_Index2Color_M555;
redbird 0:1bf8f02b0770 108 tLCDDEV_Index2Color LCD_Index2Color_M565;
redbird 0:1bf8f02b0770 109 tLCDDEV_Index2Color LCD_Index2Color_M888;
redbird 0:1bf8f02b0770 110
redbird 0:1bf8f02b0770 111 tLCDDEV_Color2Index LCD_Color2Index_8666;
redbird 0:1bf8f02b0770 112
redbird 0:1bf8f02b0770 113 #if defined(__cplusplus)
redbird 0:1bf8f02b0770 114 }
redbird 0:1bf8f02b0770 115 #endif
redbird 0:1bf8f02b0770 116
redbird 0:1bf8f02b0770 117 #endif /* LCD_PROTECTED_H */
redbird 0:1bf8f02b0770 118
redbird 0:1bf8f02b0770 119 /*************************** End of file ****************************/
redbird 0:1bf8f02b0770 120