Lines Matching refs:DMA2Dx

141 ErrorStatus LL_DMA2D_DeInit(const DMA2D_TypeDef *DMA2Dx)  in LL_DMA2D_DeInit()  argument
146 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_DeInit()
148 if (DMA2Dx == DMA2D) in LL_DMA2D_DeInit()
175 ErrorStatus LL_DMA2D_Init(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_InitTypeDef *DMA2D_InitStruct) in LL_DMA2D_Init() argument
186 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_Init()
202 tmp = LL_DMA2D_IsTransferOngoing(DMA2Dx); in LL_DMA2D_Init()
203 tmp1 = LL_DMA2D_FGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
204 tmp2 = LL_DMA2D_BGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
208 MODIFY_REG(DMA2Dx->CR, (DMA2D_CR_MODE | DMA2D_CR_LOM), \ in LL_DMA2D_Init()
222 MODIFY_REG(DMA2Dx->OPFCCR, regMask, regValue); in LL_DMA2D_Init()
225 LL_DMA2D_SetLineOffset(DMA2Dx, DMA2D_InitStruct->LineOffset); in LL_DMA2D_Init()
228 … LL_DMA2D_ConfigSize(DMA2Dx, DMA2D_InitStruct->NbrOfLines, DMA2D_InitStruct->NbrOfPixelsPerLines); in LL_DMA2D_Init()
231 LL_DMA2D_SetOutputMemAddr(DMA2Dx, DMA2D_InitStruct->OutputMemoryAddress); in LL_DMA2D_Init()
239 LL_DMA2D_ConfigOutputColor(DMA2Dx, &dma2d_colorstruct); in LL_DMA2D_Init()
284 void LL_DMA2D_ConfigLayer(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_LayerCfgTypeDef *DMA2D_LayerCfg, uint32_t… in LL_DMA2D_ConfigLayer() argument
306 LL_DMA2D_BGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
309 LL_DMA2D_BGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
313 MODIFY_REG(DMA2Dx->BGPFCCR, \ in LL_DMA2D_ConfigLayer()
322 … LL_DMA2D_BGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
325 LL_DMA2D_BGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
330 LL_DMA2D_FGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
333 LL_DMA2D_FGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
338 MODIFY_REG(DMA2Dx->FGPFCCR, \ in LL_DMA2D_ConfigLayer()
348 MODIFY_REG(DMA2Dx->FGPFCCR, \ in LL_DMA2D_ConfigLayer()
358 … LL_DMA2D_FGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
361 LL_DMA2D_FGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
400 void LL_DMA2D_ConfigOutputColor(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_ColorTypeDef *DMA2D_ColorStruct) in LL_DMA2D_ConfigOutputColor() argument
407 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_ConfigOutputColor()
445 LL_DMA2D_SetOutputColor(DMA2Dx, (outgreen | outred | DMA2D_ColorStruct->OutputBlue | outalpha)); in LL_DMA2D_ConfigOutputColor()
459 uint32_t LL_DMA2D_GetOutputBlueColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputBlueColor() argument
464 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputBlueColor()
470 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
474 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
478 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
482 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
486 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFU)); in LL_DMA2D_GetOutputBlueColor()
503 uint32_t LL_DMA2D_GetOutputGreenColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputGreenColor() argument
508 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputGreenColor()
514 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
518 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
522 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
526 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x3E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
530 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF0U) >> 4U); in LL_DMA2D_GetOutputGreenColor()
547 uint32_t LL_DMA2D_GetOutputRedColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputRedColor() argument
552 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputRedColor()
558 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
562 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
566 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF800U) >> 11U); in LL_DMA2D_GetOutputRedColor()
570 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7C00U) >> 10U); in LL_DMA2D_GetOutputRedColor()
574 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF00U) >> 8U); in LL_DMA2D_GetOutputRedColor()
591 uint32_t LL_DMA2D_GetOutputAlphaColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputAlphaColor() argument
596 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputAlphaColor()
602 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF000000U) >> 24U); in LL_DMA2D_GetOutputAlphaColor()
610 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x8000U) >> 15U); in LL_DMA2D_GetOutputAlphaColor()
614 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF000U) >> 12U); in LL_DMA2D_GetOutputAlphaColor()
627 void LL_DMA2D_ConfigSize(DMA2D_TypeDef *DMA2Dx, uint32_t NbrOfLines, uint32_t NbrOfPixelsPerLines) in LL_DMA2D_ConfigSize() argument
629 MODIFY_REG(DMA2Dx->NLR, (DMA2D_NLR_PL | DMA2D_NLR_NL), \ in LL_DMA2D_ConfigSize()