STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Peripheral Control functions

Peripheral Control functions. More...

Collaboration diagram for Peripheral Control functions:

Functions

HAL_StatusTypeDef HAL_LTDC_ConfigLayer (LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx)
 Configure the LTDC Layer according to the specified parameters in the LTDC_InitTypeDef and create the associated handle.
 
HAL_StatusTypeDef HAL_LTDC_SetWindowSize (LTDC_HandleTypeDef *hltdc, uint32_t XSize, uint32_t YSize, uint32_t LayerIdx)
 Set the LTDC window size.
 
HAL_StatusTypeDef HAL_LTDC_SetWindowPosition (LTDC_HandleTypeDef *hltdc, uint32_t X0, uint32_t Y0, uint32_t LayerIdx)
 Set the LTDC window position.
 
HAL_StatusTypeDef HAL_LTDC_SetPixelFormat (LTDC_HandleTypeDef *hltdc, uint32_t Pixelformat, uint32_t LayerIdx)
 Reconfigure the pixel format.
 
HAL_StatusTypeDef HAL_LTDC_SetAlpha (LTDC_HandleTypeDef *hltdc, uint32_t Alpha, uint32_t LayerIdx)
 Reconfigure the layer alpha value.
 
HAL_StatusTypeDef HAL_LTDC_SetAddress (LTDC_HandleTypeDef *hltdc, uint32_t Address, uint32_t LayerIdx)
 Reconfigure the frame buffer Address.
 
HAL_StatusTypeDef HAL_LTDC_SetPitch (LTDC_HandleTypeDef *hltdc, uint32_t LinePitchInPixels, uint32_t LayerIdx)
 Function used to reconfigure the pitch for specific cases where the attached LayerIdx buffer have a width that is larger than the one intended to be displayed on screen. Example of a buffer 800x480 attached to layer for which we want to read and display on screen only a portion 320x240 taken in the center of the buffer. The pitch in pixels will be in that case 800 pixels and not 320 pixels as initially configured by previous call to HAL_LTDC_ConfigLayer().
 
HAL_StatusTypeDef HAL_LTDC_ConfigColorKeying (LTDC_HandleTypeDef *hltdc, uint32_t RGBValue, uint32_t LayerIdx)
 Configure the color keying.
 
HAL_StatusTypeDef HAL_LTDC_ConfigCLUT (LTDC_HandleTypeDef *hltdc, uint32_t *pCLUT, uint32_t CLUTSize, uint32_t LayerIdx)
 Load the color lookup table.
 
HAL_StatusTypeDef HAL_LTDC_EnableColorKeying (LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx)
 Enable the color keying.
 
HAL_StatusTypeDef HAL_LTDC_DisableColorKeying (LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx)
 Disable the color keying.
 
HAL_StatusTypeDef HAL_LTDC_EnableCLUT (LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx)
 Enable the color lookup table.
 
HAL_StatusTypeDef HAL_LTDC_DisableCLUT (LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx)
 Disable the color lookup table.
 
HAL_StatusTypeDef HAL_LTDC_ProgramLineEvent (LTDC_HandleTypeDef *hltdc, uint32_t Line)
 Define the position of the line interrupt.
 
HAL_StatusTypeDef HAL_LTDC_EnableDither (LTDC_HandleTypeDef *hltdc)
 Enable Dither.
 
HAL_StatusTypeDef HAL_LTDC_DisableDither (LTDC_HandleTypeDef *hltdc)
 Disable Dither.
 
HAL_StatusTypeDef HAL_LTDC_Reload (LTDC_HandleTypeDef *hltdc, uint32_t ReloadType)
 Reload LTDC Layers configuration.
 
