![]() |
NANO102/112 BSP V3.03.003
The Board Support Package for Nano102/112 Series
|
Macros | |
#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... | |
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... | |
#define LCD_CLR_FRAME_CNT_INT_FLAG | ( | ) | (LCD->FCSTS = LCD_FCSTS_FCSTS_Msk) |
#define LCD_CLR_PD_INT_FLAG | ( | ) | (LCD->FCSTS = LCD_FCSTS_PDSTS_Msk) |
#define LCD_DISABLE_PD_DISPLAY | ( | ) | (LCD->CTL &= ~LCD_CTL_PDDISP_EN_Msk) |
#define LCD_ENABLE_PD_DISPLAY | ( | ) | (LCD->CTL |= LCD_CTL_PDDISP_EN_Msk) |
#define LCD_GET_FRAME_CNT_INT_FLAG | ( | ) | ((LCD->FCSTS & LCD_FCSTS_FCSTS_Msk) >> LCD_FCSTS_FCSTS_Pos) |
#define LCD_GET_PD_INT_FLAG | ( | ) | ((LCD->FCSTS & LCD_FCSTS_PDSTS_Msk) >> LCD_FCSTS_PDSTS_Pos) |
void LCD_Close | ( | void | ) |
void LCD_DisableBlink | ( | void | ) |
|
static |
void LCD_DisableFrameCounter | ( | void | ) |
void LCD_DisableInt | ( | uint32_t | IntSrc | ) |
This function is used to disable LCD specified interrupt.
[in] | IntSrc | Interrupt Source: LCD_FRAMECOUNT_INT / LCD_POWERDOWN_INT / LCD_ALL_INT |
uint32_t LCD_EnableBlink | ( | uint32_t | u32ms | ) |
|
static |
uint32_t LCD_EnableFrameCounter | ( | uint32_t | u32Count | ) |
void LCD_EnableInt | ( | uint32_t | IntSrc | ) |
This function is used to enable LCD interrupt.
[in] | IntSrc | Interrupt Source: LCD_FRAMECOUNT_INT / LCD_POWERDOWN_INT / LCD_ALL_INT |
uint32_t LCD_Open | ( | uint32_t | u32DrivingType, |
uint32_t | u32ComNum, | ||
uint32_t | u32BiasLevel, | ||
uint32_t | u32FramerateDiv, | ||
uint32_t | u32DrivingVol | ||
) |
LCD Initialization routine.
[in] | u32DrivingType | LCD driving type: LCD_C_TYPE / LCD_EXTERNAL_R_TYPE / LCD_INTERNAL_R_TYPE / LCD_EXTERNAL_C_TYPE |
[in] | u32ComNum | LCD Com number: 1 ~6 |
[in] | u32BiasLevel | LCD bias level: LCD_BIAS_STATIC / LCD_BIAS_HALF / LCD_BIAS_THIRD |
[in] | u32FramerateDiv | LCD frequency divider: LCD_FREQ_DIV32 / LCD_FREQ_DIV64 / LCD_FREQ_DIV96 / LCD_FREQ_DIV128 / LCD_FREQ_DIV192/ LCD_FREQ_DIV256 / LCD_FREQ_DIV384 / LCD_FREQ_DIV512 |
[in] | u32DrivingVol | LCD charge pump driving voltage: LCD_CPVOl_2_7V / LCD_CPVOl_2_8V / LCD_CPVOl_2_9V / LCD_CPVOl_3V / LCD_CPVOl_3_1V / LCD_CPVOl_3_2V / LCD_CPVOl_3_3V / LCD_CPVOl_3_4V |
Definition at line 287 of file lcd.c.
void LCD_SetAllPixels | ( | uint32_t | u32OnOff | ) |
void LCD_SetPixel | ( | uint32_t | u32Com, |
uint32_t | u32Seg, | ||
uint32_t | u32OnFlag | ||
) |