LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lcd_001.h File Reference
#include "sys_config.h"
#include "cmsis.h"

Go to the source code of this file.

Data Structures

struct  IP_LCD_001_Type
 LCD Controller register block structure. More...
 
struct  LCD_PALETTE_ENTRY_Type
 LCD Palette entry format. More...
 
struct  LCD_Config_Type
 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 { LCD_TFT = 0x02, LCD_MONO_4 = 0x01, LCD_MONO_8 = 0x05, LCD_CSTN = 0x00 }
 LCD Panel type. More...
 
enum  LCD_COLOR_FORMAT_OPT { LCD_COLOR_FORMAT_RGB = 0, LCD_COLOR_FORMAT_BGR }
 LCD Color Format. More...
 
enum  LCD_CURSOR_SIZE_OPT { LCD_CURSOR_32x32 = 0, LCD_CURSOR_64x64 }
 LCD Cursor Size. More...
 

Functions

STATIC INLINE void IP_LCD_EnableInts (IP_LCD_001_Type *LCDx, uint32_t ints)
 Enable Controller Interrupt.
 
STATIC INLINE void IP_LCD_DisableInts (IP_LCD_001_Type *LCDx, uint32_t ints)
 Disable Controller Interrupt.
 
STATIC INLINE void IP_LCD_ClearInts (IP_LCD_001_Type *LCDx, uint32_t ints)
 Clear Controller Interrupt.
 
void IP_LCD_Init (IP_LCD_001_Type *LCDx, LCD_Config_Type *LCD_ConfigStruct)
 Initialize the LCD controller.
 
void IP_LCD_Power (IP_LCD_001_Type *LCDx, FunctionalState OnOff)
 Power the LCD Panel (power pin)
 
void IP_LCD_Enable (IP_LCD_001_Type *LCDx, FunctionalState EnDis)
 Enable/Disable the LCD Controller.
 
void IP_LCD_SetUPFrameBuffer (IP_LCD_001_Type *LCDx, void *buffer)
 Set LCD Upper Panel Frame Buffer for Single Panel or Upper Panel Frame Buffer for Dual Panel.
 
void IP_LCD_SetLPFrameBuffer (IP_LCD_001_Type *LCDx, void *buffer)
 Set LCD Lower Panel Frame Buffer for Dual Panel.
 
void IP_LCD_Cursor_Config (IP_LCD_001_Type *LCDx, LCD_CURSOR_SIZE_OPT cursor_size, bool sync)
 Configure Cursor.
 
void * IP_LCD_Cursor_GetImageBufferAddress (IP_LCD_001_Type *LCDx, uint8_t cursor_num)
 Get Internal Cursor Image Buffer Address.
 
void IP_LCD_Cursor_Enable (IP_LCD_001_Type *LCDx, uint8_t cursor_num, FunctionalState OnOff)
 Enable Cursor.
 
void IP_LCD_Cursor_LoadPalette0 (IP_LCD_001_Type *LCDx, uint32_t palette_color)
 Load Cursor Palette.
 
void IP_LCD_Cursor_LoadPalette1 (IP_LCD_001_Type *LCDx, uint32_t palette_color)
 Load Cursor Palette.
 
void IP_LCD_Cursor_SetPos (IP_LCD_001_Type *LCDx, uint16_t x, uint16_t y)
 Set Cursor Position.
 
void IP_LCD_Cursor_SetClip (IP_LCD_001_Type *LCDx, uint16_t x, uint16_t y)
 Set Cursor Clipping Position.
 
void IP_LCD_Color_LoadPalette (IP_LCD_001_Type *LCDx, uint32_t *palette_addr, uint32_t index)
 Load a color Palette entry.