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

UM1725

HAL DMA2D Generic Driver

 

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

Return values

HAL status

18.2.22HAL_DMA2D_DisableCLUT

Function Name

HAL_StatusTypeDef HAL_DMA2D_DisableCLUT

 

(DMA2D_HandleTypeDef * hdma2d, uint32_t LayerIdx)

Function Description

Disable 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

 

 

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

Return values

 

HAL status

18.2.23HAL_DMA2D_ProgramLineEvent

Function Name

HAL_StatusTypeDef HAL_DMA2D_ProgramLineEvent

 

(DMA2D_HandleTypeDef * hdma2d, uint32_t Line)

Function Description

Define the configuration of the line watermark .

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

 

Line: Line Watermark configuration.

Return values

 

HAL status

18.2.24HAL_DMA2D_GetState

Function Name

HAL_DMA2D_StateTypeDef HAL_DMA2D_GetState

 

(DMA2D_HandleTypeDef * hdma2d)

Function Description

Return the DMA2D state.

Parameters

 

hdma2d: pointer to a DMA2D_HandleTypeDef structure that

 

 

contains the configuration information for the DMA2D.

Return values

 

HAL state

18.2.25HAL_DMA2D_GetError

Function Name

uint32_t HAL_DMA2D_GetError (DMA2D_HandleTypeDef *

 

hdma2d)

Function Description

Return the DMA2D error code.

Parameters

 

hdma2d: : pointer to a DMA2D_HandleTypeDef structure

 

 

that contains the configuration information for DMA2D.

Return values

 

DMA2D Error Code

18.3DMA2D Firmware driver defines

18.3.1DMA2D

DMA2D ALPHA MODE

DOCID025834 Rev 2

257/900

HAL DMA2D Generic Driver

UM1725

DMA2D_NO_MODIF_ALPHA

No modification of the alpha channel value

DMA2D_REPLACE_ALPHA

Replace original alpha channel value by programmed

 

alpha value

DMA2D_COMBINE_ALPHA

Replace original alpha channel value by programmed

 

alpha value with original alpha channel value

DMA2D CLUT CM

 

DMA2D_CCM_ARGB8888

ARGB8888 DMA2D C-LUT color mode

DMA2D_CCM_RGB888

RGB888 DMA2D C-LUT color mode

DMA2D Color Mode

 

DMA2D_ARGB8888 DMA2D_RGB888 DMA2D_RGB565 DMA2D_ARGB1555 DMA2D_ARGB4444

ARGB8888 DMA2D color mode RGB888 DMA2D color mode RGB565 DMA2D color mode ARGB1555 DMA2D color mode ARGB4444 DMA2D color mode

DMA2D COLOR VALUE

COLOR_VALUE

color value mask

DMA2D DeadTime

 

 

LINE_WATERMARK

 

 

DMA2D Error Code

 

 

HAL_DMA2D_ERROR_NONE

No error

HAL_DMA2D_ERROR_TE

Transfer error

HAL_DMA2D_ERROR_CE

Configuration error

HAL_DMA2D_ERROR_TIMEOUT

Timeout error

DMA2D Exported Macros

 

__HAL_DMA2D_RESET_HANDLE_STATE Description:

Reset DMA2D handle state.

Parameters:

__HANDLE__: specifies the DMA2D handle.

Return value:

 

 

None

__HAL_DMA2D_ENABLE

Description:

 

 

Enable the DMA2D.

 

Parameters:

 

 

__HANDLE__: DMA2D handle

 

Return value:

 

 

None.

258/900

DOCID025834 Rev 2

 

UM1725

 

 

HAL DMA2D Generic Driver

__HAL_DMA2D_DISABLE

Description:

 

 

Disable the DMA2D.

 

Parameters:

 

 

__HANDLE__: DMA2D handle

 

Return value:

 

 

None.

__HAL_DMA2D_GET_FLAG

Description:

 

Get the DMA2D pending flags.

 

Parameters:

 

 

__HANDLE__: DMA2D handle

 

__FLAG__: Get the specified flag. This

 

 

parameter can be any combination of

 

 

the following values:

 

 

 

DMA2D_FLAG_CE: Configuration

 

 

 

error flag

 

 

 

DMA2D_FLAG_CTC: C-LUT

 

 

 

transfer complete flag

 

 

 

DMA2D_FLAG_CAE: C-LUT

 

 

 

access error flag

 

 

 

DMA2D_FLAG_TW: Transfer

 

 

 

Watermark flag

 

 

 

DMA2D_FLAG_TC: Transfer

 

 

 

complete flag

 

 

DMA2D_FLAG_TE: Transfer error

 

 

 

flag

 

Return value:

 

The: state of FLAG.

__HAL_DMA2D_CLEAR_FLAG

Description:

 

Clears the DMA2D pending flags.

 

Parameters:

 

 

__HANDLE__: DMA2D handle

 

__FLAG__: specifies the flag to clear.

 

 

This parameter can be any combination

 

 

of the following values:

 

 

 

DMA2D_FLAG_CE: Configuration

 

 

 

error flag

 

 

 

DMA2D_FLAG_CTC: C-LUT

 

 

 

transfer complete flag

 

 

 

DMA2D_FLAG_CAE: C-LUT

 

 

 

access error flag

 

 

 

DMA2D_FLAG_TW: Transfer

 

 

 

Watermark flag

 

 

 

DMA2D_FLAG_TC: Transfer

 

 

 

complete flag

 

 

DMA2D_FLAG_TE: Transfer error

 

 

 

flag

DOCID025834 Rev 2

 

259/900

HAL DMA2D Generic Driver

 

 

UM1725

 

Return value:

 

 

None

__HAL_DMA2D_ENABLE_IT

