LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CHIP: LPC18xx/43xx LCD driver

Functions

STATIC INLINE void Chip_LCD_Init (LCD_Config_Type *LCD_ConfigStruct)
 Initialize the LCD controller.
 
STATIC INLINE void Chip_LCD_Power (FunctionalState OnOff)
 Power the LCD Panel (power pin)
 
STATIC INLINE void Chip_LCD_Enable (FunctionalState EnDis)
 Enable/Disable the LCD Controller.
 
STATIC INLINE void Chip_LCD_SetUPFrameBuffer (void *buffer)
 Set LCD Upper Panel Frame Buffer for Single Panel or Upper Panel Frame Buffer for Dual Panel.
 
STATIC INLINE void Chip_LCD_SetLPFrameBuffer (void *buffer)
 Set LCD Lower Panel Frame Buffer for Dual Panel.
 
void Chip_LCD_Cursor_Config (LCD_CURSOR_SIZE_OPT cursor_size, bool sync)
 Configure Cursor.
 
STATIC INLINE void Chip_LCD_Cursor_Enable (uint8_t cursor_num, FunctionalState OnOff)
 Enable Cursor.
 
STATIC INLINE void Chip_LCD_Cursor_LoadPalette0 (uint32_t palette_color)
 Load Cursor Palette.
 
STATIC INLINE void Chip_LCD_Cursor_LoadPalette1 (uint32_t palette_color)
 Load Cursor Palette.
 
STATIC INLINE void Chip_LCD_Cursor_SetPos (uint16_t x, uint16_t y)
 Set Cursor Position.
 
STATIC INLINE void Chip_LCD_Cursor_SetClip (uint16_t x, uint16_t y)
 Set Cursor Clipping Position.
 
STATIC INLINE void Chip_LCD_EnableInts (uint32_t ints)
 Enable Controller Interrupt.
 
STATIC INLINE void Chip_LCD_DisableInts (uint32_t ints)
 Disable Controller Interrupt.
 
STATIC INLINE void Chip_LCD_ClearInts (uint32_t ints)
 Clear Controller Interrupt.
 
void Chip_LCD_Cursor_WriteImage (uint8_t cursor_num, void *Image)
 Write Cursor Image into Internal Cursor Image Buffer.
 
void Chip_LCD_LoadPalette (void *palette)
 Load LCD Palette.
 

Detailed Description

Function Documentation

STATIC INLINE void Chip_LCD_ClearInts ( uint32_t  ints)

Clear Controller Interrupt.

Parameters
ints: OR'ed interrupt bits to clear
Returns
None

Definition at line 188 of file lcd_18xx_43xx.h.

void Chip_LCD_Cursor_Config ( LCD_CURSOR_SIZE_OPT  cursor_size,
bool  sync 
)

Configure Cursor.

Parameters
cursor_size: specify size of cursor
  • LCD_CURSOR_32x32 :cursor size is 32x32 pixels
  • LCD_CURSOR_64x64 :cursor size is 64x64 pixels
sync: cursor sync mode
  • TRUE :cursor sync to the frame sync pulse
  • FALSE :cursor async mode
Returns
None

Definition at line 53 of file lcd_18xx_43xx.c.

STATIC INLINE void Chip_LCD_Cursor_Enable ( uint8_t  cursor_num,
FunctionalState  OnOff 
)

Enable Cursor.

Parameters
cursor_num: specify number of cursor is going to be written this param must < 4
OnOff: true to turn on LCD, false to turn off
Returns
None

Definition at line 116 of file lcd_18xx_43xx.h.

STATIC INLINE void Chip_LCD_Cursor_LoadPalette0 ( uint32_t  palette_color)

Load Cursor Palette.

Parameters
palette_color: cursor palette 0 value
Returns
None

Definition at line 126 of file lcd_18xx_43xx.h.

STATIC INLINE void Chip_LCD_Cursor_LoadPalette1 ( uint32_t  palette_color)

Load Cursor Palette.

Parameters
palette_color: cursor palette 1 value
Returns
None

Definition at line 136 of file lcd_18xx_43xx.h.

STATIC INLINE void Chip_LCD_Cursor_SetClip ( uint16_t  x,
uint16_t  y 
)

Set Cursor Clipping Position.

Parameters
x: horizontal position, should be in range: 0..63
y: vertical position, should be in range: 0..63
Returns
None

Definition at line 158 of file lcd_18xx_43xx.h.

STATIC INLINE void Chip_LCD_Cursor_SetPos ( uint16_t  x,
uint16_t  y 
)

Set Cursor Position.

Parameters
x: horizontal position
y: vertical position
Returns
None

Definition at line 147 of file lcd_18xx_43xx.h.

void Chip_LCD_Cursor_WriteImage ( uint8_t  cursor_num,
void *  Image 
)

Write Cursor Image into Internal Cursor Image Buffer.

Parameters
cursor_num: Cursor index
Image: Pointer to image data
Returns
None

Definition at line 60 of file lcd_18xx_43xx.c.

STATIC INLINE void Chip_LCD_DisableInts ( uint32_t  ints)

Disable Controller Interrupt.

Parameters
ints: OR'ed interrupt bits to disable
Returns
None

Definition at line 178 of file lcd_18xx_43xx.h.

STATIC INLINE void Chip_LCD_Enable ( FunctionalState  EnDis)

Enable/Disable the LCD Controller.

Parameters
EnDis: true to enable, false to disable
Returns
None

Definition at line 71 of file lcd_18xx_43xx.h.

STATIC INLINE void Chip_LCD_EnableInts ( uint32_t  ints)

Enable Controller Interrupt.

Parameters
ints: OR'ed interrupt bits to enable
Returns
None

Definition at line 168 of file lcd_18xx_43xx.h.

STATIC INLINE void Chip_LCD_Init ( LCD_Config_Type LCD_ConfigStruct)

Initialize the LCD controller.

Parameters
LCD_ConfigStruct: Pointer to LCD configuration
Returns
LCD_FUNC_OK is executed successfully or LCD_FUNC_ERR on error

Definition at line 51 of file lcd_18xx_43xx.h.

void Chip_LCD_LoadPalette ( void *  palette)

Load LCD Palette.

Parameters
palette: Address of palette table to load
Returns
None

Definition at line 86 of file lcd_18xx_43xx.c.

STATIC INLINE void Chip_LCD_Power ( FunctionalState  OnOff)

Power the LCD Panel (power pin)

Parameters
OnOff: true to power on, false to power off
Returns
None

Definition at line 61 of file lcd_18xx_43xx.h.

STATIC INLINE void Chip_LCD_SetLPFrameBuffer ( void *  buffer)

Set LCD Lower Panel Frame Buffer for Dual Panel.

Parameters
buffer: address of buffer
Returns
None

Definition at line 92 of file lcd_18xx_43xx.h.

STATIC INLINE void Chip_LCD_SetUPFrameBuffer ( void *  buffer)

Set LCD Upper Panel Frame Buffer for Single Panel or Upper Panel Frame Buffer for Dual Panel.

Parameters
buffer: address of buffer
Returns
None

Definition at line 82 of file lcd_18xx_43xx.h.