MCUXpresso SDK API Reference Manual
Rev. 0
NXP Semiconductors
|
The MIPI DSI driver supports both video mode and command mode. More...
For both modes, first call DSI_Init and DSI_InitDphy to initialize the module and enable the D-PHY. The DSI driver provides function DSI_GetDphyDefaultConfig to help with the D-PHY timing parameter calculation. With the input txHsBitClk frequency and txEscClk frequency, the function can generate the timing parameters based on the D-PHY specification. The user can use the parameter directly, or change them according to the special device.
For the command mode, DSI driver provides polling method and interrupt method for the data transfer. At the same time, there are also small functional APIs so that user can construct them for their special purpose.
When the peripheral is configured through command mode, the video mode can be started by DSI_SetDpiConfig.
DSI driver provides polling method and interrupt method for the command mode data transfer, they are DSI_TransferBlocking and DSI_TransferNonBlocking. The transfer is specified by the structure dsi_transfer_t.
There are two ways to construct the dsi_transfer_t.
sendDscCmd
is set to false, the dscCmd
is not used.dscCmd
. In this case, the parameter sendDscCmd
is set to true, the dscCmd
is the DSC command to send. The TX data array is sent after dscCmd
.There is an example that send DSC command set_column_address (0x2A). The two methods are actually the same.
Method 1: Include DSC command in TX data array.
Method 2: Don't include DSC command in TX data array.