Initialization and Configuration functions.
More...
Initialization and Configuration functions.
===============================================================================
##### Initialization and Configuration functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Initialize and configure the LTDC
◆ HAL_LTDCEx_StructInitFromAdaptedCommandConfig()
Retrieve common parameters from DSI Adapted command mode configuration structure.
- Parameters
-
| hltdc | pointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC. |
| CmdCfg | pointer to a DSI_CmdCfgTypeDef structure that contains the DSI command mode configuration parameters |
- Note
- The implementation of this function is taking into account the LTDC polarities inversion as described in the current LTDC specification
- Return values
-
Definition at line 107 of file stm32l4xx_hal_ltdc_ex.c.
117 hltdc->Init.DEPolarity = (CmdCfg->
DEPolarity == DSI_DATA_ENABLE_ACTIVE_HIGH) ? LTDC_DEPOLARITY_AL : LTDC_DEPOLARITY_AH;
118 hltdc->Init.VSPolarity = (CmdCfg->
VSPolarity == DSI_VSYNC_ACTIVE_HIGH) ? LTDC_VSPOLARITY_AL : LTDC_VSPOLARITY_AH;
119 hltdc->Init.HSPolarity = (CmdCfg->
HSPolarity == DSI_HSYNC_ACTIVE_HIGH) ? LTDC_HSPOLARITY_AL : LTDC_HSPOLARITY_AH;
◆ HAL_LTDCEx_StructInitFromVideoConfig()
Retrieve common parameters from DSI Video mode configuration structure.
- Parameters
-
| hltdc | pointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC. |
| VidCfg | pointer to a DSI_VidCfgTypeDef structure that contains the DSI video mode configuration parameters |
- Note
- The implementation of this function is taking into account the LTDC polarities inversion as described in the current LTDC specification
- Return values
-
Definition at line 71 of file stm32l4xx_hal_ltdc_ex.c.
79 hltdc->Init.DEPolarity = (VidCfg->
DEPolarity == DSI_DATA_ENABLE_ACTIVE_HIGH) ? LTDC_DEPOLARITY_AL : LTDC_DEPOLARITY_AH;
80 hltdc->Init.VSPolarity = (VidCfg->
VSPolarity == DSI_VSYNC_ACTIVE_HIGH) ? LTDC_VSPOLARITY_AH : LTDC_VSPOLARITY_AL;
81 hltdc->Init.HSPolarity = (VidCfg->
HSPolarity == DSI_HSYNC_ACTIVE_HIGH) ? LTDC_HSPOLARITY_AH : LTDC_HSPOLARITY_AL;
uint32_t VerticalFrontPorch
uint32_t VerticalSyncActive
uint32_t VerticalBackPorch