21#ifndef __INCLUDE_NUTTX_VIDEO_MIPI_DSI_H
22#define __INCLUDE_NUTTX_VIDEO_MIPI_DSI_H
28#include <nuttx/fs/ioctl.h>
39#define MIPIDSI_GETDEVLANES _MIPIDSIIOC(1)
40#define MIPIDSI_GETDEVFMT _MIPIDSIIOC(2)
41#define MIPIDSI_GETDEVMODE _MIPIDSIIOC(3)
42#define MIPIDSI_GETDEVHSRATE _MIPIDSIIOC(4)
43#define MIPIDSI_GETDEVLPRATE _MIPIDSIIOC(5)
47#define MIPIDSI_TRANSFER _MIPIDSIIOC(6)
51#define MIPI_DSI_MSG_REQ_ACK (1 << 0)
52#define MIPI_DSI_MSG_USE_LPM (1 << 1)
54#define MIPI_DSI_MSG_AFTER_FRAME (1 << 2)
58#define MIPI_DSI_DCS_TEAR_MODE_VBLANK 0
60#define MIPI_DSI_DCS_TEAR_MODE_VHBLANK 1
66#define MIPI_DSI_FMT_RGB888 0
67#define MIPI_DSI_FMT_RGB666 1
68#define MIPI_DSI_FMT_RGB666_PACKED 2
69#define MIPI_DSI_FMT_RGB565 3
73#define MIPI_DSI_DCS_POWER_MODE_DISPLAY (1 << 2)
74#define MIPI_DSI_DCS_POWER_MODE_NORMAL (1 << 3)
75#define MIPI_DSI_DCS_POWER_MODE_SLEEP (1 << 4)
76#define MIPI_DSI_DCS_POWER_MODE_PARTIAL (1 << 5)
77#define MIPI_DSI_DCS_POWER_MODE_IDLE (1 << 6)
81#define MIPI_DSI_MODE_VIDEO (1 << 0)
82#define MIPI_DSI_MODE_VIDEO_BURST (1 << 1)
83#define MIPI_DSI_MODE_VIDEO_SYNC_PULSE (1 << 2)
84#define MIPI_DSI_MODE_VIDEO_AUTO_VERT (1 << 3)
86#define MIPI_DSI_MODE_VIDEO_HSE (1 << 4)
89#define MIPI_DSI_MODE_VIDEO_NO_HFP (1 << 5)
90#define MIPI_DSI_MODE_VIDEO_NO_HBP (1 << 6)
91#define MIPI_DSI_MODE_VIDEO_NO_HSA (1 << 7)
92#define MIPI_DSI_MODE_VSYNC_FLUSH (1 << 8)
94#define MIPI_DSI_MODE_NO_EOT_PACKET (1 << 9)
96#define MIPI_DSI_CLOCK_NON_CONTINUOUS (1 << 10)
99#define MIPI_DSI_MODE_LPM (1 << 11)
101#define MIPI_DSI_MODE_AFTER_FRAME (1 << 12)
103#define MIPI_DSI_HS_PKT_END_ALIGNED (1 << 13)
123 FAR
const void *tx_buf;
137 size_t payload_length;
138 FAR
const uint8_t *payload;
212#define EXTERN extern "C"
234bool mipi_dsi_packet_format_is_short(uint8_t type);
251bool mipi_dsi_packet_format_is_long(uint8_t type);
322int mipi_dsi_pixel_format_to_bpp(uint8_t fmt);
344 FAR
const char *name,
int channel);
445int mipi_dsi_set_maximum_return_packet_size(
485 FAR
const void *payload,
size_t size);
509 FAR
const void *params,
size_t num_params,
510 FAR
void *data,
size_t size);
532 FAR
const void *data,
size_t len);
554ssize_t mipi_dsi_dcs_write(FAR
struct mipi_dsi_device *device, uint8_t cmd,
555 FAR
const void *data,
size_t len);
574ssize_t mipi_dsi_dcs_read(FAR
struct mipi_dsi_device *device, uint8_t cmd,
575 FAR
void *data,
size_t len);
643 FAR uint8_t *format);
729 uint16_t start, uint16_t end);
749 uint16_t start, uint16_t end);
840int mipi_dsi_dcs_set_display_brightness(FAR
struct mipi_dsi_device *device,
841 uint16_t brightness);
858int mipi_dsi_dcs_get_display_brightness(FAR
struct mipi_dsi_device *device,
859 FAR uint16_t *brightness);
Definition: mipi_dsi.h:176
Definition: mipi_dsi.h:148
Definition: mipi_dsi.h:168
Definition: mipi_dsi.h:102
Definition: mipi_dsi.h:117