|
STM32L4xx_HAL_Driver
1.14.0
|
LCD RAM functions. More...
Functions | |
| HAL_StatusTypeDef | HAL_LCD_Write (LCD_HandleTypeDef *hlcd, uint32_t RAMRegisterIndex, uint32_t RAMRegisterMask, uint32_t Data) |
| Write a word in the specific LCD RAM. More... | |
| HAL_StatusTypeDef | HAL_LCD_Clear (LCD_HandleTypeDef *hlcd) |
| Clear the LCD RAM registers. More... | |
| HAL_StatusTypeDef | HAL_LCD_UpdateDisplayRequest (LCD_HandleTypeDef *hlcd) |
| Enable the Update Display Request. More... | |
LCD RAM functions.
===============================================================================
##### IO operation functions #####
===============================================================================
[..] Using its double buffer memory the LCD controller ensures the coherency of the
displayed information without having to use interrupts to control LCD_RAM
modification.
The application software can access the first buffer level (LCD_RAM) through
the APB interface. Once it has modified the LCD_RAM using the HAL_LCD_Write() API,
it sets the UDR flag in the LCD_SR register using the HAL_LCD_UpdateDisplayRequest() API.
This UDR flag (update display request) requests the updated information to be
moved into the second buffer level (LCD_DISPLAY).
This operation is done synchronously with the frame (at the beginning of the
next frame), until the update is completed, the LCD_RAM is write protected and
the UDR flag stays high.
Once the update is completed another flag (UDD - Update Display Done) is set and
generates an interrupt if the UDDIE bit in the LCD_FCR register is set.
The time it takes to update LCD_DISPLAY is, in the worst case, one odd and one
even frame.
The update will not occur (UDR = 1 and UDD = 0) until the display is
enabled (LCDEN = 1). | HAL_StatusTypeDef HAL_LCD_Clear | ( | LCD_HandleTypeDef * | hlcd | ) |
Clear the LCD RAM registers.
| hlcd | LCD handle |
| None |
< Wait Until the LCD is ready
Definition at line 425 of file stm32l4xx_hal_lcd.c.
| HAL_StatusTypeDef HAL_LCD_UpdateDisplayRequest | ( | LCD_HandleTypeDef * | hlcd | ) |
Enable the Update Display Request.
| hlcd | LCD handle |
| None |
< Wait Until the LCD display is done
Definition at line 481 of file stm32l4xx_hal_lcd.c.
| HAL_StatusTypeDef HAL_LCD_Write | ( | LCD_HandleTypeDef * | hlcd, |
| uint32_t | RAMRegisterIndex, | ||
| uint32_t | RAMRegisterMask, | ||
| uint32_t | Data | ||
| ) |
Write a word in the specific LCD RAM.
| hlcd | LCD handle |
| RAMRegisterIndex | specifies the LCD RAM Register. This parameter can be one of the following values:
|
| RAMRegisterMask | specifies the LCD RAM Register Data Mask. |
| Data | specifies LCD Data Value to be written. |
| None |
< Wait Until the LCD is ready
Definition at line 375 of file stm32l4xx_hal_lcd.c.