STM32L4xx_HAL_Driver  1.14.0
Peripheral State methods

LCD State functions. More...

Functions

HAL_LCD_StateTypeDef HAL_LCD_GetState (LCD_HandleTypeDef *hlcd)
 Return the LCD handle state. More...
 
uint32_t HAL_LCD_GetError (LCD_HandleTypeDef *hlcd)
 Return the LCD error code. More...
 

Detailed Description

LCD State functions.

 ===============================================================================
                      ##### Peripheral State functions #####
 ===============================================================================
    [..]
     This subsection provides a set of functions allowing to control the LCD:
      (+) HAL_LCD_GetState() API can be helpful to check in run-time the state of the LCD peripheral State.
      (+) HAL_LCD_GetError() API to return the LCD error code.

Function Documentation

◆ HAL_LCD_GetError()

uint32_t HAL_LCD_GetError ( LCD_HandleTypeDef hlcd)

Return the LCD error code.

Parameters
hlcdLCD handle
Return values
LCDError Code

Definition at line 551 of file stm32l4xx_hal_lcd.c.

552 {
553  return hlcd->ErrorCode;
554 }
__IO uint32_t ErrorCode

◆ HAL_LCD_GetState()

HAL_LCD_StateTypeDef HAL_LCD_GetState ( LCD_HandleTypeDef hlcd)

Return the LCD handle state.

Parameters
hlcdLCD handle
Return values
HALstate

Definition at line 540 of file stm32l4xx_hal_lcd.c.

541 {
542  /* Return LCD handle state */
543  return hlcd->State;
544 }
__IO HAL_LCD_StateTypeDef State