STM8L15x Standard Peripherals Drivers
|
Initialization and Configuration functions. More...
Functions | |
void | LCD_BlinkConfig (LCD_BlinkMode_TypeDef LCD_BlinkMode, LCD_BlinkFrequency_TypeDef LCD_BlinkFrequency) |
Configures the LCD Blink mode and Blink frequency. | |
void | LCD_Cmd (FunctionalState NewState) |
Enables or disables the LCD Controller. | |
void | LCD_ContrastConfig (LCD_Contrast_TypeDef LCD_Contrast) |
Configures the LCD Contrast. | |
void | LCD_DeadTimeConfig (LCD_DeadTime_TypeDef LCD_DeadTime) |
Configures the LCD dead time. | |
void | LCD_DeInit (void) |
Deinitializes the LCD Controller registers to their default reset values. | |
void | LCD_HighDriveCmd (FunctionalState NewState) |
Enables or disables the low resistance divider. | |
void | LCD_Init (LCD_Prescaler_TypeDef LCD_Prescaler, LCD_Divider_TypeDef LCD_Divider, LCD_Duty_TypeDef LCD_Duty, LCD_Bias_TypeDef LCD_Bias, LCD_VoltageSource_TypeDef LCD_VoltageSource) |
Initializes the LCD according to the specified parameters. | |
void | LCD_PortMaskConfig (LCD_PortMaskRegister_TypeDef LCD_PortMaskRegister, uint8_t LCD_Mask) |
Configures the LCD Port Mask. | |
void | LCD_PulseOnDurationConfig (LCD_PulseOnDuration_TypeDef LCD_PulseOnDuration) |
Configures the LCD pulses on duration. |
Detailed Description
Initialization and Configuration functions.
=============================================================================== Initialization and Configuration functions ===============================================================================
Function Documentation
void LCD_BlinkConfig | ( | LCD_BlinkMode_TypeDef | LCD_BlinkMode, |
LCD_BlinkFrequency_TypeDef | LCD_BlinkFrequency | ||
) |
Configures the LCD Blink mode and Blink frequency.
Definition at line 385 of file stm8l15x_lcd.c.
References IS_LCD_BLINK_FREQUENCY, IS_LCD_BLINK_MODE, LCD, LCD_CR1_BLINK, and LCD_CR1_BLINKF.
void LCD_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the LCD Controller.
Definition at line 273 of file stm8l15x_lcd.c.
References DISABLE, IS_FUNCTIONAL_STATE, LCD, and LCD_CR3_LCDEN.
void LCD_ContrastConfig | ( | LCD_Contrast_TypeDef | LCD_Contrast | ) |
Configures the LCD Contrast.
Definition at line 413 of file stm8l15x_lcd.c.
References IS_LCD_CONTRAST, LCD, and LCD_CR2_CC.
void LCD_DeadTimeConfig | ( | LCD_DeadTime_TypeDef | LCD_DeadTime | ) |
Configures the LCD dead time.
Definition at line 352 of file stm8l15x_lcd.c.
References IS_LCD_DEAD_TIME, LCD, and LCD_CR3_DEAD.
void LCD_DeInit | ( | void | ) |
Deinitializes the LCD Controller registers to their default reset values.
Definition at line 115 of file stm8l15x_lcd.c.
References LCD, LCD_CR1_RESET_VALUE, LCD_CR2_RESET_VALUE, LCD_CR3_RESET_VALUE, LCD_CR4_RESET_VALUE, LCD_FRQ_RESET_VALUE, LCD_PM_RESET_VALUE, and LCD_RAM_RESET_VALUE.
void LCD_HighDriveCmd | ( | FunctionalState | NewState | ) |
Enables or disables the low resistance divider.
Displays with high internal resistance may need a longer drive time to achieve satisfactory contrast. This function is useful in this case if some additional power consumption can be tolerated.
- Note:
- When this mode is enabled, the PulseOn Duration (PON) have to be programmed to 1/CK_PS (LCD_PulseOnDuration_1).
Definition at line 299 of file stm8l15x_lcd.c.
References DISABLE, IS_FUNCTIONAL_STATE, LCD, and LCD_CR2_HD.
void LCD_Init | ( | LCD_Prescaler_TypeDef | LCD_Prescaler, |
LCD_Divider_TypeDef | LCD_Divider, | ||
LCD_Duty_TypeDef | LCD_Duty, | ||
LCD_Bias_TypeDef | LCD_Bias, | ||
LCD_VoltageSource_TypeDef | LCD_VoltageSource | ||
) |
Initializes the LCD according to the specified parameters.
Definition at line 194 of file stm8l15x_lcd.c.
References IS_LCD_BIAS, IS_LCD_CLOCK_DIVIDER, IS_LCD_CLOCK_PRESCALER, IS_LCD_DUTY, IS_LCD_VOLTAGE_SOURCE, LCD, LCD_Bias_1_4, LCD_CR1_B2, LCD_CR1_DUTY, LCD_CR2_VSEL, LCD_CR4_B4, LCD_CR4_DUTY8, LCD_Duty_1_8, LCD_FRQ_DIV, and LCD_FRQ_PS.
void LCD_PortMaskConfig | ( | LCD_PortMaskRegister_TypeDef | LCD_PortMaskRegister, |
uint8_t | LCD_Mask | ||
) |
Configures the LCD Port Mask.
Definition at line 256 of file stm8l15x_lcd.c.
References IS_LCD_PORT_MASK, and LCD.
void LCD_PulseOnDurationConfig | ( | LCD_PulseOnDuration_TypeDef | LCD_PulseOnDuration | ) |
Configures the LCD pulses on duration.
Definition at line 329 of file stm8l15x_lcd.c.
References IS_LCD_PULSE_DURATION, LCD, and LCD_CR2_PON.