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

Interface for display bridge drivers. More...

Data Structures

struct  pbl_display_bridge_ops
 Bridge operations, callable from an interrupt. More...
 
struct  pbl_display_bridge
 A bridge. More...
 

Macros

#define PBL_DISPLAY_BRIDGE_INIT(sym, _name, _parent, _ops)
 Initializer for the struct pbl_display_bridge of bridge sym, with its device state defined by PBL_DEVICE_STATE_DEFINE().
 

Detailed Description

Interface for display bridge drivers.

A driver embeds a struct pbl_display_bridge in its instance, sets it up with PBL_DISPLAY_BRIDGE_INIT(), and implements the struct pbl_display_bridge_ops the class calls.


Data Structure Documentation

◆ pbl_display_bridge

struct pbl_display_bridge

A bridge.

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

Macro Definition Documentation

◆ PBL_DISPLAY_BRIDGE_INIT

#define PBL_DISPLAY_BRIDGE_INIT (   sym,
  _name,
  _parent,
  _ops 
)
Value:
{ \
.dev = PBL_DEVICE_INIT_CLASS(sym, _name, nullptr, _parent, &pbl_display_bridge_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_display_bridge of bridge sym, with its device state defined by PBL_DEVICE_STATE_DEFINE().

Parameters
symSymbol of the bridge instance.
_nameName.
_parentParent device, as the host the bridge is part of, or NULL.
_opsDriver operations.