Zephyr API Documentation
3.6.0
A Scalable Open Source RTOS
|
|
3.6.0 |
Public APIs for MIPI-DBI drivers. More...
#include <zephyr/device.h>
#include <zephyr/drivers/display.h>
#include <zephyr/display/mipi_display.h>
#include <zephyr/drivers/spi.h>
Go to the source code of this file.
Data Structures | |
struct | mipi_dbi_config |
MIPI DBI controller configuration. More... | |
struct | mipi_dbi_driver_api |
MIPI-DBI host driver API. More... | |
Macros | |
#define | MIPI_DBI_MODE_SPI_3WIRE 0x1 |
SPI 3 wire (Type C1). | |
#define | MIPI_DBI_MODE_SPI_4WIRE 0x2 |
SPI 4 wire (Type C3). | |
#define | MIPI_DBI_SPI_CONFIG_DT(node_id, operation_, delay_) |
initialize a MIPI DBI SPI configuration struct from devicetree | |
Functions | |
static int | mipi_dbi_command_write (const struct device *dev, const struct mipi_dbi_config *config, uint8_t cmd, const uint8_t *data, size_t len) |
Write a command to the display controller. | |
static int | mipi_dbi_command_read (const struct device *dev, const struct mipi_dbi_config *config, uint8_t *cmds, size_t num_cmd, uint8_t *response, size_t len) |
Read a command response from the display controller. | |
static int | mipi_dbi_write_display (const struct device *dev, const struct mipi_dbi_config *config, const uint8_t *framebuf, struct display_buffer_descriptor *desc, enum display_pixel_format pixfmt) |
Write a display buffer to the display controller. | |
static int | mipi_dbi_reset (const struct device *dev, uint32_t delay) |
Resets attached display controller. | |
Public APIs for MIPI-DBI drivers.
MIPI-DBI defines the following 3 interfaces: Type A: Motorola 6800 type parallel bus Type B: Intel 8080 type parallel bus Type C: SPI Type (1 bit bus) with 3 options: