PebbleOS v4.47.0-1161-g94e3d98da
Loading...
Searching...
No Matches
STM32 DMA2D

The Chrom-ART accelerator of the STM32: fills, copies with format conversion and blending, without rotation or scaling. More...

Data Structures

struct  pbl_gpu_stm32_dma2d
 STM32 DMA2D. More...
 

Macros

#define PBL_GPU_STM32_DMA2D_DEFINE(sym, _name, _base, _irq, _clk)
 Define a DMA2D.
 

Detailed Description

The Chrom-ART accelerator of the STM32: fills, copies with format conversion and blending, without rotation or scaling.


Data Structure Documentation

◆ pbl_gpu_stm32_dma2d

struct pbl_gpu_stm32_dma2d

STM32 DMA2D.

Data Fields
uintptr_t base Registers.
struct pbl_clk clk Clock.
struct pbl_gpu gpu GPU.
pbl_irq_t irq Interrupt.
struct pbl_gpu_stm32_dma2d_state * state Driver runtime state.

Macro Definition Documentation

◆ PBL_GPU_STM32_DMA2D_DEFINE

#define PBL_GPU_STM32_DMA2D_DEFINE (   sym,
  _name,
  _base,
  _irq,
  _clk 
)
Value:
static struct pbl_gpu_stm32_dma2d_state sym##_dma2d_state; \
PBL_DEVICE_INSTANCE(sym, struct pbl_gpu_stm32_dma2d, struct pbl_gpu, gpu){ \
.gpu = PBL_GPU_INIT( \
sym, _name, nullptr, &pbl_gpu_stm32_dma2d_ops, \
.state = &sym##_dma2d_state, \
.base = (_base), \
.irq = (_irq), \
.clk = _clk, \
}; \
PBL_IRQ_CONNECT_NUM(_irq, CONFIG_GPU_STM32_DMA2D_IRQ_PRIO, pbl_gpu_stm32_dma2d_irq_handler, \
&sym##_inst, 0)
STM32 DMA2D.
Definition stm32_dma2d.h:29
A GPU.
Definition gpu.h:202
#define PBL_GPU_STATE_DEFINE(sym)
Define the class state of GPU sym, for the PBL_*_DEFINE() macro of a driver.
Definition gpu.h:221
#define PBL_GPU_INIT(sym, _name, _parent, _ops,...)
Initializer for the struct pbl_gpu of GPU sym.
Definition gpu.h:234
@ PBL_GPU_FORMAT_RGB565
16 bits per pixel: 5 of red, 6 of green and 5 of blue, from the most significant bit.
Definition gpu.h:60
@ PBL_GPU_FORMAT_A8
8 bits per pixel, alpha only: the color comes from the blit.
Definition gpu.h:66
@ PBL_GPU_FORMAT_ARGB8888
32 bits per pixel: 8 of alpha, red, green and blue, from the most significant bit.
Definition gpu.h:64
@ PBL_GPU_FORMAT_RGB888
24 bits per pixel: 8 of red, green and blue, from the most significant bit.
Definition gpu.h:62
#define PBL_BIT(n)
Unsigned 32-bit value with a single bit set.
Definition bits.h:31

Define a DMA2D.

Parameters
symSymbol.
_nameName.
_baseBase address of the registers.
_irqInterrupt.
_clkClock, a struct pbl_clk initializer.