HAL_StatusTypeDef HAL_LTDC_ConfigLayer_NoReload (LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx)
 Configure the LTDC Layer according to the specified without reloading parameters in the LTDC_InitTypeDef and create the associated handle. Variant of the function HAL_LTDC_ConfigLayer without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_SetWindowSize_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t XSize, uint32_t YSize, uint32_t LayerIdx)
 Set the LTDC window size without reloading. Variant of the function HAL_LTDC_SetWindowSize without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_SetWindowPosition_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t X0, uint32_t Y0, uint32_t LayerIdx)
 Set the LTDC window position without reloading. Variant of the function HAL_LTDC_SetWindowPosition without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_SetPixelFormat_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t Pixelformat, uint32_t LayerIdx)
 Reconfigure the pixel format without reloading. Variant of the function HAL_LTDC_SetPixelFormat without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_SetAlpha_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t Alpha, uint32_t LayerIdx)
 Reconfigure the layer alpha value without reloading. Variant of the function HAL_LTDC_SetAlpha without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_SetAddress_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t Address, uint32_t LayerIdx)
 Reconfigure the frame buffer Address without reloading. Variant of the function HAL_LTDC_SetAddress without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_SetPitch_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t LinePitchInPixels, uint32_t LayerIdx)
 Function used to reconfigure the pitch for specific cases where the attached LayerIdx buffer have a width that is larger than the one intended to be displayed on screen. Example of a buffer 800x480 attached to layer for which we want to read and display on screen only a portion 320x240 taken in the center of the buffer. The pitch in pixels will be in that case 800 pixels and not 320 pixels as initially configured by previous call to HAL_LTDC_ConfigLayer().
 
HAL_StatusTypeDef HAL_LTDC_ConfigColorKeying_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t RGBValue, uint32_t LayerIdx)
 Configure the color keying without reloading. Variant of the function HAL_LTDC_ConfigColorKeying without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_EnableColorKeying_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx)
 Enable the color keying without reloading. Variant of the function HAL_LTDC_EnableColorKeying without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_DisableColorKeying_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx)
 Disable the color keying without reloading. Variant of the function HAL_LTDC_DisableColorKeying without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_EnableCLUT_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx)
 Enable the color lookup table without reloading. Variant of the function HAL_LTDC_EnableCLUT without immediate reload.
 
HAL_StatusTypeDef HAL_LTDC_DisableCLUT_NoReload (LTDC_HandleTypeDef *hltdc, uint32_t LayerIdx)
 Disable the color lookup table without reloading. Variant of the function HAL_LTDC_DisableCLUT without immediate reload.
 

Detailed Description

Peripheral Control functions.

 ===============================================================================
                    ##### Peripheral Control functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Configure the LTDC foreground or/and background parameters.
      (+) Set the active layer.
      (+) Configure the color keying.
      (+) Configure the C-LUT.
      (+) Enable / Disable the color keying.
      (+) Enable / Disable the C-LUT.
      (+) Update the layer position.
      (+) Update the layer size.
      (+) Update pixel format on the fly.
      (+) Update transparency on the fly.
      (+) Update address on the fly.

Function Documentation

◆ HAL_LTDC_ConfigLayer()

HAL_StatusTypeDef HAL_LTDC_ConfigLayer ( LTDC_HandleTypeDef * hltdc,
LTDC_LayerCfgTypeDef * pLayerCfg,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Configure the LTDC Layer according to the specified parameters in the LTDC_InitTypeDef and create the associated handle.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
pLayerCfgpointer to a LTDC_LayerCfgTypeDef structure that contains the configuration information for the Layer.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 831 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, LTDC_LayerCfgTypeDef::Alpha, LTDC_LayerCfgTypeDef::Alpha0, assert_param, LTDC_LayerCfgTypeDef::BlendingFactor1, LTDC_LayerCfgTypeDef::BlendingFactor2, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_LayerCfgTypeDef::ImageHeight, LTDC_LayerCfgTypeDef::ImageWidth, LTDC_HandleTypeDef::Instance, IS_LTDC_ALPHA, IS_LTDC_BLENDING_FACTOR1, IS_LTDC_BLENDING_FACTOR2, IS_LTDC_CFBLL, IS_LTDC_CFBLNBR, IS_LTDC_HCONFIGSP, IS_LTDC_HCONFIGST, IS_LTDC_LAYER, IS_LTDC_PIXEL_FORMAT, IS_LTDC_VCONFIGSP, IS_LTDC_VCONFIGST, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), LTDC_LayerCfgTypeDef::PixelFormat, LTDC_HandleTypeDef::State, LTDC_LayerCfgTypeDef::WindowX0, LTDC_LayerCfgTypeDef::WindowX1, LTDC_LayerCfgTypeDef::WindowY0, and LTDC_LayerCfgTypeDef::WindowY1.

