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

HAL DMA2D Generic Driver

 

UM1725

 

 

destination.

 

 

Height: The height of data to be transferred from source to

 

 

destination.

Return values

 

HAL status

18.2.11HAL_DMA2D_Start_IT

Function Name

HAL_StatusTypeDef HAL_DMA2D_Start_IT

 

(DMA2D_HandleTypeDef * hdma2d, uint32_t pdata, uint32_t

 

DstAddress, uint32_t Width, uint32_t Height)

Function Description

Start the DMA2D Transfer with interrupt enabled.

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

 

pdata: Configure the source memory Buffer address if the

 

 

memory to memory or memory to memory with pixel format

 

 

conversion DMA2D mode is selected, and configure the color

 

 

value if register to memory DMA2D mode is selected.

 

DstAddress: The destination memory Buffer address.

 

Width: The width of data to be transferred from source to

 

 

destination.

 

Height: The height of data to be transferred from source to

 

 

destination.

Return values

 

HAL status

18.2.12HAL_DMA2D_BlendingStart

Function Name

HAL_StatusTypeDef HAL_DMA2D_BlendingStart

 

(DMA2D_HandleTypeDef * hdma2d, uint32_t SrcAddress1,

 

uint32_t SrcAddress2, uint32_t DstAddress, uint32_t Width,

 

uint32_t Height)

Function Description

Start the multi-source DMA2D Transfer.

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

 

SrcAddress1: The source memory Buffer address of the

 

 

foreground layer.

 

SrcAddress2: The source memory Buffer address of the

 

 

background layer.

 

DstAddress: The destination memory Buffer address

 

Width: The width of data to be transferred from source to

 

 

destination.

 

Height: The height of data to be transferred from source to

 

 

destination.

Return values

 

HAL status

18.2.13HAL_DMA2D_BlendingStart_IT

Function Name

HAL_StatusTypeDef HAL_DMA2D_BlendingStart_IT

 

(DMA2D_HandleTypeDef * hdma2d, uint32_t SrcAddress1,

 

uint32_t SrcAddress2, uint32_t DstAddress, uint32_t Width,

 

uint32_t Height)

254/900

DOCID025834 Rev 2

UM1725

 

HAL DMA2D Generic Driver

Function Description

Start the multi-source DMA2D Transfer with interrupt enabled.

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

 

SrcAddress1: The source memory Buffer address of the

 

 

foreground layer.

 

SrcAddress2: The source memory Buffer address of the

 

 

background layer.

 

DstAddress: The destination memory Buffer address.

 

Width: The width of data to be transferred from source to

 

 

destination.

 

Height: The height of data to be transferred from source to

 

 

destination.

Return values

 

HAL status

18.2.14HAL_DMA2D_Abort

Function Name

HAL_StatusTypeDef HAL_DMA2D_Abort

 

(DMA2D_HandleTypeDef * hdma2d)

Function Description

Abort the DMA2D Transfer.

Parameters

 

hdma2d: : pointer to a DMA2D_HandleTypeDef structure

 

 

that contains the configuration information for the DMA2D.

Return values

 

HAL status

18.2.15HAL_DMA2D_Suspend

Function Name

HAL_StatusTypeDef HAL_DMA2D_Suspend

 

(DMA2D_HandleTypeDef * hdma2d)

Function Description

Suspend the DMA2D Transfer.

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

Return values

 

HAL status

18.2.16HAL_DMA2D_Resume

Function Name

HAL_StatusTypeDef HAL_DMA2D_Resume

 

(DMA2D_HandleTypeDef * hdma2d)

Function Description

Resume the DMA2D Transfer.

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

Return values

 

HAL status

18.2.17HAL_DMA2D_PollForTransfer

Function Name

HAL_StatusTypeDef HAL_DMA2D_PollForTransfer

 

 

(DMA2D_HandleTypeDef * hdma2d, uint32_t Timeout)

 

Function Description

Polling for transfer complete or CLUT loading.

 

Parameters

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

DOCID025834 Rev 2

255/900

HAL DMA2D Generic Driver

 

UM1725

 

 

contains the configuration information for the DMA2D.

 

 

Timeout: Timeout duration

Return values

 

HAL status

18.2.18HAL_DMA2D_IRQHandler

Function Name

void HAL_DMA2D_IRQHandler (DMA2D_HandleTypeDef *

 

hdma2d)

Function Description

Handles DMA2D interrupt request.

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

Return values

 

HAL status

18.2.19HAL_DMA2D_ConfigLayer

Function Name

HAL_StatusTypeDef HAL_DMA2D_ConfigLayer

 

(DMA2D_HandleTypeDef * hdma2d, uint32_t LayerIdx)

Function Description

Configure the DMA2D Layer according to the specified parameters

 

in the DMA2D_InitTypeDef and create the associated handle.

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

 

LayerIdx: DMA2D Layer index. This parameter can be one

 

 

of the following values: 0(background) / 1(foreground)

Return values

 

HAL status

18.2.20HAL_DMA2D_ConfigCLUT

Function Name

HAL_StatusTypeDef HAL_DMA2D_ConfigCLUT

 

(DMA2D_HandleTypeDef * hdma2d, DMA2D_CLUTCfgTypeDef

 

CLUTCfg, uint32_t LayerIdx)

Function Description

Configure the DMA2D CLUT Transfer.

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

 

CLUTCfg: pointer to a DMA2D_CLUTCfgTypeDef structure

 

 

that contains the configuration information for the color look

 

 

up table.

 

LayerIdx: DMA2D Layer index. This parameter can be one

 

 

of the following values: 0(background) / 1(foreground)

Return values

 

HAL status

18.2.21HAL_DMA2D_EnableCLUT

Function Name

HAL_StatusTypeDef HAL_DMA2D_EnableCLUT

 

(DMA2D_HandleTypeDef * hdma2d, uint32_t LayerIdx)

Function Description

Enable the DMA2D CLUT Transfer.

Parameters

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

contains the configuration information for the DMA2D.

 

LayerIdx: DMA2D Layer index. This parameter can be one

256/900

DOCID025834 Rev 2

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