Lines Matching refs:DMA2Dx

139 ErrorStatus LL_DMA2D_DeInit(const DMA2D_TypeDef *DMA2Dx)  in LL_DMA2D_DeInit()  argument
144 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_DeInit()
146 if (DMA2Dx == DMA2D) in LL_DMA2D_DeInit()
173 ErrorStatus LL_DMA2D_Init(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_InitTypeDef *DMA2D_InitStruct) in LL_DMA2D_Init() argument
184 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_Init()
200 tmp = LL_DMA2D_IsTransferOngoing(DMA2Dx); in LL_DMA2D_Init()
201 tmp1 = LL_DMA2D_FGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
202 tmp2 = LL_DMA2D_BGND_IsEnabledCLUTLoad(DMA2Dx); in LL_DMA2D_Init()
206 MODIFY_REG(DMA2Dx->CR, (DMA2D_CR_MODE | DMA2D_CR_LOM), \ in LL_DMA2D_Init()
220 MODIFY_REG(DMA2Dx->OPFCCR, regMask, regValue); in LL_DMA2D_Init()
223 LL_DMA2D_SetLineOffset(DMA2Dx, DMA2D_InitStruct->LineOffset); in LL_DMA2D_Init()
226 … LL_DMA2D_ConfigSize(DMA2Dx, DMA2D_InitStruct->NbrOfLines, DMA2D_InitStruct->NbrOfPixelsPerLines); in LL_DMA2D_Init()
229 LL_DMA2D_SetOutputMemAddr(DMA2Dx, DMA2D_InitStruct->OutputMemoryAddress); in LL_DMA2D_Init()
237 LL_DMA2D_ConfigOutputColor(DMA2Dx, &dma2d_colorstruct); in LL_DMA2D_Init()
282 void LL_DMA2D_ConfigLayer(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_LayerCfgTypeDef *DMA2D_LayerCfg, uint32_t… in LL_DMA2D_ConfigLayer() argument
302 LL_DMA2D_BGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
305 LL_DMA2D_BGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
309 MODIFY_REG(DMA2Dx->BGPFCCR, \ in LL_DMA2D_ConfigLayer()
318 … LL_DMA2D_BGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
321 LL_DMA2D_BGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
326 LL_DMA2D_FGND_SetMemAddr(DMA2Dx, DMA2D_LayerCfg->MemoryAddress); in LL_DMA2D_ConfigLayer()
329 LL_DMA2D_FGND_SetLineOffset(DMA2Dx, DMA2D_LayerCfg->LineOffset); in LL_DMA2D_ConfigLayer()
333 MODIFY_REG(DMA2Dx->FGPFCCR, \ in LL_DMA2D_ConfigLayer()
342 … LL_DMA2D_FGND_SetColor(DMA2Dx, DMA2D_LayerCfg->Red, DMA2D_LayerCfg->Green, DMA2D_LayerCfg->Blue); in LL_DMA2D_ConfigLayer()
345 LL_DMA2D_FGND_SetCLUTMemAddr(DMA2Dx, DMA2D_LayerCfg->CLUTMemoryAddress); in LL_DMA2D_ConfigLayer()
382 void LL_DMA2D_ConfigOutputColor(DMA2D_TypeDef *DMA2Dx, LL_DMA2D_ColorTypeDef *DMA2D_ColorStruct) in LL_DMA2D_ConfigOutputColor() argument
389 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_ConfigOutputColor()
427 LL_DMA2D_SetOutputColor(DMA2Dx, (outgreen | outred | DMA2D_ColorStruct->OutputBlue | outalpha)); in LL_DMA2D_ConfigOutputColor()
441 uint32_t LL_DMA2D_GetOutputBlueColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputBlueColor() argument
446 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputBlueColor()
452 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
456 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFFU)); in LL_DMA2D_GetOutputBlueColor()
460 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
464 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x1FU)); in LL_DMA2D_GetOutputBlueColor()
468 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFU)); in LL_DMA2D_GetOutputBlueColor()
485 uint32_t LL_DMA2D_GetOutputGreenColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputGreenColor() argument
490 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputGreenColor()
496 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
500 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF00U) >> 8U); in LL_DMA2D_GetOutputGreenColor()
504 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
508 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x3E0U) >> 5U); in LL_DMA2D_GetOutputGreenColor()
512 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF0U) >> 4U); in LL_DMA2D_GetOutputGreenColor()
529 uint32_t LL_DMA2D_GetOutputRedColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputRedColor() argument
534 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputRedColor()
540 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
544 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF0000U) >> 16U); in LL_DMA2D_GetOutputRedColor()
548 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF800U) >> 11U); in LL_DMA2D_GetOutputRedColor()
552 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x7C00U) >> 10U); in LL_DMA2D_GetOutputRedColor()
556 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF00U) >> 8U); in LL_DMA2D_GetOutputRedColor()
573 uint32_t LL_DMA2D_GetOutputAlphaColor(const DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode) in LL_DMA2D_GetOutputAlphaColor() argument
578 assert_param(IS_DMA2D_ALL_INSTANCE(DMA2Dx)); in LL_DMA2D_GetOutputAlphaColor()
584 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xFF000000U) >> 24U); in LL_DMA2D_GetOutputAlphaColor()
592 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0x8000U) >> 15U); in LL_DMA2D_GetOutputAlphaColor()
596 color = (uint32_t)(READ_BIT(DMA2Dx->OCOLR, 0xF000U) >> 12U); in LL_DMA2D_GetOutputAlphaColor()
609 void LL_DMA2D_ConfigSize(DMA2D_TypeDef *DMA2Dx, uint32_t NbrOfLines, uint32_t NbrOfPixelsPerLines) in LL_DMA2D_ConfigSize() argument
611 MODIFY_REG(DMA2Dx->NLR, (DMA2D_NLR_PL | DMA2D_NLR_NL), \ in LL_DMA2D_ConfigSize()