| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lcd_18xx_43xx.h
Go to the documentation of this file.
1 /*
2 * @brief LPC18xx/43xx LCD chip driver
3 *
4 * @note
5 * Copyright(C) NXP Semiconductors, 2012
6 * All rights reserved.
7 *
8 * @par
9 * Software that is described herein is for illustrative purposes only
10 * which provides customers with programming information regarding the
11 * LPC products. This software is supplied "AS IS" without any warranties of
12 * any kind, and NXP Semiconductors and its licensor disclaim any and
13 * all warranties, express or implied, including all implied warranties of
14 * merchantability, fitness for a particular purpose and non-infringement of
15 * intellectual property rights. NXP Semiconductors assumes no responsibility
16 * or liability for the use of the software, conveys no license or rights under any
17 * patent, copyright, mask work right, or any other intellectual property rights in
18 * or to any products. NXP Semiconductors reserves the right to make changes
19 * in the software without notification. NXP Semiconductors also makes no
20 * representation or warranty that such application will be suitable for the
21 * specified use without further testing or modification.
22 *
23 * @par
24 * Permission to use, copy, modify, and distribute this software and its
25 * documentation is hereby granted, under NXP Semiconductors' and its
26 * licensor's relevant copyrights in the software, without fee, provided that it
27 * is used in conjunction with NXP Semiconductors microcontrollers. This
28 * copyright, permission, and disclaimer notice must appear in all copies of
29 * this code.
30 */
31
32 #ifndef __LCD_18XX_43XX_H_
33 #define __LCD_18XX_43XX_H_
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
50 void Chip_LCD_Init(LPC_LCD_T *pLCD, LCD_Config_T *LCD_ConfigStruct);
51
57 void Chip_LCD_DeInit(LPC_LCD_T *pLCD);
58
64 STATIC INLINE void Chip_LCD_PowerOn(LPC_LCD_T *pLCD)
65 {
66 IP_LCD_PowerOn(pLCD);
67 }
68
74 STATIC INLINE void Chip_LCD_PowerOff(LPC_LCD_T *pLCD)
75 {
76 IP_LCD_PowerOff(pLCD);
77 }
78
84 STATIC INLINE void Chip_LCD_Enable(LPC_LCD_T *pLCD)
85 {
86 IP_LCD_Enable(pLCD);
87 }
88
94 STATIC INLINE void Chip_LCD_Disable(LPC_LCD_T *pLCD)
95 {
96 IP_LCD_Disable(pLCD);
97 }
98
106 STATIC INLINE void Chip_LCD_SetUPFrameBuffer(LPC_LCD_T *pLCD, void *buffer)
107 {
108 IP_LCD_SetUPFrameBuffer(pLCD, buffer);
109 }
110
117 STATIC INLINE void Chip_LCD_SetLPFrameBuffer(LPC_LCD_T *pLCD, void *buffer)
118 {
119 IP_LCD_SetLPFrameBuffer(pLCD, buffer);
120 }
121
133 void Chip_LCD_Cursor_Config(LPC_LCD_T *pLCD, IP_LCD_CURSOR_SIZE_OPT_T cursor_size, bool sync);
134
142 STATIC INLINE void Chip_LCD_Cursor_Enable(LPC_LCD_T *pLCD, uint8_t cursor_num)
143 {
144 IP_LCD_Cursor_Enable(pLCD, cursor_num);
145 }
146
154 STATIC INLINE void Chip_LCD_Cursor_Disable(LPC_LCD_T *pLCD, uint8_t cursor_num)
155 {
156 IP_LCD_Cursor_Disable(pLCD, cursor_num);
157 }
158
165 STATIC INLINE void Chip_LCD_Cursor_LoadPalette0(LPC_LCD_T *pLCD, uint32_t palette_color)
166 {
167 IP_LCD_Cursor_LoadPalette0(pLCD, palette_color);
168 }
169
176 STATIC INLINE void Chip_LCD_Cursor_LoadPalette1(LPC_LCD_T *pLCD, uint32_t palette_color)
177 {
178 IP_LCD_Cursor_LoadPalette1(pLCD, palette_color);
179 }
180
188 STATIC INLINE void Chip_LCD_Cursor_SetPos(LPC_LCD_T *pLCD, uint16_t x, uint16_t y)
189 {
190 IP_LCD_Cursor_SetPos(pLCD, x, y);
191 }
192
200 STATIC INLINE void Chip_LCD_Cursor_SetClip(LPC_LCD_T *pLCD, uint16_t x, uint16_t y)
201 {
202 IP_LCD_Cursor_SetClip(pLCD, x, y);
203 }
204
211 STATIC INLINE void Chip_LCD_EnableInts(LPC_LCD_T *pLCD, uint32_t ints)
212 {
213 IP_LCD_EnableInts(pLCD, ints);
214 }
215
222 STATIC INLINE void Chip_LCD_DisableInts(LPC_LCD_T *pLCD, uint32_t ints)
223 {
224 IP_LCD_DisableInts(pLCD, ints);
225 }
226
233 STATIC INLINE void Chip_LCD_ClearInts(LPC_LCD_T *pLCD, uint32_t ints)
234 {
235 IP_LCD_ClearInts(pLCD, ints);
236 }
237
245 void Chip_LCD_Cursor_WriteImage(LPC_LCD_T *pLCD, uint8_t cursor_num, void *Image);
246
253 void Chip_LCD_LoadPalette(LPC_LCD_T *pLCD, void *palette);
254
255 #ifdef __cplusplus
256 }
257 #endif
258
263 #endif /* __LCD_18XX_43XX_H_ */