Lines Matching refs:DMA2Dx

132 ErrorStatus LL_DMA2D_DeInit(DMA2D_TypeDef *DMA2Dx)  in LL_DMA2D_DeInit()  argument
137 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_DeInit()
139 if (DMA2Dx == DMA2D) in LL_DMA2D_DeInit()
166 ErrorStatus LL_DMA2D_Init(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_InitTypeDef *DMA2D_InitStruct) in LL_DMA2D_Init() argument
177 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_Init()
193 tmp = LL_DMA2D_IsTransferOngoing(DMA2Dx); in LL_DMA2D_Init()
194 tmp1 = LL_DMA2D_FGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
195 tmp2 = LL_DMA2D_BGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
199 LL_DMA2D_SetMode(DMA2Dx, DMA2D_InitStruct->Mode); in LL_DMA2D_Init()
212 MODIFY_REG(DMA2Dx->OPFCCR, regMask, regValue); in LL_DMA2D_Init()
215 LL_DMA2D_SetLineOffset(DMA2Dx, DMA2D_InitStruct->LineOffset); in LL_DMA2D_Init()
218 … LL_DMA2D_ConfigSize(DMA2Dx, DMA2D_InitStruct->NbrOfLines, DMA2D_InitStruct->NbrOfPixelsPerLines); in LL_DMA2D_Init()
221 LL_DMA2D_SetOutputMemAddr(DMA2Dx, DMA2D_InitStruct->OutputMemoryAddress); in LL_DMA2D_Init()
229 LL_DMA2D_ConfigOutputColor(DMA2Dx, &dma2d_colorstruct); in LL_DMA2D_Init()
274 void LL_DMA2D_ConfigLayer(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_LayerCfgTypeDef *DMA2D_LayerCfg, uint32_t… in LL_DMA2D_ConfigLayer() argument
295 LL_DMA2D_BGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
298 LL_DMA2D_BGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
303 MODIFY_REG(DMA2Dx->BGPFCCR, \ in LL_DMA2D_ConfigLayer()
312 MODIFY_REG(DMA2Dx->BGPFCCR, \ in LL_DMA2D_ConfigLayer()
320 … LL_DMA2D_BGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
323 LL_DMA2D_BGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
328 LL_DMA2D_FGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
331 LL_DMA2D_FGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
336 MODIFY_REG(DMA2Dx->FGPFCCR, \ in LL_DMA2D_ConfigLayer()
345 MODIFY_REG(DMA2Dx->FGPFCCR, \ in LL_DMA2D_ConfigLayer()
353 … LL_DMA2D_FGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
356 LL_DMA2D_FGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
394 void LL_DMA2D_ConfigOutputColor(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_ColorTypeDef *DMA2D_ColorStruct) in LL_DMA2D_ConfigOutputColor() argument
401 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_ConfigOutputColor()
439 LL_DMA2D_SetOutputColor(DMA2Dx, (outgreen | outred | DMA2D_ColorStruct->OutputBlue | outalpha)); in LL_DMA2D_ConfigOutputColor()
453 uint32_t LL_DMA2D_GetOutputBlueColor(DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputBlueColor() argument
458 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputBlueColor()
464 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
468 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
472 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
476 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
480 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFU)); in LL_DMA2D_GetOutputBlueColor()
497 uint32_t LL_DMA2D_GetOutputGreenColor(DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputGreenColor() argument
502 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputGreenColor()
508 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
512 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
516 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
520 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x3E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
524 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF0U) >> 4U); in LL_DMA2D_GetOutputGreenColor()
541 uint32_t LL_DMA2D_GetOutputRedColor(DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputRedColor() argument
546 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputRedColor()
552 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
556 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
560 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF800U) >> 11U); in LL_DMA2D_GetOutputRedColor()
564 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7C00U) >> 10U); in LL_DMA2D_GetOutputRedColor()
568 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF00U) >> 8U); in LL_DMA2D_GetOutputRedColor()
585 uint32_t LL_DMA2D_GetOutputAlphaColor(DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputAlphaColor() argument
590 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputAlphaColor()
596 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF000000U) >> 24U); in LL_DMA2D_GetOutputAlphaColor()
604 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x8000U) >> 15U); in LL_DMA2D_GetOutputAlphaColor()
608 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF000U) >> 12U); in LL_DMA2D_GetOutputAlphaColor()
621 void LL_DMA2D_ConfigSize(DMA2D_TypeDef *DMA2Dx, uint32_t NbrOfLines, uint32_t NbrOfPixelsPerLines) in LL_DMA2D_ConfigSize() argument
623 MODIFY_REG(DMA2Dx->NLR, (DMA2D_NLR_PL | DMA2D_NLR_NL), \ in LL_DMA2D_ConfigSize()