eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4dlcdhw_template_fb.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 /******************************************************************************
52 * D4D LCD HW Driver setting constants
53 *
54 */
60 #define d4dlcdhw_template_fb_ID 1
61 
64 // copilation enable preprocessor condition
65 // the string d4dtch_template_fb_ID must be replaced by define created one line up
66 #if (D4D_MK_STR(D4D_LLD_LCD_HW) == d4dlcdhw_template_fb_ID)
67 
68  // include of low level driver heaser file
69  // it will be included into wole project only in case that this driver is selected in main D4D configuration file
71  /******************************************************************************
72  * Macros
73  ******************************************************************************/
74 
75  /******************************************************************************
76  * Internal function prototypes
77  ******************************************************************************/
78 
79  static unsigned char D4DLCDHW_Init_TemplateFb(void);
80  static unsigned char D4DLCDHW_DeInit_TemplateFb(void);
81  static void D4DLCDHW_WriteData_TemplateFb(unsigned long addr, D4D_COLOR value);
82  static D4D_COLOR D4DLCDHW_ReadData_TemplateFb(unsigned long addr);
83  static D4DLCD_FRAMEBUFF_DESC* D4DLCDHW_GetFbDescriptor_TemplateFb(void);
84  static unsigned char D4DLCDHW_PinCtl_TemplateFb(D4DLCDHW_PINS pinId, D4DHW_PIN_STATE setState);
85  static void D4DLCD_FlushBuffer_TemplateFb(D4DLCD_FLUSH_MODE mode);
86 
87  /**************************************************************/
93  // the main structure that contains low level driver api functions
94  // the name fo this structure is used for recognizing of configured low level driver of whole D4D
95  // so this name has to be used in main configuration header file of D4D driver to enable this driver
96  const D4DLCDHWFB_FUNCTIONS d4dlcdhw_template_fb =
97  {
98  D4DLCDHW_Init_TemplateFb,
99  D4DLCDHW_WriteData_TemplateFb,
100  D4DLCDHW_ReadData_TemplateFb,
101  D4DLCDHW_PinCtl_TemplateFb,
102  D4DLCD_FlushBuffer_TemplateFb,
103  D4DLCDHW_DeInit_TemplateFb
104  };
105  /**************************************************************/
111  /**************************************************************/
118  /**************************************************************************/
123  static unsigned char D4DLCDHW_Init_TemplateFb(void)
124  {
125 
126  return 0; // failed because there in template is no code
127  }
128 
129 
130  /**************************************************************************/
135  static unsigned char D4DLCDHW_DeInit_TemplateFb(void)
136  {
137 
138  return 0; // failed because there in template is no code
139  }
140 
141  /**************************************************************************/
148  static void D4DLCDHW_WriteData_TemplateFb(unsigned long addr, D4D_COLOR value)
149  {
150 
151  }
152 
153 
154  /**************************************************************************/
160  static D4D_COLOR D4DLCDHW_ReadDataWord_TemplateFb(unsigned long addr)
161  {
162 
163  }
164 
165  /**************************************************************************/
170  static D4DLCD_FRAMEBUFF_DESC* D4DLCDHW_GetFbDescriptor_TemplateFb(void)
171  {
172 
173  }
174 
175 
176  /**************************************************************************/
183  static unsigned char D4DLCDHW_PinCtl_TemplateFb(D4DLCDHW_PINS pinId, D4DHW_PIN_STATE setState)
184  {
185 
186  }
187 
188  /**************************************************************************/
195  static void D4DLCD_FlushBuffer_TemplateFb(D4DLCD_FLUSH_MODE mode)
196  {
197 
198  }
199 
202 #endif //(D4D_MK_STR(D4D_LLD_LCD_HW) == d4dlcdhw_template_fb_ID)
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 low level frame buffer LCD interface API structure.
Definition: d4d_lldapi.h:179
D4D low level frame buffer description structure.
Definition: d4d_lldapi.h:117
D4D driver - resistive touch screen driver function header file.
D4D driver - template_fb hardware lcd driver function header file.
LWord D4D_COLOR
Type definition of eGUI color variables.
Definition: d4d_types.h:262