eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4d_low.h
Go to the documentation of this file.
1 /**************************************************************************
2 *
3 * Copyright 2014 by Petr Gargulak. eGUI Community.
4 * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc.
5 *
6 ***************************************************************************
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License Version 3
9 * or later (the "LGPL").
10 *
11 * As a special exception, the copyright holders of the eGUI project give you
12 * permission to link the eGUI sources with independent modules to produce an
13 * executable, regardless of the license terms of these independent modules,
14 * and to copy and distribute the resulting executable under terms of your
15 * choice, provided that you also meet, for each linked independent module,
16 * the terms and conditions of the license of that module.
17 * An independent module is a module which is not derived from or based
18 * on this library.
19 * If you modify the eGUI sources, you may extend this exception
20 * to your version of the eGUI sources, but you are not obligated
21 * to do so. If you do not wish to do so, delete this
22 * exception statement from your version.
23 *
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27 *
28 * You should have received a copy of the GNU General Public License
29 * and the GNU Lesser General Public License along with this program.
30 * If not, see <http://www.gnu.org/licenses/>.
31 *
32 ***************************************************************************/
46 #ifndef __D4D_LOW_H
47 #define __D4D_LOW_H
48 
49 /******************************************************************************
50 * Includes
51 ******************************************************************************/
52 
53 /******************************************************************************
54 * Constants
55 ******************************************************************************/
56 
57 /******************************************************************************
58 * Types
59 ******************************************************************************/
60 
61 /******************************************************************************
62 * Macros
63 ******************************************************************************/
64 
65 /******************************************************************************
66 * Global variables
67 ******************************************************************************/
68 
69 /******************************************************************************
70 * Global D4Drv low level functions
71 ******************************************************************************/
72 
73 D4D_BOOL D4D_LCD_Init(void); // Hardware init of LCD
77 void D4D_LCD_SetOrientation(D4D_ORIENTATION new_orientation);
78 void D4D_LCD_SwapCoor(D4D_COOR* c1, D4D_COOR* c2);
79 
80 void D4D_LCD_PutPixel(D4D_COOR x1, D4D_COOR y1, D4D_LINETYPE line_type, D4D_COLOR color);
81 void D4D_LCD_Line(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2,D4D_LINETYPE line_type ,D4D_COLOR color);
82 void D4D_LCD_Box(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_COLOR color);
83 void D4D_LCD_Rect(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_LINETYPE line_type, D4D_COLOR color);
84 void D4D_LCD_Circle(D4D_COOR x1, D4D_COOR y1, D4D_COOR r, D4D_BOOL fill, D4D_LINETYPE line_type, D4D_COLOR color);
85 
86 #if D4D_ROUND_CORNER_ENABLE == D4D_TRUE
87  void D4D_LCD_RBox(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_COLOR color, D4D_COOR radius);
88  void D4D_LCD_RRect(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_LINETYPE line_type, D4D_COLOR color, D4D_COOR radius);
89  void D4D_LCD_QCircle (D4D_COOR cx, D4D_COOR cy, D4D_COOR radius, D4D_BOOL fill, D4D_LINETYPE line_type, D4D_COLOR color, D4D_QUADRANT quadrant);
90 #endif
91 
92 
93 
94 /******************************************************************************
95 * Global D4Drv Touch Screen low level functions
96 ******************************************************************************/
97 
98 
102 void D4D_TCH_GetCalibratedPosition(D4D_COOR *TouchPositionX, D4D_COOR *TouchPositionY);
103 Byte D4D_TCH_GetRawPosition(D4D_COOR *TouchPositionX, D4D_COOR *TouchPositionY);
104 void D4D_TCH_Calibrate(D4D_COLOR fore, D4D_COLOR bckg);
106 
107 #endif /* __D4D_LOW_H */
108 
109 
110 
111 
112 
113 
114 
115 
116 
117 
void D4D_LCD_RBox(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_COLOR color, D4D_COOR radius)
Definition: d4d_low.c:397
D4D_LINETYPE
Type definition of eGUI line type.
Definition: d4d_types.h:291
Type definition of eGUI touch screen calibration structure.
Definition: d4d_types.h:350
void D4D_TCH_Calibrate(D4D_COLOR fore, D4D_COLOR bckg)
Definition: d4d_low.c:914
D4D_COOR D4D_DisplayHeight(void)
Definition: d4d_low.c:167
void D4D_LCD_Line(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_LINETYPE line_type, D4D_COLOR color)
Definition: d4d_low.c:245
void D4D_LCD_Rect(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_LINETYPE line_type, D4D_COLOR color)
Definition: d4d_low.c:237
void D4D_LCD_Box(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_COLOR color)
Definition: d4d_low.c:212
Byte D4D_TCH_GetCalibrationStatus(void)
void D4D_TCH_GetCalibratedPosition(D4D_COOR *TouchPositionX, D4D_COOR *TouchPositionY)
void D4D_LCD_SetOrientation(D4D_ORIENTATION new_orientation)
Definition: d4d_low.c:152
void D4D_TCH_DrawCalibrationPoint(D4D_COOR X, D4D_COOR Y, D4D_COLOR Color)
Definition: d4d_low.c:920
void D4D_LCD_SwapCoor(D4D_COOR *c1, D4D_COOR *c2)
Definition: d4d_low.c:176
D4D_ORIENTATION
Type definition of eGUI display orientation.
Definition: d4d_types.h:341
Byte D4D_COOR
Type definition of eGUI coordination variables.
Definition: d4d_types.h:219
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
Definition: d4d_types.h:151
D4D_ORIENTATION D4D_LCD_GetOrientation(void)
Definition: d4d_low.c:147
void D4D_LCD_PutPixel(D4D_COOR x1, D4D_COOR y1, D4D_LINETYPE line_type, D4D_COLOR color)
Definition: d4d_low.c:192
D4D_TOUCHSCREEN_CALIB D4D_TCH_GetCalibration(void)
Byte D4D_TCH_GetRawPosition(D4D_COOR *TouchPositionX, D4D_COOR *TouchPositionY)
void D4D_TCH_SetCalibration(D4D_TOUCHSCREEN_CALIB newCalib)
D4D_QUADRANT
Type definition of eGUI circle quadrant.
Definition: d4d_types.h:323
void D4D_LCD_QCircle(D4D_COOR cx, D4D_COOR cy, D4D_COOR radius, D4D_BOOL fill, D4D_LINETYPE line_type, D4D_COLOR color, D4D_QUADRANT quadrant)
Definition: d4d_low.c:561
D4D_BOOL D4D_LCD_Init(void)
Definition: d4d_low.c:86
LWord D4D_BOOL
Type definition of eGUI boolean.
Definition: d4d_types.h:204
void D4D_LCD_Circle(D4D_COOR cx, D4D_COOR cy, D4D_COOR radius, D4D_BOOL fill, D4D_LINETYPE line_type, D4D_COLOR color)
Definition: d4d_low.c:367
LWord D4D_COLOR
Type definition of eGUI color variables.
Definition: d4d_types.h:262
void D4D_LCD_RRect(D4D_COOR x1, D4D_COOR y1, D4D_COOR x2, D4D_COOR y2, D4D_LINETYPE line_type, D4D_COLOR color, D4D_COOR radius)
Definition: d4d_low.c:453
D4D_COOR D4D_DisplayWidth(void)
Definition: d4d_low.c:159