Interface for panel drivers.
More...
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.
◆ pbl_panel
◆ PBL_PANEL_INIT
| #define PBL_PANEL_INIT |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_init, |
|
|
|
_parent, |
|
|
|
_ops, |
|
|
|
_timing, |
|
|
|
_bus_format, |
|
|
|
... |
|
) |
| |
Value: { \
.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
-
| sym | Symbol of the panel instance. |
| _name | Name. |
| _init | Driver device init. |
| _parent | Parent device, or NULL. |
| _ops | Driver operations. |
| _timing | Timing. |
| _bus_format | Bus format. |
| ... | Other properties, designated initializers of struct pbl_panel_props. |