LPCOpen Platform for LPC18XX/43XX microcontrollers  18XX43XX
LPCOpen Platform for the NXP LPC18XX/43XX family of Microcontrollers
Data Structures | Macros | Enumerations | Functions
lcd_18xx_43xx.h File Reference

Go to the source code of this file.

Data Structures

struct  LPC_LCD_T
 LCD Controller register block structure. More...
 
struct  LCD_PALETTE_ENTRY_T
 LCD Palette entry format. More...
 
struct  LCD_CONFIG_T
 A structure for LCD Configuration. More...
 

Macros

#define LCD_INTMSK_FUFIM   0x2
 
#define LCD_INTMSK_LNBUIM   0x4
 
#define LCD_INTMSK_VCOMPIM   0x8
 
#define LCD_INTMSK_BERIM   0x10
 
#define CLCDC_LCDCTRL_ENABLE   _BIT(0)
 
#define CLCDC_LCDCTRL_PWR   _BIT(11)
 

Enumerations

enum  LCD_PANEL_OPT_T { LCD_TFT = 0x02, LCD_MONO_4 = 0x01, LCD_MONO_8 = 0x05, LCD_CSTN = 0x00 }
 LCD Panel type. More...
 
enum  LCD_COLOR_FORMAT_OPT_T { LCD_COLOR_FORMAT_RGB = 0, LCD_COLOR_FORMAT_BGR }
 LCD Color Format. More...
 
enum  LCD_CURSOR_SIZE_OPT_T { LCD_CURSOR_32x32 = 0, LCD_CURSOR_64x64 }
 LCD Cursor Size. More...
 

Functions

void Chip_LCD_Init (LPC_LCD_T *pLCD, LCD_CONFIG_T *LCD_ConfigStruct)
 Initialize the LCD controller. More...
 
void Chip_LCD_DeInit (LPC_LCD_T *pLCD)
 Shutdown the LCD controller. More...
 
STATIC INLINE void Chip_LCD_PowerOn (LPC_LCD_T *pLCD)
 Power-on the LCD Panel (power pin) More...
 
STATIC INLINE void Chip_LCD_PowerOff (LPC_LCD_T *pLCD)
 Power-off the LCD Panel (power pin) More...
 
STATIC INLINE void Chip_LCD_Enable (LPC_LCD_T *pLCD)
 Enable/Disable the LCD Controller. More...
 
STATIC INLINE void Chip_LCD_Disable (LPC_LCD_T *pLCD)
 Enable/Disable the LCD Controller. More...
 
STATIC INLINE void Chip_LCD_SetUPFrameBuffer (LPC_LCD_T *pLCD, void *buffer)
 Set LCD Upper Panel Frame Buffer for Single Panel or Upper Panel Frame Buffer for Dual Panel. More...
 
STATIC INLINE void Chip_LCD_SetLPFrameBuffer (LPC_LCD_T *pLCD, void *buffer)
 Set LCD Lower Panel Frame Buffer for Dual Panel. More...
 
void Chip_LCD_Cursor_Config (LPC_LCD_T *pLCD, LCD_CURSOR_SIZE_OPT_T cursor_size, bool sync)
 Configure Cursor. More...
 
STATIC INLINE void Chip_LCD_Cursor_Enable (LPC_LCD_T *pLCD, uint8_t cursor_num)
 Enable Cursor. More...
 
STATIC INLINE void Chip_LCD_Cursor_Disable (LPC_LCD_T *pLCD, uint8_t cursor_num)
 Disable Cursor. More...
 
STATIC INLINE void Chip_LCD_Cursor_LoadPalette0 (LPC_LCD_T *pLCD, uint32_t palette_color)
 Load Cursor Palette. More...
 
STATIC INLINE void Chip_LCD_Cursor_LoadPalette1 (LPC_LCD_T *pLCD, uint32_t palette_color)
 Load Cursor Palette. More...
 
STATIC INLINE void Chip_LCD_Cursor_SetPos (LPC_LCD_T *pLCD, uint16_t x, uint16_t y)
 Set Cursor Position. More...
 
STATIC INLINE void Chip_LCD_Cursor_SetClip (LPC_LCD_T *pLCD, uint16_t x, uint16_t y)
 Set Cursor Clipping Position. More...
 
STATIC INLINE void Chip_LCD_EnableInts (LPC_LCD_T *pLCD, uint32_t ints)
 Enable Controller Interrupt. More...
 
STATIC INLINE void Chip_LCD_DisableInts (LPC_LCD_T *pLCD, uint32_t ints)
 Disable Controller Interrupt. More...
 
STATIC INLINE void Chip_LCD_ClearInts (LPC_LCD_T *pLCD, uint32_t ints)
 Clear Controller Interrupt. More...
 
void Chip_LCD_Cursor_WriteImage (LPC_LCD_T *pLCD, uint8_t cursor_num, void *Image)
 Write Cursor Image into Internal Cursor Image Buffer. More...
 
void Chip_LCD_LoadPalette (LPC_LCD_T *pLCD, void *palette)
 Load LCD Palette. More...