PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
Panel drivers

Interface for panel drivers. More...

Data Structures

struct  pbl_panel_ops
 Panel driver operations. More...
 
struct  pbl_panel
 A panel. More...
 

Macros

#define PBL_PANEL_INIT(sym, _name, _init, _parent, _ops, _timing, _bus_format, ...)
 Initializer for the struct pbl_panel of panel sym, for the PBL_*_DEFINE() macro of a driver, with its device state defined by PBL_DEVICE_STATE_DEFINE().
 

Detailed Description

Interface for panel drivers.

A driver embeds a struct pbl_panel in its instance, sets it up with PBL_PANEL_INIT(), and implements the struct pbl_panel_ops the class calls.


Data Structure Documentation

◆ pbl_panel

struct pbl_panel

A panel.

Data Fields
struct pbl_device dev Device.
const struct pbl_panel_ops * ops Driver operations.
struct pbl_panel_props props Properties.

Macro Definition Documentation

◆ PBL_PANEL_INIT

#define PBL_PANEL_INIT (   sym,
  _name,
  _init,
  _parent,
  _ops,
  _timing,
  _bus_format,
  ... 
)
Value:
{ \
.dev = PBL_DEVICE_INIT_CLASS(sym, _name, _init, _parent, &pbl_panel_class), .ops = (_ops), \
.props = {.timing = (_timing), .bus_format = (_bus_format), __VA_ARGS__} \
}
#define PBL_DEVICE_INIT_CLASS(sym, _name, _init, _parent, _cls)
Initializer for the struct pbl_device of device instance sym, in class _cls.
Definition device.h:153

Initializer for the struct pbl_panel of panel sym, for the PBL_*_DEFINE() macro of a driver, with its device state defined by PBL_DEVICE_STATE_DEFINE().

Parameters
symSymbol of the panel instance.
_nameName.
_initDriver device init.
_parentParent device, or NULL.
_opsDriver operations.
_timingTiming.
_bus_formatBus format.
...Other properties, designated initializers of struct pbl_panel_props.