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

Interface for HyperBus controller drivers. More...

Data Structures

struct  pbl_hyperbus_ops
 Driver operations. More...
 

Macros

#define PBL_HYPERBUS_INIT(sym, _name, _parent, _ops)
 Initializer for the struct pbl_hyperbus of controller sym.
 

Detailed Description

Interface for HyperBus controller drivers.

A driver embeds a struct pbl_hyperbus in its instance, sets it up with PBL_HYPERBUS_INIT(), and implements the struct pbl_hyperbus_ops the class calls.

Macro Definition Documentation

◆ PBL_HYPERBUS_INIT

#define PBL_HYPERBUS_INIT (   sym,
  _name,
  _parent,
  _ops 
)
Value:
{ \
.dev = PBL_DEVICE_INIT_CLASS(sym, _name, nullptr, _parent, &pbl_hyperbus_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_hyperbus of controller sym.

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