Lines Matching +full:data +full:- +full:lanes
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Public APIs for MIPI-DSI drivers
16 * @brief MIPI-DSI driver APIs
17 * @defgroup mipi_dsi_interface MIPI-DSI driver APIs
27 #include <zephyr/dt-bindings/mipi_dsi/mipi_dsi.h>
33 /** MIPI-DSI display timings. */
54 * @name MIPI-DSI Device mode flags.
66 /** Enable hsync-end packets in vsync-pulse and v-porch area */
68 /** Disable hfront-porch area */
70 /** Disable hback-porch area */
72 /** Disable hsync-active area */
78 /** Device supports non-continuous clock behavior (DSI spec 5.6.1) */
80 /** Transmit data in low power */
85 /** MIPI-DSI device. */
87 /** Number of data lanes. */
103 /** MIPI-DSI read/write message. */
105 /** Payload data type. */
121 /** MIPI-DSI host driver API. */
132 * @brief Attach a new device to the MIPI-DSI bus.
134 * @param dev MIPI-DSI host device.
136 * @param mdev MIPI-DSI device description.
144 const struct mipi_dsi_driver_api *api = (const struct mipi_dsi_driver_api *)dev->api; in mipi_dsi_attach()
146 return api->attach(dev, channel, mdev); in mipi_dsi_attach()
150 * @brief Transfer data to/from a device attached to the MIPI-DSI bus.
152 * @param dev MIPI-DSI device.
156 * @return Size of the transferred data on success, negative on error.
162 const struct mipi_dsi_driver_api *api = (const struct mipi_dsi_driver_api *)dev->api; in mipi_dsi_transfer()
164 return api->transfer(dev, channel, msg); in mipi_dsi_transfer()
168 * @brief MIPI-DSI generic read.
170 * @param dev MIPI-DSI host device.
174 * @param buf Buffer where read data will be stored.
177 * @return Size of the read data on success, negative on error.
184 * @brief MIPI-DSI generic write.
186 * @param dev MIPI-DSI host device.
191 * @return Size of the written data on success, negative on error.
197 * @brief MIPI-DSI DCS read.
199 * @param dev MIPI-DSI host device.
202 * @param buf Buffer where read data will be stored.
205 * @return Size of the read data on success, negative on error.
211 * @brief MIPI-DSI DCS write.
213 * @param dev MIPI-DSI host device.
219 * @return Size of the written data on success, negative on error.
226 * @brief Detach a device from the MIPI-DSI bus
228 * @param dev MIPI-DSI host device.
230 * @param mdev MIPI-DSI device description.
238 const struct mipi_dsi_driver_api *api = (const struct mipi_dsi_driver_api *)dev->api; in mipi_dsi_detach()
240 if (api->detach == NULL) { in mipi_dsi_detach()
241 return -ENOSYS; in mipi_dsi_detach()
244 return api->detach(dev, channel, mdev); in mipi_dsi_detach()