From 986a36fa3d73c2bcc34b4027bf1ca7ab273d40bf Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Mon, 16 May 2022 03:04:34 +0000 Subject: [PATCH] update en/device-dev/driver/driver-platform-mipidsi-des.md. Signed-off-by: king_he <6384784@qq.com> --- .../driver/driver-platform-mipidsi-des.md | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/en/device-dev/driver/driver-platform-mipidsi-des.md b/en/device-dev/driver/driver-platform-mipidsi-des.md index c7cecdc8e1..3845f8078c 100644 --- a/en/device-dev/driver/driver-platform-mipidsi-des.md +++ b/en/device-dev/driver/driver-platform-mipidsi-des.md @@ -2,18 +2,18 @@ ## Overview -- The Display Serial Interface \(DSI\) is a specification stipulated by the Mobile Industry Processor Interface \(MIPI\) Alliance, aiming to reduce the cost of display controllers in a mobile device. It defines a serial bus and communication protocol among the host, the source of image data, and the target device. In this way, the DSI can send pixel data or commands to peripherals \(usually LCDs or similar display devices\) in serial mode, or reads information such as status and pixel from the peripherals. +The Display Serial Interface \(DSI\) is a specification stipulated by the Mobile Industry Processor Interface \(MIPI\) Alliance, aiming to reduce the cost of display controllers in a mobile device. It defines a serial bus and communication protocol among the host, the source of image data, and the target device. In this way, the DSI can send pixel data or commands to peripherals \(usually LCDs or similar display devices\) in serial mode, or reads information such as status and pixel from the peripherals. -- MIPI DSI is capable of working in both high speed \(HS\) mode and low power \(LP\) mode. All data lanes can only travel from the DSI host to a peripheral in HS mode, except the first data lane, which can also receive data such as status information and pixels from the peripheral in LP mode. The clock lane is dedicated to transmitting synchronization clock signals in HS mode. -- [Figure 1](#fig1122611461203) shows a simplified DSI interface. Conceptually, a DSI-compliant interface has the same features as interfaces complying with DBI-2 and DPI-2 standards. It sends pixels or commands to a peripheral and can read status or pixel information from the peripheral. The main difference is that the DSI serializes all pixel data, commands, and events that, in traditional interfaces, are conveyed to and from the peripheral on a parallel data bus with additional control signals. +MIPI DSI is capable of working in both high speed \(HS\) mode and low power \(LP\) mode. All data lanes can only travel from the DSI host to a peripheral in HS mode, except the first data lane, which can also receive data such as status information and pixels from the peripheral in LP mode. The clock lane is dedicated to transmitting synchronization clock signals in HS mode. +[Figure 1](#fig1122611461203) shows a simplified DSI interface. Conceptually, a DSI-compliant interface has the same features as interfaces complying with DBI-2 and DPI-2 standards. It sends pixels or commands to a peripheral and can read status or pixel information from the peripheral. The main difference is that the DSI serializes all pixel data, commands, and events that, in traditional interfaces, are conveyed to and from the peripheral on a parallel data bus with additional control signals. - **Figure 1** DSI transmitting and receiving interface + **Figure 1** DSI transmitting and receiving interface ![](figures/dsi-transmitting-and-receiving-interface.png "dsi-transmitting-and-receiving-interface") ## Available APIs -**Table 1** APIs for MIPI DSI +**Table 1** APIs for MIPI DSI

Capability

@@ -75,25 +75,25 @@
->![](../public_sys-resources/icon-note.gif) **NOTE:** +>![](../public_sys-resources/icon-note.gif) **NOTE**
>All functions described in this document can be called only in kernel space. ## Usage Guidelines ### How to Use -[Figure 2](#fig129103491241) shows the process of using a MIPI DSI device. +[Figure 2](#fig129103491241) shows the process of using a MIPI DSI device. -**Figure 2** Process of using a MIPI DSI device +**Figure 2** Process of using a MIPI DSI device ![](figures/process-of-using-a-mipi-dsi-device.png) ### Obtaining a MIPI DSI Device Handle -Before performing MIPI DSI communication, obtain a MIPI DSI device handle by calling **MipiDsiOpen**. This function returns a MIPI DSI device handle with a specified channel ID. +Before performing MIPI DSI communication, obtain a MIPI DSI device handle by calling **MipiDsiOpen**. This function returns a MIPI DSI device handle with a specified channel ID. DevHandle MipiDsiOpen\(uint8\_t id\); -**Table 2** Description of **MipiDsiOpen** +**Table 2** Description of **MipiDsiOpen**

Parameter

@@ -125,7 +125,7 @@ DevHandle MipiDsiOpen\(uint8\_t id\);
-The following example shows how to obtain a MIPI DSI device handle with the channel ID **0**: +The following example shows how to obtain a MIPI DSI device handle with the channel ID **0**: ``` DevHandle mipiDsiHandle = NULL; /* Device handle */ @@ -145,7 +145,7 @@ if (mipiDsiHandle == NULL) { int32\_t MipiDsiSetCfg\(DevHandle handle, struct MipiCfg \*cfg\); -**Table 3** Description of **MipiDsiSetCfg** +**Table 3** Description of **MipiDsiSetCfg**

Parameter

@@ -213,7 +213,7 @@ if (ret != 0) { int32\_t MipiDsiGetCfg\(DevHandle handle, struct MipiCfg \*cfg\); -**Table 4** Description of **MipiDsiGetCfg** +**Table 4** Description of **MipiDsiGetCfg**

Parameter

@@ -267,7 +267,7 @@ if (ret != HDF_SUCCESS) { int32\_t MipiDsiTx\(PalHandle handle, struct DsiCmdDesc \*cmd\); -**Table 5** Description of **MipiDsiTx** +**Table 5** Description of **MipiDsiTx**

Parameter

@@ -335,7 +335,7 @@ HdfFree(cmd); int32\_t MipiDsiRx\(DevHandle handle, struct DsiCmdDesc \*cmd, uint32\_t readLen, uint8\_t \*out\); -**Table 6** Description of **MipiDsiRx** +**Table 6** Description of **MipiDsiRx**

Parameter

@@ -417,9 +417,9 @@ After the MIPI DSI communication, release the MIPI DSI device handle by calling void MipiDsiClose\(DevHandle handle\); -This function releases the resources requested by **MipiDsiOpen**. +This function releases the resources requested by **MipiDsiOpen**. -**Table 7** Description of **MipiDsiClose** +**Table 7** Description of **MipiDsiClose**

Parameter

@@ -536,5 +536,4 @@ void PalMipiDsiTestSample(void) /* Release the MIPI DSI device handle. */ MipiDsiClose(handle); } -``` - +``` \ No newline at end of file -- GitLab