Lines Matching refs:DMA2Dx
147 ErrorStatus LL_DMA2D_DeInit(const DMA2D_TypeDef *DMA2Dx) in LL_DMA2D_DeInit() argument
152 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_DeInit()
154 if (DMA2Dx == DMA2D) in LL_DMA2D_DeInit()
181 ErrorStatus LL_DMA2D_Init(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_InitTypeDef *DMA2D_InitStruct) in LL_DMA2D_Init() argument
192 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_Init()
212 tmp = LL_DMA2D_IsTransferOngoing(DMA2Dx); in LL_DMA2D_Init()
213 tmp1 = LL_DMA2D_FGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
214 tmp2 = LL_DMA2D_BGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
219 MODIFY_REG(DMA2Dx->CR, (DMA2D_CR_MODE | DMA2D_CR_LOM), \ in LL_DMA2D_Init()
222 LL_DMA2D_SetMode(DMA2Dx, DMA2D_InitStruct->Mode); in LL_DMA2D_Init()
238 MODIFY_REG(DMA2Dx->OPFCCR, regMask, regValue); in LL_DMA2D_Init()
241 LL_DMA2D_SetLineOffset(DMA2Dx, DMA2D_InitStruct->LineOffset); in LL_DMA2D_Init()
244 … LL_DMA2D_ConfigSize(DMA2Dx, DMA2D_InitStruct->NbrOfLines, DMA2D_InitStruct->NbrOfPixelsPerLines); in LL_DMA2D_Init()
247 LL_DMA2D_SetOutputMemAddr(DMA2Dx, DMA2D_InitStruct->OutputMemoryAddress); in LL_DMA2D_Init()
255 LL_DMA2D_ConfigOutputColor(DMA2Dx, &dma2d_colorstruct); in LL_DMA2D_Init()
304 void LL_DMA2D_ConfigLayer(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_LayerCfgTypeDef *DMA2D_LayerCfg, uint32_t… in LL_DMA2D_ConfigLayer() argument
323 LL_DMA2D_BGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
326 LL_DMA2D_BGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
330 MODIFY_REG(DMA2Dx->BGPFCCR, \ in LL_DMA2D_ConfigLayer()
339 … LL_DMA2D_BGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
342 LL_DMA2D_BGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
347 LL_DMA2D_FGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
350 LL_DMA2D_FGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
354 MODIFY_REG(DMA2Dx->FGPFCCR, \ in LL_DMA2D_ConfigLayer()
363 … LL_DMA2D_FGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
366 LL_DMA2D_FGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
402 void LL_DMA2D_ConfigOutputColor(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_ColorTypeDef *DMA2D_ColorStruct) in LL_DMA2D_ConfigOutputColor() argument
409 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_ConfigOutputColor()
447 LL_DMA2D_SetOutputColor(DMA2Dx, (outgreen | outred | DMA2D_ColorStruct->OutputBlue | outalpha)); in LL_DMA2D_ConfigOutputColor()
461 uint32_t LL_DMA2D_GetOutputBlueColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputBlueColor() argument
466 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputBlueColor()
472 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
476 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
480 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
484 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
488 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFU)); in LL_DMA2D_GetOutputBlueColor()
505 uint32_t LL_DMA2D_GetOutputGreenColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputGreenColor() argument
510 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputGreenColor()
516 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
520 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
524 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
528 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x3E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
532 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF0U) >> 4U); in LL_DMA2D_GetOutputGreenColor()
549 uint32_t LL_DMA2D_GetOutputRedColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputRedColor() argument
554 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputRedColor()
560 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
564 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
568 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF800U) >> 11U); in LL_DMA2D_GetOutputRedColor()
572 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7C00U) >> 10U); in LL_DMA2D_GetOutputRedColor()
576 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF00U) >> 8U); in LL_DMA2D_GetOutputRedColor()
593 uint32_t LL_DMA2D_GetOutputAlphaColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputAlphaColor() argument
598 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputAlphaColor()
604 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF000000U) >> 24U); in LL_DMA2D_GetOutputAlphaColor()
612 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x8000U) >> 15U); in LL_DMA2D_GetOutputAlphaColor()
616 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF000U) >> 12U); in LL_DMA2D_GetOutputAlphaColor()
629 void LL_DMA2D_ConfigSize(DMA2D_TypeDef *DMA2Dx, uint32_t NbrOfLines, uint32_t NbrOfPixelsPerLines) in LL_DMA2D_ConfigSize() argument
631 MODIFY_REG(DMA2Dx->NLR, (DMA2D_NLR_PL | DMA2D_NLR_NL), \ in LL_DMA2D_ConfigSize()