Lines Matching refs:DMA2Dx
125 ErrorStatus LL_DMA2D_DeInit(DMA2D_TypeDef *DMA2Dx) in LL_DMA2D_DeInit() argument
130 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_DeInit()
132 if (DMA2Dx == DMA2D) in LL_DMA2D_DeInit()
159 ErrorStatus LL_DMA2D_Init(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_InitTypeDef *DMA2D_InitStruct) in LL_DMA2D_Init() argument
170 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_Init()
182 tmp = LL_DMA2D_IsTransferOngoing(DMA2Dx); in LL_DMA2D_Init()
183 tmp1 = LL_DMA2D_FGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
184 tmp2 = LL_DMA2D_BGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
188 LL_DMA2D_SetMode(DMA2Dx, DMA2D_InitStruct->Mode); in LL_DMA2D_Init()
197 MODIFY_REG(DMA2Dx->OPFCCR, regMask, regValue); in LL_DMA2D_Init()
200 LL_DMA2D_SetLineOffset(DMA2Dx, DMA2D_InitStruct->LineOffset); in LL_DMA2D_Init()
203 … LL_DMA2D_ConfigSize(DMA2Dx, DMA2D_InitStruct->NbrOfLines, DMA2D_InitStruct->NbrOfPixelsPerLines); in LL_DMA2D_Init()
206 LL_DMA2D_SetOutputMemAddr(DMA2Dx, DMA2D_InitStruct->OutputMemoryAddress); in LL_DMA2D_Init()
214 LL_DMA2D_ConfigOutputColor(DMA2Dx, &dma2d_colorstruct); in LL_DMA2D_Init()
255 void LL_DMA2D_ConfigLayer(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_LayerCfgTypeDef *DMA2D_LayerCfg, uint32_t… in LL_DMA2D_ConfigLayer() argument
272 LL_DMA2D_BGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
275 LL_DMA2D_BGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
278 MODIFY_REG(DMA2Dx->BGPFCCR, \ in LL_DMA2D_ConfigLayer()
285 … LL_DMA2D_BGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
288 LL_DMA2D_BGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
293 LL_DMA2D_FGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
296 LL_DMA2D_FGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
299 MODIFY_REG(DMA2Dx->FGPFCCR, \ in LL_DMA2D_ConfigLayer()
306 … LL_DMA2D_FGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
309 LL_DMA2D_FGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
343 void LL_DMA2D_ConfigOutputColor(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_ColorTypeDef *DMA2D_ColorStruct) in LL_DMA2D_ConfigOutputColor() argument
350 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_ConfigOutputColor()
388 LL_DMA2D_SetOutputColor(DMA2Dx, (outgreen | outred | DMA2D_ColorStruct->OutputBlue | outalpha)); in LL_DMA2D_ConfigOutputColor()
402 uint32_t LL_DMA2D_GetOutputBlueColor(DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputBlueColor() argument
407 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputBlueColor()
413 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
417 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
421 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
425 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
429 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFU)); in LL_DMA2D_GetOutputBlueColor()
446 uint32_t LL_DMA2D_GetOutputGreenColor(DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputGreenColor() argument
451 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputGreenColor()
457 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
461 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
465 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
469 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x3E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
473 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF0U) >> 4U); in LL_DMA2D_GetOutputGreenColor()
490 uint32_t LL_DMA2D_GetOutputRedColor(DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputRedColor() argument
495 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputRedColor()
501 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
505 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
509 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF800U) >> 11U); in LL_DMA2D_GetOutputRedColor()
513 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7C00U) >> 10U); in LL_DMA2D_GetOutputRedColor()
517 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF00U) >> 8U); in LL_DMA2D_GetOutputRedColor()
534 uint32_t LL_DMA2D_GetOutputAlphaColor(DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputAlphaColor() argument
539 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputAlphaColor()
545 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF000000U) >> 24U); in LL_DMA2D_GetOutputAlphaColor()
553 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x8000U) >> 15U); in LL_DMA2D_GetOutputAlphaColor()
557 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF000U) >> 12U); in LL_DMA2D_GetOutputAlphaColor()
570 void LL_DMA2D_ConfigSize(DMA2D_TypeDef *DMA2Dx, uint32_t NbrOfLines, uint32_t NbrOfPixelsPerLines) in LL_DMA2D_ConfigSize() argument
572 MODIFY_REG(DMA2Dx->NLR, (DMA2D_NLR_PL | DMA2D_NLR_NL), \ in LL_DMA2D_ConfigSize()