NANO102/112 BSP V3.03.003
The Board Support Package for Nano102/112 Series
Macros | Enumerations | Functions
lcd.h File Reference

Nano102/112 series LCD driver header file. More...

#include <stdint.h>
Include dependency graph for lcd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LCD_FREQ_DIV32   ((uint32_t) 0x00000000)
 
#define LCD_FREQ_DIV64   ((uint32_t) 0x00000010)
 
#define LCD_FREQ_DIV96   ((uint32_t) 0x00000020)
 
#define LCD_FREQ_DIV128   ((uint32_t) 0x00000030)
 
#define LCD_FREQ_DIV192   ((uint32_t) 0x00000040)
 
#define LCD_FREQ_DIV256   ((uint32_t) 0x00000050)
 
#define LCD_FREQ_DIV384   ((uint32_t) 0x00000060)
 
#define LCD_FREQ_DIV512   ((uint32_t) 0x00000070)
 
#define LCD_MUX_STATIC   ((uint32_t) 0x00000000)
 
#define LCD_MUX_ONE_SECOND   ((uint32_t) 0x00000002)
 
#define LCD_MUX_ONE_THIRD   ((uint32_t) 0x00000004)
 
#define LCD_MUX_ONE_FOURTH   ((uint32_t) 0x00000006)
 
#define LCD_MUX_ONE_FIFTH   ((uint32_t) 0x00000008)
 
#define LCD_MUX_ONE_SIXTH   ((uint32_t) 0x0000000A)
 
#define LCD_BIAS_STATIC   ((uint32_t) 0x00000000)
 
#define LCD_BIAS_HALF   ((uint32_t) 0x00000002)
 
#define LCD_BIAS_THIRD   ((uint32_t) 0x00000004)
 
#define LCD_CPUMP_DIV1   ((uint32_t) 0x00000000)
 
#define LCD_CPUMP_DIV2   ((uint32_t) 0x00000800)
 
#define LCD_CPUMP_DIV4   ((uint32_t) 0x00001000)
 
#define LCD_CPUMP_DIV8   ((uint32_t) 0x00001800)
 
#define LCD_CPUMP_DIV16   ((uint32_t) 0x00002000)
 
#define LCD_CPUMP_DIV32   ((uint32_t) 0x00002800)
 
#define LCD_CPUMP_DIV64   ((uint32_t) 0x00003000)
 
#define LCD_CPUMP_DIV128   ((uint32_t) 0x00003800)
 
#define LCD_CPVOl_2_7V   ((uint32_t) 0x00000000)
 
#define LCD_CPVOl_2_8V   ((uint32_t) 0x00000100)
 
#define LCD_CPVOl_2_9V   ((uint32_t) 0x00000200)
 
#define LCD_CPVOl_3V   ((uint32_t) 0x00000300)
 
#define LCD_CPVOl_3_1V   ((uint32_t) 0x00000400)
 
#define LCD_CPVOl_3_2V   ((uint32_t) 0x00000500)
 
#define LCD_CPVOl_3_3V   ((uint32_t) 0x00000600)
 
#define LCD_CPVOl_3_4V   ((uint32_t) 0x00000700)
 
#define LCD_FCPRESC_DIV1   ((uint32_t) 0x00000000)
 
#define LCD_FCPRESC_DIV2   ((uint32_t) 0x00000004)
 
#define LCD_FCPRESC_DIV4   ((uint32_t) 0x00000008)
 
#define LCD_FCPRESC_DIV8   ((uint32_t) 0x0000000C)
 
#define LCD_FRAMECOUNT_INT   ((uint32_t) 0x00000001)
 
#define LCD_POWERDOWN_INT   ((uint32_t) 0x00000002)
 
#define LCD_ALL_INT   ((uint32_t) 0x00000003)
 
#define LCD_GET_PD_INT_FLAG()   ((LCD->FCSTS & LCD_FCSTS_PDSTS_Msk) >> LCD_FCSTS_PDSTS_Pos)
 Get LCD Power Down interrupt flag. More...
 
#define LCD_CLR_PD_INT_FLAG()   (LCD->FCSTS = LCD_FCSTS_PDSTS_Msk)
 Clear LCD Power Down interrupt flag. More...
 
#define LCD_GET_FRAME_CNT_INT_FLAG()   ((LCD->FCSTS & LCD_FCSTS_FCSTS_Msk) >> LCD_FCSTS_FCSTS_Pos)
 Get LCD Frame Count interrupt flag. More...
 
#define LCD_CLR_FRAME_CNT_INT_FLAG()   (LCD->FCSTS = LCD_FCSTS_FCSTS_Msk)
 Clear LCD Frame Count interrupt flag. More...
 
#define LCD_ENABLE_PD_DISPLAY()   (LCD->CTL |= LCD_CTL_PDDISP_EN_Msk)
 Enable LCD Power Down Display function. More...
 
#define LCD_DISABLE_PD_DISPLAY()   (LCD->CTL &= ~LCD_CTL_PDDISP_EN_Msk)
 Disable LCD Power Down Display function. More...
 

Enumerations

enum  LCD_PanelType {
  LCD_C_TYPE = 0 ,
  LCD_EXTERNAL_R_TYPE = 1 ,
  LCD_INTERNAL_R_TYPE = 2 ,
  LCD_EXTERNAL_C_TYPE = 3
}
 

Functions

uint32_t LCD_EnableFrameCounter (uint32_t u32Count)
 Set Frame Count and Enable frame count. More...
 
void LCD_DisableFrameCounter (void)
 Disable frame count function. More...
 
uint32_t LCD_EnableBlink (uint32_t u32ms)
 Enable Blink function in LCD controller. More...
 
void LCD_DisableBlink (void)
 Disable Blink function in LCD controller. More...
 
void LCD_EnableInt (uint32_t IntSrc)
 This function is used to enable LCD interrupt. More...
 
void LCD_DisableInt (uint32_t IntSrc)
 This function is used to disable LCD specified interrupt. More...
 
uint32_t LCD_Open (uint32_t u32DrivingType, uint32_t u32ComNum, uint32_t u32BiasLevel, uint32_t u32FramerateDiv, uint32_t u32DrivingVol)
 LCD Initialization routine. More...
 
void LCD_SetPixel (uint32_t u32Com, uint32_t u32Seg, uint32_t u32OnFlag)
 Enables a segment on the LCD display. More...
 
void LCD_SetAllPixels (uint32_t u32OnOff)
 LCD Enable/Disable all segments. More...
 
void LCD_Close (void)
 The function is used to disable LCD controller. More...
 
static __INLINE void LCD_EnableDisplay (void)
 Enable LCD controller. More...
 
static __INLINE void LCD_DisableDisplay (void)
 Disable LCD controller. More...
 

Detailed Description

Nano102/112 series LCD driver header file.

Version
V1.00
Revision
8
Date
15/06/17 2:03p
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2013~2014 Nuvoton Technology Corp. All rights reserved.

Definition in file lcd.h.