◆ HAL_LTDC_SetWindowSize()

HAL_StatusTypeDef HAL_LTDC_SetWindowSize ( LTDC_HandleTypeDef * hltdc,
uint32_t XSize,
uint32_t YSize,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Set the LTDC window size.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
XSizeLTDC Pixel per line
YSizeLTDC Line number
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1166 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_LayerCfgTypeDef::ImageHeight, LTDC_LayerCfgTypeDef::ImageWidth, LTDC_HandleTypeDef::Instance, IS_LTDC_CFBLL, IS_LTDC_CFBLNBR, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), LTDC_HandleTypeDef::State, LTDC_LayerCfgTypeDef::WindowX0, LTDC_LayerCfgTypeDef::WindowX1, LTDC_LayerCfgTypeDef::WindowY0, and LTDC_LayerCfgTypeDef::WindowY1.

◆ HAL_LTDC_SetWindowPosition()

HAL_StatusTypeDef HAL_LTDC_SetWindowPosition ( LTDC_HandleTypeDef * hltdc,
uint32_t X0,
uint32_t Y0,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Set the LTDC window position.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
X0LTDC window X offset
Y0LTDC window Y offset
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1222 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_LayerCfgTypeDef::ImageHeight, LTDC_LayerCfgTypeDef::ImageWidth, LTDC_HandleTypeDef::Instance, IS_LTDC_CFBLL, IS_LTDC_CFBLNBR, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), LTDC_HandleTypeDef::State, LTDC_LayerCfgTypeDef::WindowX0, LTDC_LayerCfgTypeDef::WindowX1, LTDC_LayerCfgTypeDef::WindowY0, and LTDC_LayerCfgTypeDef::WindowY1.

◆ HAL_LTDC_SetPixelFormat()

HAL_StatusTypeDef HAL_LTDC_SetPixelFormat ( LTDC_HandleTypeDef * hltdc,
uint32_t Pixelformat,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Reconfigure the pixel format.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
Pixelformatnew pixel format value.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1).
Return values
HALstatus

Definition at line 1273 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_HandleTypeDef::Instance, IS_LTDC_LAYER, IS_LTDC_PIXEL_FORMAT, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), LTDC_LayerCfgTypeDef::PixelFormat, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_SetAlpha()

