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

HAL DMA2D Generic Driver

UM1725

18 HAL DMA2D Generic Driver

18.1DMA2D Firmware driver registers structures

18.1.1DMA2D_ColorTypeDef

Data Fields

uint32_t Blue

uint32_t Green

uint32_t Red

Field Documentation

uint32_t DMA2D_ColorTypeDef::Blue

Configures the blue value. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF.

uint32_t DMA2D_ColorTypeDef::Green

Configures the green value. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF.

uint32_t DMA2D_ColorTypeDef::Red

Configures the red value. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF.

18.1.2DMA2D_CLUTCfgTypeDef

Data Fields

uint32_t * pCLUT

uint32_t CLUTColorMode

uint32_t Size

Field Documentation

uint32_t* DMA2D_CLUTCfgTypeDef::pCLUT

Configures the DMA2D CLUT memory address.

uint32_t DMA2D_CLUTCfgTypeDef::CLUTColorMode

configures the DMA2D CLUT color mode. This parameter can be one value of

DMA2D_CLUT_CM

uint32_t DMA2D_CLUTCfgTypeDef::Size

configures the DMA2D CLUT size. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF.

18.1.3DMA2D_InitTypeDef

Data Fields

248/900

DOCID025834 Rev 2

UM1725

HAL DMA2D Generic Driver

uint32_t Mode

uint32_t ColorMode

uint32_t OutputOffset

Field Documentation

uint32_t DMA2D_InitTypeDef::Mode

configures the DMA2D transfer mode. This parameter can be one value of

DMA2D_Mode

uint32_t DMA2D_InitTypeDef::ColorMode

configures the color format of the output image. This parameter can be one value of

DMA2D_Color_Mode

uint32_t DMA2D_InitTypeDef::OutputOffset

Specifies the Offset value. This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0x3FFF.

18.1.4DMA2D_LayerCfgTypeDef

Data Fields

uint32_t InputOffset

uint32_t InputColorMode

uint32_t AlphaMode

uint32_t InputAlpha

Field Documentation

uint32_t DMA2D_LayerCfgTypeDef::InputOffset

configures the DMA2D foreground offset. This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0x3FFF.

uint32_t DMA2D_LayerCfgTypeDef::InputColorMode

configures the DMA2D foreground color mode . This parameter can be one value of

DMA2D_Input_Color_Mode

uint32_t DMA2D_LayerCfgTypeDef::AlphaMode

configures the DMA2D foreground alpha mode. This parameter can be one value of

DMA2D_ALPHA_MODE

uint32_t DMA2D_LayerCfgTypeDef::InputAlpha

Specifies the DMA2D foreground alpha value and color value in case of A8 or A4 color mode. This parameter must be a number between Min_Data = 0x00000000 and Max_Data = 0xFFFFFFFF in case of A8 or A4 color mode (ARGB). Otherwise, This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF.

18.1.5__DMA2D_HandleTypeDef

Data Fields

DMA2D_TypeDef * Instance

DMA2D_InitTypeDef Init

void(* XferCpltCallback

DOCID025834 Rev 2

249/900

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