Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
111
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

UM1725

 

HAL LTDC Generic Driver

 

hltdc)

Function Description

Line Event callback.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

Return values

 

None

36.2.15HAL_LTDC_ConfigLayer

Function Name

HAL_StatusTypeDef HAL_LTDC_ConfigLayer

 

(LTDC_HandleTypeDef * hltdc, LTDC_LayerCfgTypeDef *

 

pLayerCfg, uint32_t LayerIdx)

Function Description

Configure the LTDC Layer according to the specified parameters

 

in the LTDC_InitTypeDef and create the associated handle.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

 

pLayerCfg: pointer to a LTDC_LayerCfgTypeDef structure

 

 

that contains the configuration information for the Layer.

 

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

Return values

 

HAL status

36.2.16HAL_LTDC_ConfigColorKeying

Function Name

HAL_StatusTypeDef HAL_LTDC_ConfigColorKeying

 

(LTDC_HandleTypeDef * hltdc, uint32_t RGBValue, uint32_t

 

LayerIdx)

Function Description

Configure the color keying.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

RGBValue: the color key value

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

Return values

 

HAL status

36.2.17HAL_LTDC_ConfigCLUT

Function Name

HAL_StatusTypeDef HAL_LTDC_ConfigCLUT

 

 

(LTDC_HandleTypeDef * hltdc, uint32_t * pCLUT, uint32_t

 

CLUTSize, uint32_t LayerIdx)

 

Function Description

Load the color lookup table.

 

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

 

pCLUT: pointer to the color lookup table address.

 

 

CLUTSize: the color lookup table size.

 

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

 

Return values

 

HAL status

 

 

 

DOCID025834 Rev 2

465/900

HAL LTDC Generic Driver

UM1725

36.2.18HAL_LTDC_EnableColorKeying

Function Name

HAL_StatusTypeDef HAL_LTDC_EnableColorKeying

 

(LTDC_HandleTypeDef * hltdc, uint32_t LayerIdx)

Function Description

Enable the color keying.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

Return values

 

HAL status

36.2.19HAL_LTDC_DisableColorKeying

Function Name

HAL_StatusTypeDef HAL_LTDC_DisableColorKeying

 

(LTDC_HandleTypeDef * hltdc, uint32_t LayerIdx)

Function Description

Disable the color keying.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

Return values

 

HAL status

36.2.20HAL_LTDC_EnableCLUT

Function Name

HAL_StatusTypeDef HAL_LTDC_EnableCLUT

 

(LTDC_HandleTypeDef * hltdc, uint32_t LayerIdx)

Function Description

Enable the color lookup table.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

Return values

 

HAL status

36.2.21HAL_LTDC_DisableCLUT

Function Name

HAL_StatusTypeDef HAL_LTDC_DisableCLUT

 

(LTDC_HandleTypeDef * hltdc, uint32_t LayerIdx)

Function Description

Disable the color lookup table.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

Return values

 

HAL status

36.2.22HAL_LTDC_EnableDither

Function Name

HAL_StatusTypeDef HAL_LTDC_EnableDither

 

(LTDC_HandleTypeDef * hltdc)

466/900

DOCID025834 Rev 2

UM1725

 

HAL LTDC Generic Driver

Function Description

Enables Dither.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

Return values

 

HAL status

36.2.23HAL_LTDC_DisableDither

Function Name

HAL_StatusTypeDef HAL_LTDC_DisableDither

 

(LTDC_HandleTypeDef * hltdc)

Function Description

Disables Dither.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

Return values

 

HAL status

36.2.24HAL_LTDC_SetWindowSize

Function Name

HAL_StatusTypeDef HAL_LTDC_SetWindowSize

 

(LTDC_HandleTypeDef * hltdc, uint32_t XSize, uint32_t YSize,

 

uint32_t LayerIdx)

Function Description

Set the LTDC window size.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

XSize: LTDC Pixel per line

 

YSize: LTDC Line number

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

Return values

 

HAL status

36.2.25HAL_LTDC_SetWindowPosition

Function Name

HAL_StatusTypeDef HAL_LTDC_SetWindowPosition

 

(LTDC_HandleTypeDef * hltdc, uint32_t X0, uint32_t Y0,

 

uint32_t LayerIdx)

Function Description

Set the LTDC window position.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

X0: LTDC window X offset

 

Y0: LTDC window Y offset

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

Return values

 

HAL status

36.2.26HAL_LTDC_SetPixelFormat

Function Name

HAL_StatusTypeDef HAL_LTDC_SetPixelFormat

 

 

(LTDC_HandleTypeDef * hltdc, uint32_t Pixelformat, uint32_t

 

LayerIdx)

 

 

DOCID025834 Rev 2

467/900

HAL LTDC Generic Driver

 

UM1725

Function Description

Reconfigure the pixel format.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

Pixelformat: new pixel format value.

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1.

Return values

 

HAL status

36.2.27HAL_LTDC_SetAlpha

Function Name

HAL_StatusTypeDef HAL_LTDC_SetAlpha

 

(LTDC_HandleTypeDef * hltdc, uint32_t Alpha, uint32_t

 

LayerIdx)

Function Description

Reconfigure the layer alpha value.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

Alpha: new alpha value.

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1

Return values

 

HAL status

36.2.28HAL_LTDC_SetAddress

Function Name

HAL_StatusTypeDef HAL_LTDC_SetAddress

 

(LTDC_HandleTypeDef * hltdc, uint32_t Address, uint32_t

 

LayerIdx)

Function Description

Reconfigure the frame buffer Address.

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

 

Address: new address value.

 

 

LayerIdx: LTDC Layer index. This parameter can be one of

 

 

the following values: 0 or 1.

Return values

 

HAL status

36.2.29HAL_LTDC_ProgramLineEvent

Function Name

HAL_StatusTypeDef HAL_LTDC_ProgramLineEvent

 

(LTDC_HandleTypeDef * hltdc, uint32_t Line)

Function Description

Define the position of the line interrupt .

Parameters

 

hltdc: pointer to a LTDC_HandleTypeDef structure that

 

 

contains the configuration information for the LTDC.

 

Line: Line Interrupt Position.

Return values

 

HAL status

36.2.30HAL_LTDC_GetState

Function Name

HAL_LTDC_StateTypeDef HAL_LTDC_GetState

 

(LTDC_HandleTypeDef * hltdc)

468/900

DOCID025834 Rev 2

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]