Interface for MIPI DSI host drivers.
More...
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.
◆ 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
◆ PBL_MIPI_DSI_HOST_INIT
| #define PBL_MIPI_DSI_HOST_INIT |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_init, |
|
|
|
_parent, |
|
|
|
_ops |
|
) |
| |
Value: { \
.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
-
| sym | Symbol of the host. |
| _name | Name. |
| _init | Device initialization function, or NULL. |
| _parent | Parent device, or NULL. |
| _ops | Driver operations. |