PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
MIPI DBI host drivers

Interface for MIPI DBI host drivers. More...

Data Structures

struct  pbl_mipi_dbi_ops
 Driver operations. More...
 
struct  pbl_mipi_dbi
 MIPI DBI host. More...
 

Macros

#define PBL_MIPI_DBI_INIT(sym, _name, _parent, _ops)
 Initializer for the struct pbl_mipi_dbi of host sym.
 

Detailed Description

Interface for MIPI DBI host drivers.

A driver embeds a struct pbl_mipi_dbi in its instance, sets it up with PBL_MIPI_DBI_INIT(), and implements the struct pbl_mipi_dbi_ops the class calls.


Data Structure Documentation

◆ pbl_mipi_dbi

struct pbl_mipi_dbi

MIPI DBI host.

Data Fields
struct pbl_device dev Device.
const struct pbl_mipi_dbi_ops * ops Driver operations.

Macro Definition Documentation

◆ PBL_MIPI_DBI_INIT

#define PBL_MIPI_DBI_INIT (   sym,
  _name,
  _parent,
  _ops 
)
Value:
{ \
.dev = PBL_DEVICE_INIT_CLASS(sym, _name, nullptr, _parent, &pbl_mipi_dbi_class), \
.ops = (_ops), \
}
#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_mipi_dbi of host sym.

The host has no init of its own: it is a function of its controller, which sets it up before it brings the panel up.

Parameters
symSymbol of the host instance, with its state defined by PBL_DEVICE_STATE_DEFINE().
_nameName.
_parentParent device, or NULL.
_opsDriver operations.