Description:

 

Enables the specified DMA2D

 

 

interrupts.

 

Parameters:

 

 

__HANDLE__: DMA2D handle

 

 

__INTERRUPT__: specifies the

 

 

DMA2D interrupt sources to be

 

 

enabled. This parameter can be any

 

 

combination of the following values:

 

 

 

DMA2D_IT_CE: Configuration

 

 

 

error interrupt mask

 

 

 

DMA2D_IT_CTC: C-LUT transfer

 

 

 

complete interrupt mask

 

 

 

DMA2D_IT_CAE: C-LUT access

 

 

 

error interrupt mask

 

 

 

DMA2D_IT_TW: Transfer

 

 

 

Watermark interrupt mask

DMA2D_IT_TC: Transfer complete interrupt mask

DMA2D_IT_TE: Transfer error interrupt mask

Return value:

 

 

None

__HAL_DMA2D_DISABLE_IT

Description:

 

Disables the specified DMA2D

 

 

interrupts.

 

Parameters:

 

 

__HANDLE__: DMA2D handle

 

 

__INTERRUPT__: specifies the

 

 

DMA2D interrupt sources to be

 

 

disabled. This parameter can be any

 

 

combination of the following values:

 

 

 

DMA2D_IT_CE: Configuration

 

 

 

error interrupt mask

 

 

 

DMA2D_IT_CTC: C-LUT transfer

 

 

 

complete interrupt mask

 

 

 

DMA2D_IT_CAE: C-LUT access

 

 

 

error interrupt mask

 

 

 

DMA2D_IT_TW: Transfer

 

 

 

Watermark interrupt mask

DMA2D_IT_TC: Transfer complete interrupt mask

DMA2D_IT_TE: Transfer error interrupt mask

Return value:

260/900

DOCID025834 Rev 2

UM1725

HAL DMA2D Generic Driver

 

None

__HAL_DMA2D_GET_IT_SOURCE Description:

Checks whether the specified DMA2D interrupt has occurred or not.

Parameters:

__HANDLE__: DMA2D handle__INTERRUPT__: specifies the

DMA2D interrupt source to check. This parameter can be one of the following values:

DMA2D_IT_CE: Configuration error interrupt mask

DMA2D_IT_CTC: C-LUT transfer complete interrupt mask

DMA2D_IT_CAE: C-LUT access error interrupt mask

DMA2D_IT_TW: Transfer Watermark interrupt mask

DMA2D_IT_TC: Transfer complete interrupt mask

DMA2D_IT_TE: Transfer error interrupt mask

Return value:

The: state of INTERRUPT.

DMA2D Exported Types

MAX_DMA2D_LAYER

 

 

DMA2D Flag

 

 

DMA2D_FLAG_CE

Configuration Error Interrupt Flag

 

DMA2D_FLAG_CTC

C-LUT Transfer Complete Interrupt Flag

 

DMA2D_FLAG_CAE

C-LUT Access Error Interrupt Flag

 

DMA2D_FLAG_TW

Transfer Watermark Interrupt Flag

 

DMA2D_FLAG_TC

Transfer Complete Interrupt Flag

 

DMA2D_FLAG_TE

Transfer Error Interrupt Flag

 

DMA2D Input Color Mode

 

CM_ARGB8888

ARGB8888 color mode

 

CM_RGB888

RGB888 color mode

 

CM_RGB565

RGB565 color mode

 

CM_ARGB1555

ARGB1555 color mode

 

CM_ARGB4444

ARGB4444 color mode

 

CM_L8

L8 color mode

 

CM_AL44

AL44 color mode

 

CM_AL88

AL88 color mode

 

 

DOCID025834 Rev 2

261/900

HAL DMA2D Generic Driver

UM1725

CM_L4

L4 color mode

CM_A8

A8 color mode

CM_A4

A4 color mode

DMA2D Interrupts

 

DMA2D_IT_CE

Configuration Error Interrupt

DMA2D_IT_CTC

C-LUT Transfer Complete Interrupt

DMA2D_IT_CAE

C-LUT Access Error Interrupt

DMA2D_IT_TW

Transfer Watermark Interrupt

DMA2D_IT_TC

Transfer Complete Interrupt

DMA2D_IT_TE

Transfer Error Interrupt

DMA2D Mode

 

DMA2D_M2M

DMA2D memory to memory transfer mode

DMA2D_M2M_PFC

DMA2D memory to memory with pixel format conversion transfer

 

mode

DMA2D_M2M_BLEND

DMA2D memory to memory with blending transfer mode

DMA2D_R2M

DMA2D register to memory transfer mode

DMA2D Offset

 

DMA2D_OFFSET

Line Offset

DMA2D Private Defines

HAL_TIMEOUT_DMA2D_ABORT

HAL_TIMEOUT_DMA2D_SUSPEND

DMA2D Private Macros

IS_DMA2D_LAYER

IS_DMA2D_MODE

IS_DMA2D_CMODE

IS_DMA2D_COLOR

IS_DMA2D_LINE

IS_DMA2D_PIXEL

IS_DMA2D_OFFSET

IS_DMA2D_INPUT_COLOR_MODE

IS_DMA2D_ALPHA_MODE

IS_DMA2D_CLUT_CM

IS_DMA2D_CLUT_SIZE

IS_DMA2D_LineWatermark

DMA2D SIZE

 

DMA2D_PIXEL

DMA2D pixel per line

DMA2D_LINE

DMA2D number of line

262/900

DOCID025834 Rev 2

UM1725

HAL DMA2D Generic Driver

DMA2D Size Clut

 

DMA2D_CLUT_SIZE

DMA2D C-LUT size

DOCID025834 Rev 2

263/900

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