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

Interface for MIPI DSI host drivers. More...

Data Structures

struct  pbl_mipi_dsi_msg
 A packet to send, and what to read back. More...
 
struct  pbl_mipi_dsi_host_ops
 Host operations. More...
 
struct  pbl_mipi_dsi_host
 Host. More...
 

Macros

#define PBL_MIPI_DSI_HOST_INIT(sym, _name, _init, _parent, _ops)
 Initializer of a host.
 

Detailed Description

Interface for MIPI DSI host drivers.

A driver embeds a struct pbl_mipi_dsi_host in its instance, sets it up with PBL_MIPI_DSI_HOST_INIT(), and implements the struct pbl_mipi_dsi_host_ops the class calls.


Data Structure Documentation

◆ pbl_mipi_dsi_msg

struct pbl_mipi_dsi_msg

A packet to send, and what to read back.

Data Fields
uint8_t channel Virtual channel.
bool lpm Send in low power.
uint8_t * rx_buf Buffer for the response to a read, or NULL.
size_t rx_len Bytes to read back.
const uint8_t * tx_buf Payload, the parameters of a short packet or the data of a long one.
size_t tx_len Payload length.
uint8_t type Data type.

◆ pbl_mipi_dsi_host

struct pbl_mipi_dsi_host

Host.

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

Macro Definition Documentation

◆ PBL_MIPI_DSI_HOST_INIT

#define PBL_MIPI_DSI_HOST_INIT (   sym,
  _name,
  _init,
  _parent,
  _ops 
)
Value:
{ \
.dev = PBL_DEVICE_INIT_CLASS(sym, _name, _init, _parent, &pbl_mipi_dsi_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 of a host.

Parameters
symSymbol of the host.
_nameName.
_initDevice initialization function, or NULL.
_parentParent device, or NULL.
_opsDriver operations.