eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4dlcdhw_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 HW Driver setting constants
52 *
53 */
59 #define d4dlcdhw_template_ID 1
60 
63 // copilation enable preprocessor condition
64 // the string d4dtch_template_ID must be replaced by define created one line up
65 #if (D4D_MK_STR(D4D_LLD_LCD_HW) == d4dlcdhw_template_ID)
66 
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 D4DLCDHW_Init_Template(void);
79  static unsigned char D4DLCDHW_DeInit_Template(void);
80  static void D4DLCDHW_SendDataWord_Template(unsigned short value);
81  static void D4DLCDHW_SendCmdWord_Template(unsigned short cmd);
82  static unsigned short D4DLCDHW_ReadDataWord_Template(void);
83  static unsigned short D4DLCDHW_ReadCmdWord_Template(void);
84  static unsigned char D4DLCDHW_PinCtl_Template(D4DLCDHW_PINS pinId, D4DHW_PIN_STATE setState);
85  static void D4DLCD_FlushBuffer_Template(D4DLCD_FLUSH_MODE mode);
86 
87  /******************************************************************************
88  * D4D LCD HW Driver setting variables
89  *
90  */
97  const D4DLCDHW_FUNCTIONS d4dlcdhw_template =
98  {
99  D4DLCDHW_Init_Template,
100  D4DLCDHW_SendDataWord_Template,
101  D4DLCDHW_SendCmdWord_Template,
102  D4DLCDHW_ReadDataWord_Template,
103  D4DLCDHW_ReadCmdWord_Template,
104  D4DLCDHW_PinCtl_Template,
105  D4DLCD_FlushBuffer_Template,
106  D4DLCDHW_DeInit_Template
107  };
108 
111  /**************************************************************/
117  /******************************************************************************
118  * Begin of D4D_LCD HW public functions
119  */
123  /**************************************************************************/
128  static unsigned char D4DLCDHW_Init_Template(void)
129  {
130 
131  return 0; // failed because there, in template, is no code
132  }
133 
134 
135  /**************************************************************************/
140  static unsigned char D4DLCDHW_DeInit_Template(void)
141  {
142 
143  return 0; // failed because there in template is no code
144  }
145 
146  /**************************************************************************/
152  static void D4DLCDHW_SendDataWord_Template(unsigned short value)
153  {
154 
155  }
156 
157  /**************************************************************************/
163  static void D4DLCDHW_SendCmdWord_Template(unsigned short cmd)
164  {
165 
166  }
167 
168  /**************************************************************************/
173  static unsigned short D4DLCDHW_ReadDataWord_Template(void)
174  {
175 
176  }
177 
178  /**************************************************************************/
183  static unsigned short D4DLCDHW_ReadCmdWord_Template(void)
184  {
185 
186  }
187 
188  /**************************************************************************/
195  static unsigned char D4DLCDHW_PinCtl_Template(D4DLCDHW_PINS pinId, D4DHW_PIN_STATE setState)
196  {
197 
198  }
199 
200  /**************************************************************************/
207  static void D4DLCD_FlushBuffer_Template(D4DLCD_FLUSH_MODE mode)
208  {
209 
210  }
211 
214 #endif //(D4D_MK_STR(D4D_LLD_LCD_HW) == d4dlcdhw_template_ID)
D4D low level standard LCD Hardware interface API structure.
Definition: d4d_lldapi.h:163
D4D Driver main header file.
D4DHW_PIN_STATE
D4D low level MCU pin state enumeration type.
Definition: d4d_lldapi.h:73
D4DLCD_FLUSH_MODE
D4D low level eGUI flush screen types enumeration.
Definition: d4d_lldapi.h:136
D4D Driver private header file.
D4DLCDHW_PINS
D4D low level MCU types definition for general LCD screen control signals.
Definition: d4d_lldapi.h:96
D4D driver - template hardware lcd driver function header file.
D4D driver - resistive touch screen driver function header file.