/** * @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(&hLtdcHandler, LayerIndex); } else { __HAL_LTDC_LAYER_DISABLE(&hLtdcHandler, LayerIndex); } __HAL_LTDC_RELOAD_CONFIG(&hLtdcHandler); }
/** * @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 */ }