eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4dlcd_template.c
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 #include "d4d.h" // include of all public items (types, function etc) of D4D driver
47 #include "common_files/d4d_lldapi.h" // include non public low level driver interface header file (types, function prototypes, enums etc. )
48 #include "common_files/d4d_private.h" // include the private header file that contains perprocessor macros as D4D_MK_STR
49 
50 /******************************************************************************
51 * D4D LCD Driver setting constants
52 *
53 */
59 #define d4dlcd_template_ID 1
60 
63 // copilation enable preprocessor condition
64 // the string d4dlcd_template_ID must be replaced by define created one line up
65 #if (D4D_MK_STR(D4D_LLD_LCD) == d4dlcd_template_ID)
66 // #if (D4D_LLD_LCD == d4dlcd_template_ID)
67  // include of low level driver heaser file
68  // it will be included into wole project only in case that this driver is selected in main D4D configuration file
70  /******************************************************************************
71  * Macros
72  ******************************************************************************/
73 
74  /******************************************************************************
75  * Internal function prototypes
76  ******************************************************************************/
77 
78  static unsigned char D4DLCD_Init_Template(void);
79  static unsigned char D4DLCD_SetWindow_Template(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2);
80  static unsigned char D4DLCD_SetOrientation_Template(D4DLCD_ORIENTATION new_orientation);
81  static void D4DLCD_Send_PixelColor_Template(D4D_COLOR color) ;
82  static D4D_COLOR D4DLCD_Read_PixelColor_Template(void);
83  static void D4DLCD_Flush_Template(D4DLCD_FLUSH_MODE mode);
84  static void D4DLCD_Delay_ms_Template(unsigned short period);
85  static unsigned char D4DLCD_DeInit_Template(void);
86 
87  /**************************************************************/
93  /******************************************************************************
94  * D4D LCD Driver setting variables
95  *
96  */
103  const D4DLCD_FUNCTIONS d4dlcd_template =
104  {
105  D4DLCD_Init_Template,
106  D4DLCD_SetWindow_Template,
107  D4DLCD_SetOrientation_Template,
108  D4DLCD_Send_PixelColor_Template,
109  D4DLCD_Read_PixelColor_Template,
110  D4DLCD_Flush_Template,
111  D4DLCD_Delay_ms_Template,
112  D4DLCD_DeInit_Template,
113  };
115  /**************************************************************/
121  /**************************************************************/
126  /******************************************************************************
127  * Begin of D4D_LCD public functions
128  */
132  /**************************************************************************/
137  static unsigned char D4DLCD_Init_Template(void)
138  {
139 
140  }
141 
142  /**************************************************************************/
147  static unsigned char D4DLCD_DeInit_Template(void)
148  {
149 
150  }
151 
152  /**************************************************************************/
161  static unsigned char D4DLCD_SetWindow_Template(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2)
162  {
163 
164  }
165 
166  /**************************************************************************/
172  static unsigned char D4DLCD_SetOrientation_Template(D4DLCD_ORIENTATION new_orientation)
173  {
174 
175  }
176 
177  /**************************************************************************/
184  static void D4DLCD_Send_PixelColor_Template(D4D_COLOR color)
185  {
186 
187  }
188 
189  /**************************************************************************/
195  static unsigned short D4DLCD_Read_PixelColor_Template(void)
196  {
197 
198  }
199 
200  /**************************************************************************/
207  static void D4DLCD_Flush_Template(D4DLCD_FLUSH_MODE mode)
208  {
209 
210  }
211 
212  //-----------------------------------------------------------------------------
213  // FUNCTION: D4DLCD_Delay_ms_Template
214  // SCOPE: Low Level Driver API function
215  // DESCRIPTION: For do some small delays in ms
216  //
217  // PARAMETERS: period - count of ms
218  //
219  // RETURNS: none
220  //-----------------------------------------------------------------------------
221  /**************************************************************************/
227  static void D4DLCD_Delay_ms_Template(unsigned short period)
228  {
229 
230  }
231 
234 #endif //(D4D_MK_STR(D4D_LLD_LCD) == d4dlcd_template_ID)
D4D low level standard LCD interface API structure.
Definition: d4d_lldapi.h:147
D4D Driver main header file.
D4DLCD_FLUSH_MODE
D4D low level eGUI flush screen types enumeration.
Definition: d4d_lldapi.h:136
D4D Driver private header file.
D4DLCD_ORIENTATION
D4D low level screen orientation enumeration type.
Definition: d4d_lldapi.h:64
D4D driver - template lcd driver function header file.
D4D driver - resistive touch screen driver function header file.
LWord D4D_COLOR
Type definition of eGUI color variables.
Definition: d4d_types.h:262