/** * @brief Sets an LCD Layer visible * @param LayerIndex: Visible Layer * @param State: New state of the specified layer * This parameter can be one of the following values: * @arg ENABLE * @arg DISABLE * @retval None */ void BSP_LCD_SetLayerVisible(uint32_t LayerIndex, FunctionalState State) { if (State == ENABLE) { __HAL_LTDC_LAYER_ENABLE(<dc_handle, LayerIndex); } else { __HAL_LTDC_LAYER_DISABLE(<dc_handle, LayerIndex); } __HAL_LTDC_RELOAD_CONFIG(<dc_handle); }
/** * @brief Sets an LCD Layer visible without reloading. * @param LayerIndex: Visible Layer * @param State: New state of the specified layer * This parameter can be one of the following values: * @arg ENABLE * @arg DISABLE * @retval None */ void BSP_LCD_SetLayerVisible_NoReload(uint32_t LayerIndex, FunctionalState State) { if(State == ENABLE) { __HAL_LTDC_LAYER_ENABLE(&LtdcHandler, LayerIndex); } else { __HAL_LTDC_LAYER_DISABLE(&LtdcHandler, LayerIndex); } /* Do not Sets the Reload */ }