PBL_DEVICE_STATE_DEFINE(sym); \
static struct pbl_panel_co5300_state sym##_co5300_state; \
.vactive = (_height), \
}; \
.panel =
PBL_PANEL_INIT(sym, _name, pbl_panel_co5300_init, &pbl_panel_co5300_ops,
nullptr, \
.bus_max_hz = (_bus_max_hz), .row_multiple = 2U), \
.state = &sym##_co5300_state, \
.dbi = (_dbi), \
.reset = _reset, \
}; \
PBL_BACKLIGHT_STATE_DEFINE(sym##_backlight); \
backlight) { \
.backlight =
PBL_BACKLIGHT_INIT(sym##_backlight, _name
"_backlight", &sym##_inst.panel.dev, \
&pbl_panel_co5300_backlight_ops), \
.co5300 = &sym##_inst, \
}
Backlight.
Definition backlight.h:80
#define PBL_BACKLIGHT_INIT(sym, _name, _parent, _ops)
Initialize a struct pbl_backlight.
Definition backlight.h:117
CO5300 panel.
Definition co5300.h:36
Brightness of a CO5300 panel.
Definition co5300.h:48
uint16_t hback_porch
Columns before the visible ones.
Definition panel.h:57
uint16_t vback_porch
Lines before the visible ones.
Definition panel.h:63
uint16_t hactive
Visible columns.
Definition panel.h:55
A panel.
Definition panel.h:95
Timing of a panel scanned by its controller.
Definition panel.h:51
#define PBL_PANEL_INIT(sym, _name, _init, _ops, _deps, _timing, _bus_format,...)
Initializer for the struct pbl_panel of panel sym, for the PBL_*_DEFINE() macro of a driver,...
Definition panel.h:123
@ PBL_PANEL_BUS_FORMAT_QSPI_RGB565
Quad SPI to a panel with frame memory, on a MIPI DBI host: commands on one line with opcode 0x02 and ...
Definition panel.h:41
Define a CO5300 panel and its brightness.