HAL_StatusTypeDef HAL_LTDC_SetAlpha ( LTDC_HandleTypeDef * hltdc,
uint32_t Alpha,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Reconfigure the layer alpha value.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
Alphanew alpha value.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1318 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, LTDC_LayerCfgTypeDef::Alpha, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_HandleTypeDef::Instance, IS_LTDC_ALPHA, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_SetAddress()

HAL_StatusTypeDef HAL_LTDC_SetAddress ( LTDC_HandleTypeDef * hltdc,
uint32_t Address,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Reconfigure the frame buffer Address.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
Addressnew address value.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1).
Return values
HALstatus

Definition at line 1362 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, LTDC_LayerCfgTypeDef::FBStartAdress, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_HandleTypeDef::Instance, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_SetPitch()

HAL_StatusTypeDef HAL_LTDC_SetPitch ( LTDC_HandleTypeDef * hltdc,
uint32_t LinePitchInPixels,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Function used to reconfigure the pitch for specific cases where the attached LayerIdx buffer have a width that is larger than the one intended to be displayed on screen. Example of a buffer 800x480 attached to layer for which we want to read and display on screen only a portion 320x240 taken in the center of the buffer. The pitch in pixels will be in that case 800 pixels and not 320 pixels as initially configured by previous call to HAL_LTDC_ConfigLayer().

Note
This function should be called only after a previous call to HAL_LTDC_ConfigLayer() to modify the default pitch configured by HAL_LTDC_ConfigLayer() when required (refer to example described just above).
Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LinePitchInPixelsNew line pitch in pixels to configure for LTDC layer 'LayerIdx'.
LayerIdxLTDC layer index concerned by the modification of line pitch.
Return values
HALstatus

Definition at line 1411 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_LAYER, LTDC_PIXEL_FORMAT_AL88, LTDC_PIXEL_FORMAT_ARGB1555, LTDC_PIXEL_FORMAT_ARGB4444, LTDC_PIXEL_FORMAT_ARGB8888, LTDC_PIXEL_FORMAT_RGB565, LTDC_PIXEL_FORMAT_RGB888, LTDC_LayerCfgTypeDef::PixelFormat, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_ConfigColorKeying()

HAL_StatusTypeDef HAL_LTDC_ConfigColorKeying ( LTDC_HandleTypeDef * hltdc,
uint32_t RGBValue,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Configure the color keying.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
RGBValuethe color key value
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 881 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_HandleTypeDef::Instance, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_ConfigCLUT()

HAL_StatusTypeDef HAL_LTDC_ConfigCLUT ( LTDC_HandleTypeDef * hltdc,
uint32_t * pCLUT,
uint32_t CLUTSize,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Load the color lookup table.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
pCLUTpointer to the color lookup table address.
CLUTSizethe color lookup table size.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 919 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_LAYER, LTDC_PIXEL_FORMAT_AL44, LTDC_LayerCfgTypeDef::PixelFormat, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_EnableColorKeying()

HAL_StatusTypeDef HAL_LTDC_EnableColorKeying ( LTDC_HandleTypeDef * hltdc,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Enable the color keying.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 970 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_HandleTypeDef::Instance, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_DisableColorKeying()

HAL_StatusTypeDef HAL_LTDC_DisableColorKeying ( LTDC_HandleTypeDef * hltdc,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Disable the color keying.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1005 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_HandleTypeDef::Instance, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_EnableCLUT()

HAL_StatusTypeDef HAL_LTDC_EnableCLUT ( LTDC_HandleTypeDef * hltdc,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Enable the color lookup table.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1040 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_HandleTypeDef::Instance, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_DisableCLUT()

HAL_StatusTypeDef HAL_LTDC_DisableCLUT ( LTDC_HandleTypeDef * hltdc,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Disable the color lookup table.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1075 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_HandleTypeDef::Instance, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_ProgramLineEvent()

HAL_StatusTypeDef HAL_LTDC_ProgramLineEvent ( LTDC_HandleTypeDef * hltdc,
uint32_t Line )

#include <stm32f4xx_hal_ltdc.h>

Define the position of the line interrupt.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LineLine Interrupt Position.
Note
User application may resort to HAL_LTDC_LineEventCallback() at line interrupt generation.
Return values
HALstatus

Definition at line 1480 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_LTDC_DISABLE_IT, __HAL_LTDC_ENABLE_IT, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LIPOS, LTDC_IT_LI, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_EnableDither()

HAL_StatusTypeDef HAL_LTDC_EnableDither ( LTDC_HandleTypeDef * hltdc)

#include <stm32f4xx_hal_ltdc.h>

Enable Dither.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
Return values
HALstatus

Definition at line 1108 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_DisableDither()

HAL_StatusTypeDef HAL_LTDC_DisableDither ( LTDC_HandleTypeDef * hltdc)

#include <stm32f4xx_hal_ltdc.h>

Disable Dither.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
Return values
HALstatus

Definition at line 1135 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_Reload()

HAL_StatusTypeDef HAL_LTDC_Reload ( LTDC_HandleTypeDef * hltdc,
uint32_t ReloadType )

#include <stm32f4xx_hal_ltdc.h>

Reload LTDC Layers configuration.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
ReloadTypeThis parameter can be one of the following values : LTDC_RELOAD_IMMEDIATE : Immediate Reload LTDC_RELOAD_VERTICAL_BLANKING : Reload in the next Vertical Blanking
Note
User application may resort to HAL_LTDC_ReloadEventCallback() at reload interrupt generation.
Return values
HALstatus

Definition at line 1519 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_LTDC_ENABLE_IT, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_HandleTypeDef::Instance, IS_LTDC_RELOAD, LTDC_IT_RR, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_ConfigLayer_NoReload()

HAL_StatusTypeDef HAL_LTDC_ConfigLayer_NoReload ( LTDC_HandleTypeDef * hltdc,
LTDC_LayerCfgTypeDef * pLayerCfg,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Configure the LTDC Layer according to the specified without reloading parameters in the LTDC_InitTypeDef and create the associated handle. Variant of the function HAL_LTDC_ConfigLayer without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
pLayerCfgpointer to a LTDC_LayerCfgTypeDef structure that contains the configuration information for the Layer.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1558 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, LTDC_LayerCfgTypeDef::Alpha, LTDC_LayerCfgTypeDef::Alpha0, assert_param, LTDC_LayerCfgTypeDef::BlendingFactor1, LTDC_LayerCfgTypeDef::BlendingFactor2, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_LayerCfgTypeDef::ImageHeight, LTDC_LayerCfgTypeDef::ImageWidth, IS_LTDC_ALPHA, IS_LTDC_BLENDING_FACTOR1, IS_LTDC_BLENDING_FACTOR2, IS_LTDC_CFBLL, IS_LTDC_CFBLNBR, IS_LTDC_HCONFIGSP, IS_LTDC_HCONFIGST, IS_LTDC_LAYER, IS_LTDC_PIXEL_FORMAT, IS_LTDC_VCONFIGSP, IS_LTDC_VCONFIGST, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), LTDC_LayerCfgTypeDef::PixelFormat, LTDC_HandleTypeDef::State, LTDC_LayerCfgTypeDef::WindowX0, LTDC_LayerCfgTypeDef::WindowX1, LTDC_LayerCfgTypeDef::WindowY0, and LTDC_LayerCfgTypeDef::WindowY1.

◆ HAL_LTDC_SetWindowSize_NoReload()

HAL_StatusTypeDef HAL_LTDC_SetWindowSize_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t XSize,
uint32_t YSize,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Set the LTDC window size without reloading. Variant of the function HAL_LTDC_SetWindowSize without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
XSizeLTDC Pixel per line
YSizeLTDC Line number
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1608 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_LayerCfgTypeDef::ImageHeight, LTDC_LayerCfgTypeDef::ImageWidth, IS_LTDC_CFBLL, IS_LTDC_CFBLNBR, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), LTDC_HandleTypeDef::State, LTDC_LayerCfgTypeDef::WindowX0, LTDC_LayerCfgTypeDef::WindowX1, LTDC_LayerCfgTypeDef::WindowY0, and LTDC_LayerCfgTypeDef::WindowY1.

◆ HAL_LTDC_SetWindowPosition_NoReload()

HAL_StatusTypeDef HAL_LTDC_SetWindowPosition_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t X0,
uint32_t Y0,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Set the LTDC window position without reloading. Variant of the function HAL_LTDC_SetWindowPosition without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
X0LTDC window X offset
Y0LTDC window Y offset
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1663 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, LTDC_LayerCfgTypeDef::ImageHeight, LTDC_LayerCfgTypeDef::ImageWidth, IS_LTDC_CFBLL, IS_LTDC_CFBLNBR, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), LTDC_HandleTypeDef::State, LTDC_LayerCfgTypeDef::WindowX0, LTDC_LayerCfgTypeDef::WindowX1, LTDC_LayerCfgTypeDef::WindowY0, and LTDC_LayerCfgTypeDef::WindowY1.

◆ HAL_LTDC_SetPixelFormat_NoReload()

HAL_StatusTypeDef HAL_LTDC_SetPixelFormat_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t Pixelformat,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Reconfigure the pixel format without reloading. Variant of the function HAL_LTDC_SetPixelFormat without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDfef structure that contains the configuration information for the LTDC.
Pixelformatnew pixel format value.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1).
Return values
HALstatus

Definition at line 1713 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, IS_LTDC_PIXEL_FORMAT, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), LTDC_LayerCfgTypeDef::PixelFormat, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_SetAlpha_NoReload()

HAL_StatusTypeDef HAL_LTDC_SetAlpha_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t Alpha,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Reconfigure the layer alpha value without reloading. Variant of the function HAL_LTDC_SetAlpha without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
Alphanew alpha value.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1756 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, LTDC_LayerCfgTypeDef::Alpha, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_ALPHA, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_SetAddress_NoReload()

HAL_StatusTypeDef HAL_LTDC_SetAddress_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t Address,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Reconfigure the frame buffer Address without reloading. Variant of the function HAL_LTDC_SetAddress without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
Addressnew address value.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1).
Return values
HALstatus

Definition at line 1799 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, LTDC_LayerCfgTypeDef::FBStartAdress, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_SetConfig(), and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_SetPitch_NoReload()

HAL_StatusTypeDef HAL_LTDC_SetPitch_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t LinePitchInPixels,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Function used to reconfigure the pitch for specific cases where the attached LayerIdx buffer have a width that is larger than the one intended to be displayed on screen. Example of a buffer 800x480 attached to layer for which we want to read and display on screen only a portion 320x240 taken in the center of the buffer. The pitch in pixels will be in that case 800 pixels and not 320 pixels as initially configured by previous call to HAL_LTDC_ConfigLayer().

Note
This function should be called only after a previous call to HAL_LTDC_ConfigLayer() to modify the default pitch configured by HAL_LTDC_ConfigLayer() when required (refer to example described just above). Variant of the function HAL_LTDC_SetPitch without immediate reload.
Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LinePitchInPixelsNew line pitch in pixels to configure for LTDC layer 'LayerIdx'.
LayerIdxLTDC layer index concerned by the modification of line pitch.
Return values
HALstatus

Definition at line 1846 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, LTDC_HandleTypeDef::LayerCfg, LTDC_LAYER, LTDC_PIXEL_FORMAT_AL88, LTDC_PIXEL_FORMAT_ARGB1555, LTDC_PIXEL_FORMAT_ARGB4444, LTDC_PIXEL_FORMAT_ARGB8888, LTDC_PIXEL_FORMAT_RGB565, LTDC_PIXEL_FORMAT_RGB888, LTDC_LayerCfgTypeDef::PixelFormat, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_ConfigColorKeying_NoReload()

HAL_StatusTypeDef HAL_LTDC_ConfigColorKeying_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t RGBValue,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Configure the color keying without reloading. Variant of the function HAL_LTDC_ConfigColorKeying without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
RGBValuethe color key value
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1913 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_EnableColorKeying_NoReload()

HAL_StatusTypeDef HAL_LTDC_EnableColorKeying_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Enable the color keying without reloading. Variant of the function HAL_LTDC_EnableColorKeying without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1947 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_DisableColorKeying_NoReload()

HAL_StatusTypeDef HAL_LTDC_DisableColorKeying_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Disable the color keying without reloading. Variant of the function HAL_LTDC_DisableColorKeying without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 1980 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_EnableCLUT_NoReload()

HAL_StatusTypeDef HAL_LTDC_EnableCLUT_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Enable the color lookup table without reloading. Variant of the function HAL_LTDC_EnableCLUT without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 2013 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.

◆ HAL_LTDC_DisableCLUT_NoReload()

HAL_StatusTypeDef HAL_LTDC_DisableCLUT_NoReload ( LTDC_HandleTypeDef * hltdc,
uint32_t LayerIdx )

#include <stm32f4xx_hal_ltdc.h>

Disable the color lookup table without reloading. Variant of the function HAL_LTDC_DisableCLUT without immediate reload.

Parameters
hltdcpointer to a LTDC_HandleTypeDef structure that contains the configuration information for the LTDC.
LayerIdxLTDC Layer index. This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
Return values
HALstatus

Definition at line 2046 of file stm32f4xx_hal_ltdc.c.

References __HAL_LOCK, __HAL_UNLOCK, assert_param, HAL_LTDC_STATE_BUSY, HAL_LTDC_STATE_READY, HAL_OK, IS_LTDC_LAYER, LTDC_LAYER, and LTDC_HandleTypeDef::State.