PebbleOS v4.47.0-327-g7753e801d
Loading...
Searching...
No Matches
CO5300

Panel driver for AMOLED panels on the ChipOne CO5300 driver IC. More...

Data Structures

struct  pbl_panel_co5300
 CO5300 panel. More...
 
struct  pbl_panel_co5300_backlight
 Brightness of a CO5300 panel. More...
 

Macros

#define PBL_PANEL_CO5300_DEFINE(sym, _name, _dbi, _reset, _bus_max_hz, _width, _height, _x, _y)
 Define a CO5300 panel and its brightness.
 

Detailed Description

Panel driver for AMOLED panels on the ChipOne CO5300 driver IC.

The panel has its own frame memory, written in RGB565 over quad SPI by its MIPI DBI host, in pairs of rows. Being an AMOLED, it has no backlight: its brightness is a DCS command, which the driver gives as a Backlight of the panel, sym_backlight. A brightness set while the panel is off is sent when it turns on.


Data Structure Documentation

◆ pbl_panel_co5300

struct pbl_panel_co5300

CO5300 panel.

Data Fields
const struct pbl_mipi_dbi * dbi MIPI DBI host.
struct pbl_panel panel Panel, child of its MIPI DBI host.
struct pbl_gpio reset Reset line, active while the IC is held in reset.
struct pbl_panel_co5300_state * state Driver runtime state.

◆ pbl_panel_co5300_backlight

struct pbl_panel_co5300_backlight

Brightness of a CO5300 panel.

Data Fields
struct pbl_backlight backlight Backlight, child of the panel.
const struct pbl_panel_co5300 * co5300 Panel.

Macro Definition Documentation

◆ PBL_PANEL_CO5300_DEFINE

#define PBL_PANEL_CO5300_DEFINE (   sym,
  _name,
  _dbi,
  _reset,
  _bus_max_hz,
  _width,
  _height,
  _x,
  _y 
)
Value:
extern const struct pbl_backlight sym##_backlight; \
PBL_DEVICE_STATE_DEFINE(sym); \
static struct pbl_panel_co5300_state sym##_co5300_state; \
static const struct pbl_panel_timing sym##_timing = { \
.hactive = (_width), \
.hback_porch = (_x), \
.vactive = (_height), \
.vback_porch = (_y), \
}; \
PBL_DEVICE_INSTANCE(sym, struct pbl_panel_co5300, struct pbl_panel, panel){ \
.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); \
PBL_DEVICE_INSTANCE(sym##_backlight, struct pbl_panel_co5300_backlight, struct pbl_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.

Parameters
symSymbol of the panel.
_nameName.
_dbiMIPI DBI host.
_resetReset line, from PBL_GPIO().
_bus_max_hzFastest clock of the quad SPI bus, in Hz.
_widthVisible columns.
_heightVisible lines.
_xFirst visible column in the frame memory.
_yFirst visible line in the frame memory.