STM32L443xx HAL User Manual
|
Defines | |
#define | __HAL_LCD_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_LCD_STATE_RESET) |
Reset LCD handle state. | |
#define | __HAL_LCD_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, LCD_CR_LCDEN) |
Enable the LCD peripheral. | |
#define | __HAL_LCD_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR, LCD_CR_LCDEN) |
Disable the LCD peripheral. | |
#define | __HAL_LCD_HIGHDRIVER_ENABLE(__HANDLE__) |
Enable the low resistance divider. | |
#define | __HAL_LCD_HIGHDRIVER_DISABLE(__HANDLE__) |
Disable the low resistance divider. | |
#define | __HAL_LCD_VOLTAGE_BUFFER_ENABLE(__HANDLE__) SET_BIT((__HANDLE__)->Instance->CR, LCD_CR_BUFEN) |
Enable the voltage output buffer for higher driving capability. | |
#define | __HAL_LCD_VOLTAGE_BUFFER_DISABLE(__HANDLE__) CLEAR_BIT((__HANDLE__)->Instance->CR, LCD_CR_BUFEN) |
Disable the voltage output buffer for higher driving capability. | |
#define | __HAL_LCD_PULSEONDURATION_CONFIG(__HANDLE__, __DURATION__) |
Configure the LCD pulse on duration. | |
#define | __HAL_LCD_DEADTIME_CONFIG(__HANDLE__, __DEADTIME__) |
Configure the LCD dead time. | |
#define | __HAL_LCD_CONTRAST_CONFIG(__HANDLE__, __CONTRAST__) |
Configure the LCD contrast. | |
#define | __HAL_LCD_BLINK_CONFIG(__HANDLE__, __BLINKMODE__, __BLINKFREQUENCY__) |
Configure the LCD Blink mode and Blink frequency. | |
#define | __HAL_LCD_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
Enable the specified LCD interrupt. | |
#define | __HAL_LCD_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
Disable the specified LCD interrupt. | |
#define | __HAL_LCD_GET_IT_SOURCE(__HANDLE__, __IT__) (((__HANDLE__)->Instance->FCR) & (__IT__)) |
Check whether the specified LCD interrupt source is enabled or not. | |
#define | __HAL_LCD_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Check whether the specified LCD flag is set or not. | |
#define | __HAL_LCD_CLEAR_FLAG(__HANDLE__, __FLAG__) WRITE_REG((__HANDLE__)->Instance->CLR, (__FLAG__)) |
Clear the specified LCD pending flag. |
#define __HAL_LCD_BLINK_CONFIG | ( | __HANDLE__, | |
__BLINKMODE__, | |||
__BLINKFREQUENCY__ | |||
) |
do { \ MODIFY_REG((__HANDLE__)->Instance->FCR, (LCD_FCR_BLINKF | LCD_FCR_BLINK), ((__BLINKMODE__) | (__BLINKFREQUENCY__))); \ LCD_WaitForSynchro(__HANDLE__); \ } while(0)
Configure the LCD Blink mode and Blink frequency.
__HANDLE__ | specifies the LCD Handle. |
__BLINKMODE__ | specifies the LCD blink mode. This parameter can be one of the following values:
|
__BLINKFREQUENCY__ | specifies the LCD blink frequency.
|
None |
Definition at line 493 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | WRITE_REG((__HANDLE__)->Instance->CLR, (__FLAG__)) |
Clear the specified LCD pending flag.
__HANDLE__ | specifies the LCD Handle. |
__FLAG__ | specifies the flag to clear. This parameter can be any combination of the following values:
|
None |
Definition at line 570 of file stm32l4xx_hal_lcd.h.
Referenced by HAL_LCD_UpdateDisplayRequest().
#define __HAL_LCD_CONTRAST_CONFIG | ( | __HANDLE__, | |
__CONTRAST__ | |||
) |
do { \ MODIFY_REG((__HANDLE__)->Instance->FCR, LCD_FCR_CC, (__CONTRAST__)); \ LCD_WaitForSynchro(__HANDLE__); \ } while(0)
Configure the LCD contrast.
__HANDLE__ | specifies the LCD Handle. |
__CONTRAST__ | specifies the LCD Contrast. This parameter can be one of the following values:
|
None |
Definition at line 465 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_DEADTIME_CONFIG | ( | __HANDLE__, | |
__DEADTIME__ | |||
) |
do { \ MODIFY_REG((__HANDLE__)->Instance->FCR, LCD_FCR_DEAD, (__DEADTIME__)); \ LCD_WaitForSynchro(__HANDLE__); \ } while(0)
Configure the LCD dead time.
__HANDLE__ | specifies the LCD Handle. |
__DEADTIME__ | specifies the LCD dead time. This parameter can be one of the following values:
|
None |
Definition at line 444 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR, LCD_CR_LCDEN) |
Disable the LCD peripheral.
__HANDLE__ | specifies the LCD Handle. |
None |
Definition at line 368 of file stm32l4xx_hal_lcd.h.
Referenced by HAL_LCD_Init().
#define __HAL_LCD_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
do { \ CLEAR_BIT((__HANDLE__)->Instance->FCR, (__INTERRUPT__)); \ LCD_WaitForSynchro(__HANDLE__); \ } while(0)
Disable the specified LCD interrupt.
__HANDLE__ | specifies the LCD Handle. |
__INTERRUPT__ | specifies the LCD interrupt source to be disabled. This parameter can be one of the following values:
|
None |
Definition at line 521 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR, LCD_CR_LCDEN) |
Enable the LCD peripheral.
__HANDLE__ | specifies the LCD Handle. |
None |
Definition at line 362 of file stm32l4xx_hal_lcd.h.
Referenced by HAL_LCD_Init().
#define __HAL_LCD_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) |
do { \ SET_BIT((__HANDLE__)->Instance->FCR, (__INTERRUPT__)); \ LCD_WaitForSynchro(__HANDLE__); \ } while(0)
Enable the specified LCD interrupt.
__HANDLE__ | specifies the LCD Handle. |
__INTERRUPT__ | specifies the LCD interrupt source to be enabled. This parameter can be one of the following values:
|
None |
Definition at line 507 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Check whether the specified LCD flag is set or not.
__HANDLE__ | specifies the LCD Handle. |
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of __FLAG__ (TRUE or FALSE). |
Definition at line 560 of file stm32l4xx_hal_lcd.h.
Referenced by HAL_LCD_Clear(), HAL_LCD_Init(), HAL_LCD_UpdateDisplayRequest(), HAL_LCD_Write(), and LCD_WaitForSynchro().
#define __HAL_LCD_GET_IT_SOURCE | ( | __HANDLE__, | |
__IT__ | |||
) | (((__HANDLE__)->Instance->FCR) & (__IT__)) |
Check whether the specified LCD interrupt source is enabled or not.
__HANDLE__ | specifies the LCD Handle. |
__IT__ | specifies the LCD interrupt source to check. This parameter can be one of the following values:
|
The | state of __IT__ (TRUE or FALSE). |
Definition at line 538 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_HIGHDRIVER_DISABLE | ( | __HANDLE__ | ) |
do { \ CLEAR_BIT((__HANDLE__)->Instance->FCR, LCD_FCR_HD); \ LCD_WaitForSynchro(__HANDLE__); \ } while(0)
Disable the low resistance divider.
__HANDLE__ | specifies the LCD Handle. |
None |
Definition at line 389 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_HIGHDRIVER_ENABLE | ( | __HANDLE__ | ) |
do { \ SET_BIT((__HANDLE__)->Instance->FCR, LCD_FCR_HD); \ LCD_WaitForSynchro(__HANDLE__); \ } while(0)
Enable the low resistance divider.
__HANDLE__ | specifies the LCD Handle. |
None |
Definition at line 379 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_PULSEONDURATION_CONFIG | ( | __HANDLE__, | |
__DURATION__ | |||
) |
do { \ MODIFY_REG((__HANDLE__)->Instance->FCR, LCD_FCR_PON, (__DURATION__)); \ LCD_WaitForSynchro(__HANDLE__); \ } while(0)
Configure the LCD pulse on duration.
__HANDLE__ | specifies the LCD Handle. |
__DURATION__ | specifies the LCD pulse on duration in terms of CK_PS (prescaled LCD clock period) pulses. This parameter can be one of the following values:
|
None |
Definition at line 423 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_LCD_STATE_RESET) |
Reset LCD handle state.
__HANDLE__ | specifies the LCD Handle. |
None |
Definition at line 356 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_VOLTAGE_BUFFER_DISABLE | ( | __HANDLE__ | ) | CLEAR_BIT((__HANDLE__)->Instance->CR, LCD_CR_BUFEN) |
Disable the voltage output buffer for higher driving capability.
__HANDLE__ | specifies the LCD Handle. |
None |
Definition at line 405 of file stm32l4xx_hal_lcd.h.
#define __HAL_LCD_VOLTAGE_BUFFER_ENABLE | ( | __HANDLE__ | ) | SET_BIT((__HANDLE__)->Instance->CR, LCD_CR_BUFEN) |
Enable the voltage output buffer for higher driving capability.
__HANDLE__ | specifies the LCD Handle. |
None |
Definition at line 399 of file stm32l4xx_hal_lcd.h.