Display driver for the STM32 LTDC, sending frames to a panel with frame memory.
More...
|
| #define | PBL_DISPLAY_STM32_LTDC_DEFINE(sym, _name, _base, _clk, _panel, _bridge, _rotation, _width, _height, _format, _fb, _fb_size, _fb_ram) |
| | Define the LTDC.
|
| |
Display driver for the STM32 LTDC, sending frames to a panel with frame memory.
The LTDC sends the rows of an update through its Display bridge, a DSI host in adapted command mode, to the frame memory of the panel, straight from the buffer given, as ST does on its boards: in two halves, left and right, the first from the tearing effect of the panel and the second once the first is out, each written where the scan of the panel is not. The panel takes the frame rotated by the devicetree rotation of the panel, turned by a further 180 degrees on request. The framebuffer the board reserves holds the frame the panel gets first.
◆ pbl_display_stm32_ltdc
| struct pbl_display_stm32_ltdc |
| Data Fields |
|
uintptr_t |
base |
Registers. |
|
const struct pbl_display_bridge * |
bridge |
Bridge to the panel. |
|
struct pbl_clk |
clk |
Pixel clock. |
|
struct pbl_display |
disp |
Display. |
|
const struct pbl_panel * |
panel |
Panel. |
|
uint16_t |
rotation |
Rotation of the panel, in degrees counterclockwise. |
|
struct pbl_display_stm32_ltdc_state * |
state |
Driver runtime state. |
◆ PBL_DISPLAY_STM32_LTDC_DEFINE
| #define PBL_DISPLAY_STM32_LTDC_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_base, |
|
|
|
_clk, |
|
|
|
_panel, |
|
|
|
_bridge, |
|
|
|
_rotation, |
|
|
|
_width, |
|
|
|
_height, |
|
|
|
_format, |
|
|
|
_fb, |
|
|
|
_fb_size, |
|
|
|
_fb_ram |
|
) |
| |
Value: static_assert((_rotation) % 90 == 0 && (_rotation) < 360, "rotation of 0, 90, 180 or 270"); \
PBL_DISPLAY_STATE_DEFINE(sym); \
static struct pbl_display_stm32_ltdc_state sym##_ltdc_state; \
_height, _format, false, _fb, _fb_size, _fb_ram), \
.state = &sym##_ltdc_state, .base = (_base), .clk = _clk, .panel = (_panel), \
.bridge = (_bridge), .rotation = (_rotation), \
}
LTDC.
Definition stm32_ltdc.h:56
A display.
Definition display.h:146
#define PBL_DISPLAY_INIT_FRAMEBUFFER(sym, _name, _parent, _ops, _width, _height, _format, _rotated, _fb, _fb_size, _fb_ram,...)
Initializer for the struct pbl_display of display sym, with the memory the board reserves for its fra...
Definition display.h:217
Define the LTDC.
- Parameters
-
| sym | Symbol of the display. |
| _name | Name. |
| _base | Registers. |
| _clk | Pixel clock, from PBL_CLK(). |
| _panel | Panel. |
| _bridge | Bridge to the panel. |
| _rotation | Rotation of the panel: 0, 90, 180 or 270 degrees. |
| _width | Width of the framebuffer, in pixels. |
| _height | Height of the framebuffer, in pixels. |
| _format | Format of the framebuffer, a pbl_display_format. |
| _fb | Address of the framebuffer. |
| _fb_size | Its size, in bytes. |
| _fb_ram | RAM device the framebuffer is in, or NULL. |