MIPI_DSI APIs. More...
Data Structures | |
| struct | mipi_dsi_msg |
| struct | mipi_video_para |
| struct | mipi_dsi_config |
Typedefs | |
| typedef enum mipi_dsi_tx_cmd | mipi_dsi_tx_cmd_t |
| typedef enum mipi_dcs_cmd | mipi_dcs_cmd_t |
| typedef enum mipi_dsi_pixel_format | mipi_dsi_pixel_format_t |
| typedef enum mipi_dsi_video_mode | mipi_dsi_video_mode_t |
| typedef struct mipi_dsi_msg | mipi_dsi_msg_t |
| typedef struct mipi_video_para | mipi_video_para_t |
| typedef struct mipi_dsi_config | mipi_dsi_config_t |
Functions | |
| void | mipi_dsi_get_defconfig_on_video (mipi_dsi_config_t *cfg) |
| get MIPI_DSI default config on video mode More... | |
| void | mipi_dsi_init (MIPI_DSI_Type *ptr, mipi_dsi_config_t *cfg) |
| MIPI_DSI init. More... | |
| void | mipi_dsi_phy_poweron (MIPI_DSI_Type *ptr) |
| MIPI_DSI phy interface power on. More... | |
| void | mipi_dsi_phy_powerdown (MIPI_DSI_Type *ptr) |
| MIPI_DSI phy interface power down. More... | |
| void | mipi_dsi_video_mode_hs_transfer_enable (MIPI_DSI_Type *ptr) |
| MIPI_DSI hs transfer start. More... | |
| void | mipi_dsi_video_mode_hs_transfer_disable (MIPI_DSI_Type *ptr) |
| MIPI_DSI hs transfer stop. More... | |
| int | mipi_dsi_lp_cmd_transfer (MIPI_DSI_Type *ptr, const mipi_dsi_msg_t *msg) |
| transmit data using mipi dsi message in low power mode More... | |
| int | mipi_dsi_set_maximum_return_packet_size (MIPI_DSI_Type *ptr, uint8_t channel, uint16_t value) |
| specify the maximum size of the the payload in a long packet transmitted from the peripheral back to the host processor More... | |
| int | mipi_dsi_generic_write (MIPI_DSI_Type *ptr, uint8_t channel, const void *payload, uint16_t size) |
| transmit data using a generic write packet More... | |
| int | mipi_dsi_generic_read (MIPI_DSI_Type *ptr, uint8_t channel, const void *params, uint16_t num_params, void *data, uint16_t size) |
| receive data using a generic read packet More... | |
| int | mipi_dsi_dcs_write_buffer (MIPI_DSI_Type *ptr, uint8_t channel, const void *data, uint16_t len) |
| transmit a DCS command with payload More... | |
| int | mipi_dsi_dcs_write (MIPI_DSI_Type *ptr, uint8_t channel, uint8_t cmd, const void *data, uint16_t len) |
| send DCS write command More... | |
| int | mipi_dsi_dcs_read (MIPI_DSI_Type *ptr, uint8_t channel, uint8_t cmd, void *data, uint16_t len) |
| send DCS read request command More... | |
MIPI_DSI APIs.
| typedef enum mipi_dcs_cmd mipi_dcs_cmd_t |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
| typedef struct mipi_dsi_config mipi_dsi_config_t |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
| typedef struct mipi_dsi_msg mipi_dsi_msg_t |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
mipi_dsi_msg_t - read/write DSI buffer
| typedef enum mipi_dsi_pixel_format mipi_dsi_pixel_format_t |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
| typedef enum mipi_dsi_tx_cmd mipi_dsi_tx_cmd_t |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
| typedef enum mipi_dsi_video_mode mipi_dsi_video_mode_t |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
| typedef struct mipi_video_para mipi_video_para_t |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
| enum mipi_dcs_cmd |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
#include <drivers/inc/hpm_mipi_dsi_drv.h>
| Enumerator | |
|---|---|
| MIPI_DSI_FMT_RGB888 | |
| MIPI_DSI_FMT_RGB666 | |
| MIPI_DSI_FMT_RGB666_PACKED | |
| MIPI_DSI_FMT_RGB565 | |
| enum mipi_dsi_tx_cmd |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
| enum mipi_dsi_video_mode |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
| Enumerator | |
|---|---|
| MIPI_DSI_VIDEO_MODE_SYNC_PULSE | |
| MIPI_DSI_VIDEO_MODE_SYNC_EVENT | |
| MIPI_DSI_VIDEO_MODE_BURST | |
| int mipi_dsi_dcs_read | ( | MIPI_DSI_Type * | ptr, |
| uint8_t | channel, | ||
| uint8_t | cmd, | ||
| void * | data, | ||
| uint16_t | len | ||
| ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
send DCS read request command
| ptr | MIPI_DSI base address |
| channel | virtual channel |
| cmd | DCS command |
| data | buffer in which to receive data |
| len | size of receive buffer |
| int mipi_dsi_dcs_write | ( | MIPI_DSI_Type * | ptr, |
| uint8_t | channel, | ||
| uint8_t | cmd, | ||
| const void * | data, | ||
| uint16_t | len | ||
| ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
send DCS write command
| ptr | MIPI_DSI base address |
| channel | virtual channel |
| cmd | DCS command |
| data | buffer containing the command payload |
| len | command payload length |
This function will automatically choose the right data type depending on the command payload length.
| int mipi_dsi_dcs_write_buffer | ( | MIPI_DSI_Type * | ptr, |
| uint8_t | channel, | ||
| const void * | data, | ||
| uint16_t | len | ||
| ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
transmit a DCS command with payload
| ptr | MIPI_DSI base address |
| channel | virtual channel |
| data | buffer containing data to be transmitted |
| len | size of transmission buffer |
This function will automatically choose the right data type depending on the command payload length.
| int mipi_dsi_generic_read | ( | MIPI_DSI_Type * | ptr, |
| uint8_t | channel, | ||
| const void * | params, | ||
| uint16_t | num_params, | ||
| void * | data, | ||
| uint16_t | size | ||
| ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
receive data using a generic read packet
| ptr | MIPI_DSI base address |
| channel | virtual channel |
| params | buffer containing the request parameters |
| num_params | number of request parameters |
| data | buffer in which to return the received data |
| size | size of receive buffer |
This function will automatically choose the right data type depending on the number of parameters passed in.
| int mipi_dsi_generic_write | ( | MIPI_DSI_Type * | ptr, |
| uint8_t | channel, | ||
| const void * | payload, | ||
| uint16_t | size | ||
| ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
transmit data using a generic write packet
| ptr | MIPI_DSI base address |
| channel | virtual channel |
| payload | buffer containing the payload |
| size | size of payload buffer |
This function will automatically choose the right data type depending on the payload length.
| void mipi_dsi_get_defconfig_on_video | ( | mipi_dsi_config_t * | cfg | ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
get MIPI_DSI default config on video mode
| cfg | MIPI_DSI default config |
| void mipi_dsi_init | ( | MIPI_DSI_Type * | ptr, |
| mipi_dsi_config_t * | cfg | ||
| ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
MIPI_DSI init.
| ptr | MIPI_DSI base address |
| cfg | config of MIPI_DSI |
| int mipi_dsi_lp_cmd_transfer | ( | MIPI_DSI_Type * | ptr, |
| const mipi_dsi_msg_t * | msg | ||
| ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
transmit data using mipi dsi message in low power mode
| ptr | MIPI_DSI base address |
| msg | MPI_DSI message |
| void mipi_dsi_phy_powerdown | ( | MIPI_DSI_Type * | ptr | ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
MIPI_DSI phy interface power down.
| ptr | MIPI_DSI base address |
| void mipi_dsi_phy_poweron | ( | MIPI_DSI_Type * | ptr | ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
MIPI_DSI phy interface power on.
| ptr | MIPI_DSI base address |
| int mipi_dsi_set_maximum_return_packet_size | ( | MIPI_DSI_Type * | ptr, |
| uint8_t | channel, | ||
| uint16_t | value | ||
| ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
specify the maximum size of the the payload in a long packet transmitted from the peripheral back to the host processor
| ptr | MIPI_DSI base address |
| channel | virtual channel |
| value | the maximum size of the payload |
| void mipi_dsi_video_mode_hs_transfer_disable | ( | MIPI_DSI_Type * | ptr | ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
MIPI_DSI hs transfer stop.
| ptr | MIPI_DSI base address |
| void mipi_dsi_video_mode_hs_transfer_enable | ( | MIPI_DSI_Type * | ptr | ) |
#include <drivers/inc/hpm_mipi_dsi_drv.h>
MIPI_DSI hs transfer start.
| ptr | MIPI_DSI base address |