VSF Documented
Macros
vsf_disp_mipi_lcd_dcs.h File Reference

Go to the source code of this file.

Macros

#define VSF_DISP_MIPI_LCD_WRITE(__CMD, __PARAM_LEN, ...)    (__CMD), (__PARAM_LEN), ##__VA_ARGS__
 
#define VSF_DISP_MIPI_LCD_DELAY_MS(__MS)    (0), (__MS)
 
#define MIPI_DCS_CMD_HEX_CODE_NOP   0x00
 
#define MIPI_DCS_CMD_NOP    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_NOP, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_SOFT_RESET   0x01
 
#define MIPI_DCS_CMD_SOFT_RESET    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SOFT_RESET, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_GET_COMPRESSION_MODE   0x03
 
#define MIPI_DCS_CMD_HEX_CODE_GET_DISPLAY_ID   0x04
 
#define MIPI_DCS_CMD_HEX_CODE_GET_ERROR_COUNT_ON_DSI   0x05
 
#define MIPI_DCS_CMD_HEX_CODE_GET_RED_CHANNEL   0x06
 
#define MIPI_DCS_CMD_HEX_CODE_GET_GREEN_CHANNEL   0x07
 
#define MIPI_DCS_CMD_HEX_CODE_GET_BLUE_CHANNEL   0x08
 
#define MIPI_DCS_CMD_HEX_CODE_GET_DISPLAY_STATUS   0x09
 
#define MIPI_DCS_CMD_HEX_CODE_GET_POWER_MODE   0x0A
 
#define MIPI_DCS_CMD_HEX_CODE_GET_ADDRESS_MODE   0x0B
 
#define MIPI_DCS_CMD_HEX_CODE_GET_PIXEL_FORMAT   0x0C
 
#define MIPI_DCS_CMD_HEX_CODE_GET_DISPLAY_MODE   0x0D
 
#define MIPI_DCS_CMD_HEX_CODE_GET_SIGNAL_MODE   0x0E
 
#define MIPI_DCS_CMD_HEX_CODE_GET_DIAGNOSTIC_RESULT   0x0F
 
#define MIPI_DCS_CMD_HEX_CODE_ENTER_SLEEP_MODE   0x10
 
#define MIPI_DCS_CMD_ENTER_SLEEP_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_SLEEP_MODE, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_EXIT_SLEEP_MODE   0x11
 
#define MIPI_DCS_CMD_EXIT_SLEEP_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_EXIT_SLEEP_MODE, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_ENTER_PARTIAL_MODE   0x12
 
#define MIPI_DCS_CMD_ENTER_PARTIAL_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_PARTIAL_MODE, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_ENTER_NORMAL_MODE   0x13
 
#define MIPI_DCS_CMD_ENTER_NORMAL_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_NORMAL_MODE, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_EXIT_INVERT_MODE   0x20
 
#define MIPI_DCS_CMD_EXIT_INVERT_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_EXIT_INVERT_MODE, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_ENTER_INVERT_MODE   0x21
 
#define MIPI_DCS_CMD_ENTER_INVERT_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_INVERT_MODE, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_GAMMA_CURVE   0x26
 
#define MIPI_DCS_CMD_GAMMA_CURVE_GC0   0x01
 
#define MIPI_DCS_CMD_GAMMA_CURVE_GC1   0x02
 
#define MIPI_DCS_CMD_GAMMA_CURVE_GC2   0x04
 
#define MIPI_DCS_CMD_GAMMA_CURVE_GC3   0x08
 
#define MIPI_DCS_CMD_SET_GAMMA_CURVE(__GC_MASK)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_GAMMA_CURVE, 0, __GC_MASK)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_OFF   0x28
 
#define MIPI_DCS_CMD_SET_DISPLAY_OFF    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_OFF, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_ON   0x29
 
#define MIPI_DCS_CMD_SET_DISPLAY_ON    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_ON, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_COLUMN_ADDRESS   0x2A
 
#define MIPI_DCS_CMD_SET_COLUMN_ADDRESS(__SC, __EC)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_PAGE_ADDRESS   0x2B
 
#define MIPI_DCS_CMD_SET_PAGE_ADDRESS(__SP, __EP)
 
#define MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_START   0x2C
 
#define MIPI_DCS_CMD_WRITE_MEMORY_START(__NUM, ...)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_START, __NUM, ##__VA_ARGS__)
 
#define MIPI_DCS_CMD_HEX_CODE_WRITE_LUT   0x2D
 
#define MIPI_DCS_CMD_WRITE_LUT(__NUM, ...)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_LUT, __NUM, ##__VA_ARGS__)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_PARTIAL_ROWS   0x30
 
#define MIPI_DCS_CMD_SET_PARTIAL_ROWS(__SR, __ER)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_PARTIAL_COLUMNS   0x31
 
#define MIPI_DCS_CMD_SET_PARTIAL_COLUMNS(__SC, __EC)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_SCROLL_AREA   0x33
 
#define MIPI_DCS_CMD_SET_SCROLL_AREA(__TFA, __VERTICAL_SCROLLING_AREA, __BFA)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_TEAR_OFF   0x34
 
#define MIPI_DCS_CMD_SET_TEAR_OFF    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_TEAR_OFF, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_TEAR_ON   0x35
 
#define MIPI_DCS_CMD_SET_TEAR_ON    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_TEAR_ON, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_ADDRESS_MODE   0x36
 
#define MIPI_DCS_PAGE_ADDRESS_TOP_TO_BOTTOM   (0 << 7)
 
#define MIPI_DCS_PAGE_ADDRESS_BOTTOM_TO_TOP   (1 << 7)
 
#define MIPI_DCS_COLUME_ADDRESS_LEFT_TO_RIGHT   (0 << 6)
 
#define MIPI_DCS_COLUME_ADDRESS_RIGHT_TO_LEFT   (1 << 6)
 
#define MIPI_DCS_PAGE_COLUMN_NORMAL_ORDER   (0 << 5)
 
#define MIPI_DCS_PAGE_COLUMN_REVERSE_ORDER   (1 << 5)
 
#define MIPI_DCS_DEVICE_REFRESH_TOP_TO_BOTTOM   (0 << 4)
 
#define MIPI_DCS_DEVICE_REFRESH_BOTTOM_TO_TOP   (1 << 4)
 
#define MIPI_DCS_DEVICE_REFRESH_RGB   (0 << 3)
 
#define MIPI_DCS_DEVICE_REFRESH_BGR   (1 << 3)
 
#define MIPI_DCS_LCD_REFRESH_LEFT_TO_RIGHT   (0 << 2)
 
#define MIPI_DCS_LCD_REFRESH_RIGHT_TO_LEFT   (1 << 2)
 
#define MIPI_DCS_FLIP_HORIZONTAL_NORMAL   (0 << 1)
 
#define MIPI_DCS_FLIP_HORIZONTAL_FLIPPED   (1 << 1)
 
#define MIPI_DCS_FLIP_VERTICAL_NORMAL   (0 << 0)
 
#define MIPI_DCS_FLIP_VERTICAL_FLIPPED   (1 << 0)
 
#define MIPI_DCS_CMD_SET_ADDRESS_MODE(__MODE_MASK)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_ADDRESS_MODE, 1, __MODE_MASK)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_SCROLL_START   0x37
 
#define MIPI_DCS_CMD_SET_SCROLL_START(__VSP)
 
#define MIPI_DCS_CMD_HEX_CODE_EXIT_IDLE_MODE   0x38
 
#define MIPI_DCS_CMD_EXIT_IDLE_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_EXIT_IDLE_MODE, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_ENTER_IDLE_MODE   0x39
 
#define MIPI_DCS_CMD_ENTER_IDLE_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_IDLE_MODE, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_PIXEL_FORMAT   0x3A
 
#define MIPI_DCS_PIXEL_FORMAT_BITS_3   0x01
 
#define MIPI_DCS_PIXEL_FORMAT_BITS_8   0x02
 
#define MIPI_DCS_PIXEL_FORMAT_BITS_12   0x03
 
#define MIPI_DCS_PIXEL_FORMAT_BITS_16   0x05
 
#define MIPI_DCS_PIXEL_FORMAT_BITS_18   0x06
 
#define MIPI_DCS_PIXEL_FORMAT_BITS_24   0x07
 
#define MIPI_DCS_PIXEL_FORMAT_BITS(__BITS)   MIPI_DCS_PIXEL_FORMAT_BITS_ ## __BITS
 
#define MIPI_DCS_PIXEL_FORMAT_DBI_BITS(__BITS)   MIPI_DCS_PIXEL_FORMAT_BITS(__BITS)
 
#define MIPI_DCS_PIXEL_FORMAT_DPI_BITS(__BITS)   (MIPI_DCS_PIXEL_FORMAT_BITS(__BITS) << 4)
 
#define MIPI_DCS_CMD_SET_PIXEL_FORMAT(__PF)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_PIXEL_FORMAT, 1, __PF)
 
#define MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_CONTINUE   0x3C
 
#define MIPI_DCS_CMD_WRITE_MEMORY_CONTINUE(__LEN, ...)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_CONTINUE, __LEN, ##__VA_ARGS__)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_3D_CONTROL   0x3D
 
#define MIPI_DCS_3D_CONTROL_LEFT_EYE_FIRST   (0 << 5)
 
#define MIPI_DCS_3D_CONTROL_RIGHT_EYE_FIRST   (1 << 5)
 
#define MIPI_DCS_3D_CONTROL_3DVSYNC_NO   (0 << 4)
 
#define MIPI_DCS_3D_CONTROL_3DVSYNC_SYNC   (1 << 4)
 
#define MIPI_DCS_3D_CONTROL_3DFMT_LINE   (0 << 2)
 
#define MIPI_DCS_3D_CONTROL_3DFMT_FRAME   (1 << 2)
 
#define MIPI_DCS_3D_CONTROL_3DFMT_PIXEL   (2 << 2)
 
#define MIPI_DCS_3D_CONTROL_3DMODE_OFF   (0 << 0)
 
#define MIPI_DCS_3D_CONTROL_3DMODE_ON_PO   (1 << 0)
 
#define MIPI_DCS_3D_CONTROL_3DMODE_ON_LO   (2 << 0)
 
#define MIPI_DCS_CMD_SET_3D_CONTROL(__V)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_3D_CONTROL, 2, __V, 0)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_VSYNC_TIMING   0x40
 
#define MIPI_DCS_VSYNC_TIMING_NO_RESET   (0 << 7)
 
#define MIPI_DCS_VSYNC_TIMING_RESET   (1 << 7)
 
#define MIPI_DCS_VSYNC_TIMING_LD_LATER   (0 << 7)
 
#define MIPI_DCS_VSYNC_TIMING_LD_EARLIER   (1 << 7)
 
#define MIPI_DCS_VSYNC_TIMING_LD_LINES(__L)   (__L << 1)
 
#define MIPI_DCS_VSYNC_TIMING_NEXT_FRAME   (0 << 0)
 
#define MIPI_DCS_VSYNC_TIMING_FRAME_AFTER_NEXT_FRAME   (1 << 0)
 
#define MIPI_DCS_CMD_SET_VSYNC_TIMING(__V)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_VSYNC_TIMING, 1)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_TEAR_SCANLINE   0x44
 
#define MIPI_DCS_CMD_SET_TEAR_SCANLINE(__N)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_BRIGHTNESS   0x51
 
#define MIPI_DCS_CMD_SET_DISPLAY_BRIGHTNESS(__B)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_BRIGHTNESS, 1, __B)
 
#define MIPI_DCS_CMD_HEX_CODE_WRITE_CONTROL_DISPLAY   0x53
 
#define MIPI_DCS_CMD_WRITE_CONTROL_DISPLAY(__DISP)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_CONTROL_DISPLAY, 1, __DISP)
 
#define MIPI_DCS_CMD_HEX_CODE_WRITE_POWER_SAVE   0x55
 
#define MIPI_DCS_CMD_WRITE_POWER_SAVE(__V)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_POWER_SAVE, 1, __V)
 
#define MIPI_DCS_CMD_HEX_CODE_SET_CABC_MIN_BRIGHTNESS   0x5E
 
#define MIPI_DCS_CMD_SET_CABC_MIN_BRIGHTNESS(__B)    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_CABC_MIN_BRIGHTNESS, 1, __B)
 
#define MIPI_MODE_X_FLIP   MIPI_DCS_COLUME_ADDRESS_RIGHT_TO_LEFT
 
#define MIPI_MODE_Y_FLIP   MIPI_DCS_PAGE_ADDRESS_BOTTOM_TO_TOP
 
#define MIPI_MODE_RGB   MIPI_DCS_DEVICE_REFRESH_RGB
 
#define MIPI_MODE_BGR   MIPI_DCS_DEVICE_REFRESH_BGR
 
#define MIPI_PIXEL_FORMAT_BITLEN(__BITLEN)   MIPI_DCS_PIXEL_FORMAT_DBI_BITS(__BITLEN)
 
#define MIPI_SOFT_RESET   MIPI_DCS_CMD_SOFT_RESET
 
#define MIPI_ENTER_IDLE   MIPI_DCS_CMD_HEX_CODE_ENTER_IDLE_MODE
 
#define MIPI_EXIT_IDLE   MIPI_DCS_CMD_HEX_CODE_EXIT_IDLE_MODE
 
#define MIPI_ENTER_SLEEP   MIPI_DCS_CMD_ENTER_SLEEP_MODE
 
#define MIPI_EXIT_SLEEP   MIPI_DCS_CMD_EXIT_SLEEP_MODE
 
#define MIPI_ENTER_PARTIAL_MODE   MIPI_DCS_CMD_ENTER_PARTIAL_MODE
 
#define MIPI_EXIT_PARTIAL_MODE   MIPI_DCS_CMD_ENTER_NORMAL_MODE
 
#define MIPI_ENTER_INVERT_MODE   MIPI_DCS_CMD_HEX_CODE_ENTER_INVERT_MODE
 
#define MIPI_EXIT_INVERT_MODE   MIPI_DCS_CMD_HEX_CODE_EXIT_INVERT_MODE
 
#define MIPI_TEAR_PIN_ON   MIPI_DCS_CMD_SET_TEAR_ON
 
#define MIPI_TEAR_PIN_OFF   MIPI_DCS_CMD_SET_TEAR_OFF
 
#define VSF_DISP_MIPI_LCD_INITSEQ(__LCD_SEQ, ...)
 
#define VSF_DISP_MIPI_LCD_CO5300_BASE
 
#define VSF_DISP_MIPI_LCD_S6D05A1_BASE
 
#define VSF_DISP_MIPI_LCD_ILI9488_BASE
 
#define VSF_DISP_MIPI_LCD_ILI9341_BASE
 
#define VSF_DISP_MIPI_LCD_ST7789V_BASE
 
#define VSF_DISP_MIPI_LCD_ST7796S_BASE
 

Macro Definition Documentation

◆ VSF_DISP_MIPI_LCD_WRITE

#define VSF_DISP_MIPI_LCD_WRITE (   __CMD,
  __PARAM_LEN,
  ... 
)     (__CMD), (__PARAM_LEN), ##__VA_ARGS__

◆ VSF_DISP_MIPI_LCD_DELAY_MS

#define VSF_DISP_MIPI_LCD_DELAY_MS (   __MS)     (0), (__MS)

◆ MIPI_DCS_CMD_HEX_CODE_NOP

#define MIPI_DCS_CMD_HEX_CODE_NOP   0x00

◆ MIPI_DCS_CMD_NOP

#define MIPI_DCS_CMD_NOP    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_NOP, 0)

◆ MIPI_DCS_CMD_HEX_CODE_SOFT_RESET

#define MIPI_DCS_CMD_HEX_CODE_SOFT_RESET   0x01

◆ MIPI_DCS_CMD_SOFT_RESET

#define MIPI_DCS_CMD_SOFT_RESET    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SOFT_RESET, 0)

◆ MIPI_DCS_CMD_HEX_CODE_GET_COMPRESSION_MODE

#define MIPI_DCS_CMD_HEX_CODE_GET_COMPRESSION_MODE   0x03

◆ MIPI_DCS_CMD_HEX_CODE_GET_DISPLAY_ID

#define MIPI_DCS_CMD_HEX_CODE_GET_DISPLAY_ID   0x04

◆ MIPI_DCS_CMD_HEX_CODE_GET_ERROR_COUNT_ON_DSI

#define MIPI_DCS_CMD_HEX_CODE_GET_ERROR_COUNT_ON_DSI   0x05

◆ MIPI_DCS_CMD_HEX_CODE_GET_RED_CHANNEL

#define MIPI_DCS_CMD_HEX_CODE_GET_RED_CHANNEL   0x06

◆ MIPI_DCS_CMD_HEX_CODE_GET_GREEN_CHANNEL

#define MIPI_DCS_CMD_HEX_CODE_GET_GREEN_CHANNEL   0x07

◆ MIPI_DCS_CMD_HEX_CODE_GET_BLUE_CHANNEL

#define MIPI_DCS_CMD_HEX_CODE_GET_BLUE_CHANNEL   0x08

◆ MIPI_DCS_CMD_HEX_CODE_GET_DISPLAY_STATUS

#define MIPI_DCS_CMD_HEX_CODE_GET_DISPLAY_STATUS   0x09

◆ MIPI_DCS_CMD_HEX_CODE_GET_POWER_MODE

#define MIPI_DCS_CMD_HEX_CODE_GET_POWER_MODE   0x0A

◆ MIPI_DCS_CMD_HEX_CODE_GET_ADDRESS_MODE

#define MIPI_DCS_CMD_HEX_CODE_GET_ADDRESS_MODE   0x0B

◆ MIPI_DCS_CMD_HEX_CODE_GET_PIXEL_FORMAT

#define MIPI_DCS_CMD_HEX_CODE_GET_PIXEL_FORMAT   0x0C

◆ MIPI_DCS_CMD_HEX_CODE_GET_DISPLAY_MODE

#define MIPI_DCS_CMD_HEX_CODE_GET_DISPLAY_MODE   0x0D

◆ MIPI_DCS_CMD_HEX_CODE_GET_SIGNAL_MODE

#define MIPI_DCS_CMD_HEX_CODE_GET_SIGNAL_MODE   0x0E

◆ MIPI_DCS_CMD_HEX_CODE_GET_DIAGNOSTIC_RESULT

#define MIPI_DCS_CMD_HEX_CODE_GET_DIAGNOSTIC_RESULT   0x0F

◆ MIPI_DCS_CMD_HEX_CODE_ENTER_SLEEP_MODE

#define MIPI_DCS_CMD_HEX_CODE_ENTER_SLEEP_MODE   0x10

◆ MIPI_DCS_CMD_ENTER_SLEEP_MODE

#define MIPI_DCS_CMD_ENTER_SLEEP_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_SLEEP_MODE, 0)

◆ MIPI_DCS_CMD_HEX_CODE_EXIT_SLEEP_MODE

#define MIPI_DCS_CMD_HEX_CODE_EXIT_SLEEP_MODE   0x11

◆ MIPI_DCS_CMD_EXIT_SLEEP_MODE

#define MIPI_DCS_CMD_EXIT_SLEEP_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_EXIT_SLEEP_MODE, 0)

◆ MIPI_DCS_CMD_HEX_CODE_ENTER_PARTIAL_MODE

#define MIPI_DCS_CMD_HEX_CODE_ENTER_PARTIAL_MODE   0x12

◆ MIPI_DCS_CMD_ENTER_PARTIAL_MODE

#define MIPI_DCS_CMD_ENTER_PARTIAL_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_PARTIAL_MODE, 0)

◆ MIPI_DCS_CMD_HEX_CODE_ENTER_NORMAL_MODE

#define MIPI_DCS_CMD_HEX_CODE_ENTER_NORMAL_MODE   0x13

◆ MIPI_DCS_CMD_ENTER_NORMAL_MODE

#define MIPI_DCS_CMD_ENTER_NORMAL_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_NORMAL_MODE, 0)

◆ MIPI_DCS_CMD_HEX_CODE_EXIT_INVERT_MODE

#define MIPI_DCS_CMD_HEX_CODE_EXIT_INVERT_MODE   0x20

◆ MIPI_DCS_CMD_EXIT_INVERT_MODE

#define MIPI_DCS_CMD_EXIT_INVERT_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_EXIT_INVERT_MODE, 0)

◆ MIPI_DCS_CMD_HEX_CODE_ENTER_INVERT_MODE

#define MIPI_DCS_CMD_HEX_CODE_ENTER_INVERT_MODE   0x21

◆ MIPI_DCS_CMD_ENTER_INVERT_MODE

#define MIPI_DCS_CMD_ENTER_INVERT_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_INVERT_MODE, 0)

◆ MIPI_DCS_CMD_HEX_CODE_SET_GAMMA_CURVE

#define MIPI_DCS_CMD_HEX_CODE_SET_GAMMA_CURVE   0x26

◆ MIPI_DCS_CMD_GAMMA_CURVE_GC0

#define MIPI_DCS_CMD_GAMMA_CURVE_GC0   0x01

◆ MIPI_DCS_CMD_GAMMA_CURVE_GC1

#define MIPI_DCS_CMD_GAMMA_CURVE_GC1   0x02

◆ MIPI_DCS_CMD_GAMMA_CURVE_GC2

#define MIPI_DCS_CMD_GAMMA_CURVE_GC2   0x04

◆ MIPI_DCS_CMD_GAMMA_CURVE_GC3

#define MIPI_DCS_CMD_GAMMA_CURVE_GC3   0x08

◆ MIPI_DCS_CMD_SET_GAMMA_CURVE

#define MIPI_DCS_CMD_SET_GAMMA_CURVE (   __GC_MASK)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_GAMMA_CURVE, 0, __GC_MASK)

◆ MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_OFF

#define MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_OFF   0x28

◆ MIPI_DCS_CMD_SET_DISPLAY_OFF

#define MIPI_DCS_CMD_SET_DISPLAY_OFF    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_OFF, 0)

◆ MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_ON

#define MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_ON   0x29

◆ MIPI_DCS_CMD_SET_DISPLAY_ON

#define MIPI_DCS_CMD_SET_DISPLAY_ON    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_ON, 0)

◆ MIPI_DCS_CMD_HEX_CODE_SET_COLUMN_ADDRESS

#define MIPI_DCS_CMD_HEX_CODE_SET_COLUMN_ADDRESS   0x2A

◆ MIPI_DCS_CMD_SET_COLUMN_ADDRESS

#define MIPI_DCS_CMD_SET_COLUMN_ADDRESS (   __SC,
  __EC 
)
Value:
((uint16_t)__SC >> 8), (__SC & 0xFF), \
((uint16_t)__EC >> 8), (__EC & 0xFF))
unsigned short uint16_t
Definition stdint.h:7
#define MIPI_DCS_CMD_HEX_CODE_SET_COLUMN_ADDRESS
Definition vsf_disp_mipi_lcd_dcs.h:121
#define VSF_DISP_MIPI_LCD_WRITE(__CMD, __PARAM_LEN,...)
Definition vsf_disp_mipi_lcd_dcs.h:31

◆ MIPI_DCS_CMD_HEX_CODE_SET_PAGE_ADDRESS

#define MIPI_DCS_CMD_HEX_CODE_SET_PAGE_ADDRESS   0x2B

◆ MIPI_DCS_CMD_SET_PAGE_ADDRESS

#define MIPI_DCS_CMD_SET_PAGE_ADDRESS (   __SP,
  __EP 
)
Value:
((uint16_t)__SP >> 8), (__SP & 0xFF), \
((uint16_t)__EP >> 8), (__EP & 0xFF))
#define MIPI_DCS_CMD_HEX_CODE_SET_PAGE_ADDRESS
Definition vsf_disp_mipi_lcd_dcs.h:129

◆ MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_START

#define MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_START   0x2C

◆ MIPI_DCS_CMD_WRITE_MEMORY_START

#define MIPI_DCS_CMD_WRITE_MEMORY_START (   __NUM,
  ... 
)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_START, __NUM, ##__VA_ARGS__)

◆ MIPI_DCS_CMD_HEX_CODE_WRITE_LUT

#define MIPI_DCS_CMD_HEX_CODE_WRITE_LUT   0x2D

◆ MIPI_DCS_CMD_WRITE_LUT

#define MIPI_DCS_CMD_WRITE_LUT (   __NUM,
  ... 
)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_LUT, __NUM, ##__VA_ARGS__)

◆ MIPI_DCS_CMD_HEX_CODE_SET_PARTIAL_ROWS

#define MIPI_DCS_CMD_HEX_CODE_SET_PARTIAL_ROWS   0x30

◆ MIPI_DCS_CMD_SET_PARTIAL_ROWS

#define MIPI_DCS_CMD_SET_PARTIAL_ROWS (   __SR,
  __ER 
)
Value:
((uint16_t)__SR >> 8), (__SR & 0xFF), \
((uint16_t)__ER >> 8), (__ER & 0xFF))
#define MIPI_DCS_CMD_HEX_CODE_SET_PARTIAL_ROWS
Definition vsf_disp_mipi_lcd_dcs.h:151

◆ MIPI_DCS_CMD_HEX_CODE_SET_PARTIAL_COLUMNS

#define MIPI_DCS_CMD_HEX_CODE_SET_PARTIAL_COLUMNS   0x31

◆ MIPI_DCS_CMD_SET_PARTIAL_COLUMNS

#define MIPI_DCS_CMD_SET_PARTIAL_COLUMNS (   __SC,
  __EC 
)
Value:
((uint16_t)__SC >> 8), (__SC & 0xFF), \
((uint16_t)__EC >> 8), (__EC & 0xFF))
#define MIPI_DCS_CMD_HEX_CODE_SET_PARTIAL_COLUMNS
Definition vsf_disp_mipi_lcd_dcs.h:158

◆ MIPI_DCS_CMD_HEX_CODE_SET_SCROLL_AREA

#define MIPI_DCS_CMD_HEX_CODE_SET_SCROLL_AREA   0x33

◆ MIPI_DCS_CMD_SET_SCROLL_AREA

#define MIPI_DCS_CMD_SET_SCROLL_AREA (   __TFA,
  __VERTICAL_SCROLLING_AREA,
  __BFA 
)
Value:
((uint16_t)__TFA >> 8), (__TFA & 0xFF), \
((uint16_t)__VSA >> 8), (__VSA & 0xFF), \
((uint16_t)__BFA >> 8), (__BFA & 0xFF))
#define MIPI_DCS_CMD_HEX_CODE_SET_SCROLL_AREA
Definition vsf_disp_mipi_lcd_dcs.h:166

◆ MIPI_DCS_CMD_HEX_CODE_SET_TEAR_OFF

#define MIPI_DCS_CMD_HEX_CODE_SET_TEAR_OFF   0x34

◆ MIPI_DCS_CMD_SET_TEAR_OFF

#define MIPI_DCS_CMD_SET_TEAR_OFF    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_TEAR_OFF, 0)

◆ MIPI_DCS_CMD_HEX_CODE_SET_TEAR_ON

#define MIPI_DCS_CMD_HEX_CODE_SET_TEAR_ON   0x35

◆ MIPI_DCS_CMD_SET_TEAR_ON

#define MIPI_DCS_CMD_SET_TEAR_ON    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_TEAR_ON, 0)

◆ MIPI_DCS_CMD_HEX_CODE_SET_ADDRESS_MODE

#define MIPI_DCS_CMD_HEX_CODE_SET_ADDRESS_MODE   0x36

◆ MIPI_DCS_PAGE_ADDRESS_TOP_TO_BOTTOM

#define MIPI_DCS_PAGE_ADDRESS_TOP_TO_BOTTOM   (0 << 7)

◆ MIPI_DCS_PAGE_ADDRESS_BOTTOM_TO_TOP

#define MIPI_DCS_PAGE_ADDRESS_BOTTOM_TO_TOP   (1 << 7)

◆ MIPI_DCS_COLUME_ADDRESS_LEFT_TO_RIGHT

#define MIPI_DCS_COLUME_ADDRESS_LEFT_TO_RIGHT   (0 << 6)

◆ MIPI_DCS_COLUME_ADDRESS_RIGHT_TO_LEFT

#define MIPI_DCS_COLUME_ADDRESS_RIGHT_TO_LEFT   (1 << 6)

◆ MIPI_DCS_PAGE_COLUMN_NORMAL_ORDER

#define MIPI_DCS_PAGE_COLUMN_NORMAL_ORDER   (0 << 5)

◆ MIPI_DCS_PAGE_COLUMN_REVERSE_ORDER

#define MIPI_DCS_PAGE_COLUMN_REVERSE_ORDER   (1 << 5)

◆ MIPI_DCS_DEVICE_REFRESH_TOP_TO_BOTTOM

#define MIPI_DCS_DEVICE_REFRESH_TOP_TO_BOTTOM   (0 << 4)

◆ MIPI_DCS_DEVICE_REFRESH_BOTTOM_TO_TOP

#define MIPI_DCS_DEVICE_REFRESH_BOTTOM_TO_TOP   (1 << 4)

◆ MIPI_DCS_DEVICE_REFRESH_RGB

#define MIPI_DCS_DEVICE_REFRESH_RGB   (0 << 3)

◆ MIPI_DCS_DEVICE_REFRESH_BGR

#define MIPI_DCS_DEVICE_REFRESH_BGR   (1 << 3)

◆ MIPI_DCS_LCD_REFRESH_LEFT_TO_RIGHT

#define MIPI_DCS_LCD_REFRESH_LEFT_TO_RIGHT   (0 << 2)

◆ MIPI_DCS_LCD_REFRESH_RIGHT_TO_LEFT

#define MIPI_DCS_LCD_REFRESH_RIGHT_TO_LEFT   (1 << 2)

◆ MIPI_DCS_FLIP_HORIZONTAL_NORMAL

#define MIPI_DCS_FLIP_HORIZONTAL_NORMAL   (0 << 1)

◆ MIPI_DCS_FLIP_HORIZONTAL_FLIPPED

#define MIPI_DCS_FLIP_HORIZONTAL_FLIPPED   (1 << 1)

◆ MIPI_DCS_FLIP_VERTICAL_NORMAL

#define MIPI_DCS_FLIP_VERTICAL_NORMAL   (0 << 0)

◆ MIPI_DCS_FLIP_VERTICAL_FLIPPED

#define MIPI_DCS_FLIP_VERTICAL_FLIPPED   (1 << 0)

◆ MIPI_DCS_CMD_SET_ADDRESS_MODE

#define MIPI_DCS_CMD_SET_ADDRESS_MODE (   __MODE_MASK)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_ADDRESS_MODE, 1, __MODE_MASK)

◆ MIPI_DCS_CMD_HEX_CODE_SET_SCROLL_START

#define MIPI_DCS_CMD_HEX_CODE_SET_SCROLL_START   0x37

◆ MIPI_DCS_CMD_SET_SCROLL_START

#define MIPI_DCS_CMD_SET_SCROLL_START (   __VSP)
Value:
((uint16_t)__VSP >> 8), (__VSP & 0xFF))
#define MIPI_DCS_CMD_HEX_CODE_SET_SCROLL_START
Definition vsf_disp_mipi_lcd_dcs.h:218

◆ MIPI_DCS_CMD_HEX_CODE_EXIT_IDLE_MODE

#define MIPI_DCS_CMD_HEX_CODE_EXIT_IDLE_MODE   0x38

◆ MIPI_DCS_CMD_EXIT_IDLE_MODE

#define MIPI_DCS_CMD_EXIT_IDLE_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_EXIT_IDLE_MODE, 0)

◆ MIPI_DCS_CMD_HEX_CODE_ENTER_IDLE_MODE

#define MIPI_DCS_CMD_HEX_CODE_ENTER_IDLE_MODE   0x39

◆ MIPI_DCS_CMD_ENTER_IDLE_MODE

#define MIPI_DCS_CMD_ENTER_IDLE_MODE    VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_ENTER_IDLE_MODE, 0)

◆ MIPI_DCS_CMD_HEX_CODE_SET_PIXEL_FORMAT

#define MIPI_DCS_CMD_HEX_CODE_SET_PIXEL_FORMAT   0x3A

◆ MIPI_DCS_PIXEL_FORMAT_BITS_3

#define MIPI_DCS_PIXEL_FORMAT_BITS_3   0x01

◆ MIPI_DCS_PIXEL_FORMAT_BITS_8

#define MIPI_DCS_PIXEL_FORMAT_BITS_8   0x02

◆ MIPI_DCS_PIXEL_FORMAT_BITS_12

#define MIPI_DCS_PIXEL_FORMAT_BITS_12   0x03

◆ MIPI_DCS_PIXEL_FORMAT_BITS_16

#define MIPI_DCS_PIXEL_FORMAT_BITS_16   0x05

◆ MIPI_DCS_PIXEL_FORMAT_BITS_18

#define MIPI_DCS_PIXEL_FORMAT_BITS_18   0x06

◆ MIPI_DCS_PIXEL_FORMAT_BITS_24

#define MIPI_DCS_PIXEL_FORMAT_BITS_24   0x07

◆ MIPI_DCS_PIXEL_FORMAT_BITS

#define MIPI_DCS_PIXEL_FORMAT_BITS (   __BITS)    MIPI_DCS_PIXEL_FORMAT_BITS_ ## __BITS

◆ MIPI_DCS_PIXEL_FORMAT_DBI_BITS

#define MIPI_DCS_PIXEL_FORMAT_DBI_BITS (   __BITS)    MIPI_DCS_PIXEL_FORMAT_BITS(__BITS)

◆ MIPI_DCS_PIXEL_FORMAT_DPI_BITS

#define MIPI_DCS_PIXEL_FORMAT_DPI_BITS (   __BITS)    (MIPI_DCS_PIXEL_FORMAT_BITS(__BITS) << 4)

◆ MIPI_DCS_CMD_SET_PIXEL_FORMAT

#define MIPI_DCS_CMD_SET_PIXEL_FORMAT (   __PF)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_PIXEL_FORMAT, 1, __PF)

◆ MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_CONTINUE

#define MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_CONTINUE   0x3C

◆ MIPI_DCS_CMD_WRITE_MEMORY_CONTINUE

#define MIPI_DCS_CMD_WRITE_MEMORY_CONTINUE (   __LEN,
  ... 
)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_MEMORY_CONTINUE, __LEN, ##__VA_ARGS__)

◆ MIPI_DCS_CMD_HEX_CODE_SET_3D_CONTROL

#define MIPI_DCS_CMD_HEX_CODE_SET_3D_CONTROL   0x3D

◆ MIPI_DCS_3D_CONTROL_LEFT_EYE_FIRST

#define MIPI_DCS_3D_CONTROL_LEFT_EYE_FIRST   (0 << 5)

◆ MIPI_DCS_3D_CONTROL_RIGHT_EYE_FIRST

#define MIPI_DCS_3D_CONTROL_RIGHT_EYE_FIRST   (1 << 5)

◆ MIPI_DCS_3D_CONTROL_3DVSYNC_NO

#define MIPI_DCS_3D_CONTROL_3DVSYNC_NO   (0 << 4)

◆ MIPI_DCS_3D_CONTROL_3DVSYNC_SYNC

#define MIPI_DCS_3D_CONTROL_3DVSYNC_SYNC   (1 << 4)

◆ MIPI_DCS_3D_CONTROL_3DFMT_LINE

#define MIPI_DCS_3D_CONTROL_3DFMT_LINE   (0 << 2)

◆ MIPI_DCS_3D_CONTROL_3DFMT_FRAME

#define MIPI_DCS_3D_CONTROL_3DFMT_FRAME   (1 << 2)

◆ MIPI_DCS_3D_CONTROL_3DFMT_PIXEL

#define MIPI_DCS_3D_CONTROL_3DFMT_PIXEL   (2 << 2)

◆ MIPI_DCS_3D_CONTROL_3DMODE_OFF

#define MIPI_DCS_3D_CONTROL_3DMODE_OFF   (0 << 0)

◆ MIPI_DCS_3D_CONTROL_3DMODE_ON_PO

#define MIPI_DCS_3D_CONTROL_3DMODE_ON_PO   (1 << 0)

◆ MIPI_DCS_3D_CONTROL_3DMODE_ON_LO

#define MIPI_DCS_3D_CONTROL_3DMODE_ON_LO   (2 << 0)

◆ MIPI_DCS_CMD_SET_3D_CONTROL

#define MIPI_DCS_CMD_SET_3D_CONTROL (   __V)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_3D_CONTROL, 2, __V, 0)

◆ MIPI_DCS_CMD_HEX_CODE_SET_VSYNC_TIMING

#define MIPI_DCS_CMD_HEX_CODE_SET_VSYNC_TIMING   0x40

◆ MIPI_DCS_VSYNC_TIMING_NO_RESET

#define MIPI_DCS_VSYNC_TIMING_NO_RESET   (0 << 7)

◆ MIPI_DCS_VSYNC_TIMING_RESET

#define MIPI_DCS_VSYNC_TIMING_RESET   (1 << 7)

◆ MIPI_DCS_VSYNC_TIMING_LD_LATER

#define MIPI_DCS_VSYNC_TIMING_LD_LATER   (0 << 7)

◆ MIPI_DCS_VSYNC_TIMING_LD_EARLIER

#define MIPI_DCS_VSYNC_TIMING_LD_EARLIER   (1 << 7)

◆ MIPI_DCS_VSYNC_TIMING_LD_LINES

#define MIPI_DCS_VSYNC_TIMING_LD_LINES (   __L)    (__L << 1)

◆ MIPI_DCS_VSYNC_TIMING_NEXT_FRAME

#define MIPI_DCS_VSYNC_TIMING_NEXT_FRAME   (0 << 0)

◆ MIPI_DCS_VSYNC_TIMING_FRAME_AFTER_NEXT_FRAME

#define MIPI_DCS_VSYNC_TIMING_FRAME_AFTER_NEXT_FRAME   (1 << 0)

◆ MIPI_DCS_CMD_SET_VSYNC_TIMING

#define MIPI_DCS_CMD_SET_VSYNC_TIMING (   __V)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_VSYNC_TIMING, 1)

◆ MIPI_DCS_CMD_HEX_CODE_SET_TEAR_SCANLINE

#define MIPI_DCS_CMD_HEX_CODE_SET_TEAR_SCANLINE   0x44

◆ MIPI_DCS_CMD_SET_TEAR_SCANLINE

#define MIPI_DCS_CMD_SET_TEAR_SCANLINE (   __N)
Value:
((uint16_t)__N >> 8), (__N & 0xFF)
#define MIPI_DCS_CMD_HEX_CODE_SET_TEAR_SCANLINE
Definition vsf_disp_mipi_lcd_dcs.h:308

◆ MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_BRIGHTNESS

#define MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_BRIGHTNESS   0x51

◆ MIPI_DCS_CMD_SET_DISPLAY_BRIGHTNESS

#define MIPI_DCS_CMD_SET_DISPLAY_BRIGHTNESS (   __B)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_DISPLAY_BRIGHTNESS, 1, __B)

◆ MIPI_DCS_CMD_HEX_CODE_WRITE_CONTROL_DISPLAY

#define MIPI_DCS_CMD_HEX_CODE_WRITE_CONTROL_DISPLAY   0x53

◆ MIPI_DCS_CMD_WRITE_CONTROL_DISPLAY

#define MIPI_DCS_CMD_WRITE_CONTROL_DISPLAY (   __DISP)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_CONTROL_DISPLAY, 1, __DISP)

◆ MIPI_DCS_CMD_HEX_CODE_WRITE_POWER_SAVE

#define MIPI_DCS_CMD_HEX_CODE_WRITE_POWER_SAVE   0x55

◆ MIPI_DCS_CMD_WRITE_POWER_SAVE

#define MIPI_DCS_CMD_WRITE_POWER_SAVE (   __V)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_WRITE_POWER_SAVE, 1, __V)

◆ MIPI_DCS_CMD_HEX_CODE_SET_CABC_MIN_BRIGHTNESS

#define MIPI_DCS_CMD_HEX_CODE_SET_CABC_MIN_BRIGHTNESS   0x5E

◆ MIPI_DCS_CMD_SET_CABC_MIN_BRIGHTNESS

#define MIPI_DCS_CMD_SET_CABC_MIN_BRIGHTNESS (   __B)     VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_CABC_MIN_BRIGHTNESS, 1, __B)

◆ MIPI_MODE_X_FLIP

#define MIPI_MODE_X_FLIP   MIPI_DCS_COLUME_ADDRESS_RIGHT_TO_LEFT

◆ MIPI_MODE_Y_FLIP

#define MIPI_MODE_Y_FLIP   MIPI_DCS_PAGE_ADDRESS_BOTTOM_TO_TOP

◆ MIPI_MODE_RGB

#define MIPI_MODE_RGB   MIPI_DCS_DEVICE_REFRESH_RGB

◆ MIPI_MODE_BGR

#define MIPI_MODE_BGR   MIPI_DCS_DEVICE_REFRESH_BGR

◆ MIPI_PIXEL_FORMAT_BITLEN

#define MIPI_PIXEL_FORMAT_BITLEN (   __BITLEN)    MIPI_DCS_PIXEL_FORMAT_DBI_BITS(__BITLEN)

◆ MIPI_SOFT_RESET

#define MIPI_SOFT_RESET   MIPI_DCS_CMD_SOFT_RESET

◆ MIPI_ENTER_IDLE

#define MIPI_ENTER_IDLE   MIPI_DCS_CMD_HEX_CODE_ENTER_IDLE_MODE

◆ MIPI_EXIT_IDLE

#define MIPI_EXIT_IDLE   MIPI_DCS_CMD_HEX_CODE_EXIT_IDLE_MODE

◆ MIPI_ENTER_SLEEP

#define MIPI_ENTER_SLEEP   MIPI_DCS_CMD_ENTER_SLEEP_MODE

◆ MIPI_EXIT_SLEEP

#define MIPI_EXIT_SLEEP   MIPI_DCS_CMD_EXIT_SLEEP_MODE

◆ MIPI_ENTER_PARTIAL_MODE

#define MIPI_ENTER_PARTIAL_MODE   MIPI_DCS_CMD_ENTER_PARTIAL_MODE

◆ MIPI_EXIT_PARTIAL_MODE

#define MIPI_EXIT_PARTIAL_MODE   MIPI_DCS_CMD_ENTER_NORMAL_MODE

◆ MIPI_ENTER_INVERT_MODE

#define MIPI_ENTER_INVERT_MODE   MIPI_DCS_CMD_HEX_CODE_ENTER_INVERT_MODE

◆ MIPI_EXIT_INVERT_MODE

#define MIPI_EXIT_INVERT_MODE   MIPI_DCS_CMD_HEX_CODE_EXIT_INVERT_MODE

◆ MIPI_TEAR_PIN_ON

#define MIPI_TEAR_PIN_ON   MIPI_DCS_CMD_SET_TEAR_ON

◆ MIPI_TEAR_PIN_OFF

#define MIPI_TEAR_PIN_OFF   MIPI_DCS_CMD_SET_TEAR_OFF

◆ VSF_DISP_MIPI_LCD_INITSEQ

#define VSF_DISP_MIPI_LCD_INITSEQ (   __LCD_SEQ,
  ... 
)
Value:
__LCD_SEQ, \
##__VA_ARGS__, \
MIPI_DCS_CMD_SET_DISPLAY_ON

◆ VSF_DISP_MIPI_LCD_CO5300_BASE

#define VSF_DISP_MIPI_LCD_CO5300_BASE
Value:
VSF_DISP_MIPI_LCD_WRITE(0xFE, 1, 0x20), \
VSF_DISP_MIPI_LCD_WRITE(0xF4, 1, 0x5A), \
VSF_DISP_MIPI_LCD_WRITE(0xF5, 1, 0x59), \
VSF_DISP_MIPI_LCD_WRITE(0xFE, 1, 0x20), \
VSF_DISP_MIPI_LCD_WRITE(0xF4, 1, 0xA5), \
VSF_DISP_MIPI_LCD_WRITE(0xF5, 1, 0xA5), \
VSF_DISP_MIPI_LCD_WRITE(0xFE, 1, 0x00), \
VSF_DISP_MIPI_LCD_WRITE(0xC4, 1, 0x80), \
VSF_DISP_MIPI_LCD_WRITE(0x3A, 1, 0x55), \
VSF_DISP_MIPI_LCD_WRITE(0x35, 1, 0x00), \
VSF_DISP_MIPI_LCD_WRITE(0x53, 1, 0x20), \
VSF_DISP_MIPI_LCD_WRITE(0x63, 1, 0xFF), \
VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_EXIT_SLEEP_MODE, 0)
#define MIPI_DCS_CMD_HEX_CODE_EXIT_SLEEP_MODE
Definition vsf_disp_mipi_lcd_dcs.h:73

◆ VSF_DISP_MIPI_LCD_S6D05A1_BASE

#define VSF_DISP_MIPI_LCD_S6D05A1_BASE
Value:
VSF_DISP_MIPI_LCD_WRITE(0xF0, 2, 0x5A, 0x5A), /*PASSWD1*/ \
VSF_DISP_MIPI_LCD_WRITE(0xF1, 2, 0x5A, 0x5A), /*PASSWD2*/ \
VSF_DISP_MIPI_LCD_WRITE(0xF2, 19, 0x3B, 0x40, 0x03, 0x04, 0x02, 0x08, 0x08, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x40, 0x08, 0x08, 0x08, 0x08), /*DISCTL*/ \
VSF_DISP_MIPI_LCD_WRITE(0xF4, 14, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6d, 0x03, 0x00, 0x70, 0x03), /*PWRCTL*/ \
VSF_DISP_MIPI_LCD_WRITE(0xF5, 12, 0x00, 0x54, 0x73, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x53, 0x71), /*VCMCTL*/ \
VSF_DISP_MIPI_LCD_WRITE(0xF6, 8, 0x04, 0x00, 0x08, 0x03, 0x01, 0x00, 0x01, 0x00), /*SRCCTL*/ \
VSF_DISP_MIPI_LCD_WRITE(0xF7, 5, 0x48, 0x80, 0x10, 0x02, 0x00), /*IFCTL*/ \
VSF_DISP_MIPI_LCD_WRITE(0xF8, 2, 0x11, 0x00), /*PANELCTL*/ \
VSF_DISP_MIPI_LCD_WRITE(0xF9, 1, 0x27), /*GAMMASEL*/ \
VSF_DISP_MIPI_LCD_WRITE(0xFA, 20, 0x0B, 0x0B, 0x0F, 0x26, 0x2A, 0x30, 0x33, 0x12, 0x1F, 0x25, 0x31, 0x30, 0x24, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x3F) /*PGAMMACTL*/

◆ VSF_DISP_MIPI_LCD_ILI9488_BASE

#define VSF_DISP_MIPI_LCD_ILI9488_BASE
Value:
VSF_DISP_MIPI_LCD_WRITE(0xE0, 15, 0x00, 0x07, 0x0f, 0x0D, 0x1B, 0x0A, 0x3c, 0x78, 0x4A, 0x07, 0x0E, 0x09, 0x1B, 0x1e, 0x0f), /* Positive Gamma Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xE1, 15, 0x00, 0x22, 0x24, 0x06, 0x12, 0x07, 0x36, 0x47, 0x47, 0x06, 0x0a, 0x07, 0x30, 0x37, 0x0f), /* Negative Gamma Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xC0, 2, 0x10, 0x10), /* Power Control 1 */ \
VSF_DISP_MIPI_LCD_WRITE(0xC1, 1, 0x41), /* Power Control 2 */ \
VSF_DISP_MIPI_LCD_WRITE(0xC5, 3, 0x00, 0x22, 0x80), /* VCOM Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xB0, 1, 0x00), /* Interface Mode Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xB1, 2, 0x60, 0x11), /* frame rate control */ \
VSF_DISP_MIPI_LCD_WRITE(0xB4, 1, 0x02), /* Display Inversion Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xB6, 2, 0x02, 0x02), /* Display Function Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xB7, 1, 0x06), /* Entry Mode Set */ \
VSF_DISP_MIPI_LCD_WRITE(0xE9, 1, 0x00), /* Set Image Function: 24bit data bus */ \
VSF_DISP_MIPI_LCD_WRITE(0xF7, 4, 0xA9, 0x51, 0x2C, 0x82) /* Adjust Control 3 */

◆ VSF_DISP_MIPI_LCD_ILI9341_BASE

#define VSF_DISP_MIPI_LCD_ILI9341_BASE
Value:
VSF_DISP_MIPI_LCD_WRITE(0xCF, 3, 0x00, 0xC1, 0x30), \
VSF_DISP_MIPI_LCD_WRITE(0xED, 4, 0x64, 0x03, 0x12, 0x81), \
VSF_DISP_MIPI_LCD_WRITE(0xE8, 3, 0x85, 0x10, 0x7A), \
VSF_DISP_MIPI_LCD_WRITE(0xCB, 5, 0x39, 0x2C, 0x00, 0x34, 0x02), \
VSF_DISP_MIPI_LCD_WRITE(0xF7, 1, 0x20), \
VSF_DISP_MIPI_LCD_WRITE(0xEA, 2, 0x00, 0x00), \
VSF_DISP_MIPI_LCD_WRITE(0xC0, 1, 0x1B), /* Power Control 1 */ \
VSF_DISP_MIPI_LCD_WRITE(0xC1, 1, 0x01), /* Power Control 2 */ \
VSF_DISP_MIPI_LCD_WRITE(0xC5, 2, 0x30, 0x30), /* VCOM Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xC7, 1, 0xB7), /* VCOM Control 2 */ \
VSF_DISP_MIPI_LCD_WRITE(0xB1, 2, 0x01, 0x1B), /* frame rate control */ \
VSF_DISP_MIPI_LCD_WRITE(0xB6, 2, 0x02, 0x82), /* Display Function Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xB5, 4, 0x5F, 0x5F, 0x3F, 0x3F), /* Blanking Porch Control, VFP/VBP/0x00/HBP */ \
VSF_DISP_MIPI_LCD_WRITE(0xF2, 1, 0x00), \
VSF_DISP_MIPI_LCD_WRITE(MIPI_DCS_CMD_HEX_CODE_SET_GAMMA_CURVE, 1, 0x01), /* Gamma Set */ \
VSF_DISP_MIPI_LCD_WRITE(0xE0, 15, 0x0F, 0x2A, 0x28, 0x08, 0x0E, 0x08, 0x54, 0xA9, 0x43, 0x0A, 0x0F, 0x00, 0x00, 0x00, 0x00), /* Positive Gamma Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xE1, 15, 0x00, 0x15, 0x17, 0x07, 0x11, 0x06, 0x2B, 0x56, 0x3C, 0x05, 0x10, 0x0F, 0x3F, 0x3F, 0x0F) /* Negative Gamma Control */
#define MIPI_DCS_CMD_HEX_CODE_SET_GAMMA_CURVE
Definition vsf_disp_mipi_lcd_dcs.h:102

◆ VSF_DISP_MIPI_LCD_ST7789V_BASE

#define VSF_DISP_MIPI_LCD_ST7789V_BASE
Value:
VSF_DISP_MIPI_LCD_WRITE(0xB1, 3, 0x40, 0x7F, 0x14), /* RGB Interface Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xB2, 5, 0x0C, 0x0C, 0x00, 0x33, 0x33), /* Porch Setting */ \
VSF_DISP_MIPI_LCD_WRITE(0xB7, 1, 0x35), /* Gate Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xBB, 1, 0x20), /* VCOM Setting */ \
VSF_DISP_MIPI_LCD_WRITE(0xC0, 1, 0x2C), /* LCM Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xC2, 1, 0x01), /* VDV and VRH Command Enable */ \
VSF_DISP_MIPI_LCD_WRITE(0xC3, 1, 0x0B), /* VRH Set */ \
VSF_DISP_MIPI_LCD_WRITE(0xC4, 1, 0x20), /* VDV Set */ \
VSF_DISP_MIPI_LCD_WRITE(0xC6, 1, 0x1F), /* Frame Rate Control in Normal Mode, 1F: 39 */ \
VSF_DISP_MIPI_LCD_WRITE(0xD0, 2, 0xA4, 0xA1), /* Power Control 1 */ \
VSF_DISP_MIPI_LCD_WRITE(0xE0, 14, 0xD0, 0x03, 0x09, 0x0E, 0x11, 0x3D, 0x47, 0x55, 0x53, 0x1A, 0x16, 0x14, 0x1F, 0x22), /* Positive Voltage Gamma Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xE1, 14, 0xD0, 0x02, 0x08, 0x0D, 0x12, 0x2C, 0x43, 0x55, 0x53, 0x1E, 0x1B, 0x19, 0x20, 0x22) /* Negative Voltage Gamma Control */

◆ VSF_DISP_MIPI_LCD_ST7796S_BASE

#define VSF_DISP_MIPI_LCD_ST7796S_BASE
Value:
VSF_DISP_MIPI_LCD_WRITE(0xF0, 1, 0xC3), /* Command Set Control, C3h enable command 2 part I */ \
VSF_DISP_MIPI_LCD_WRITE(0xF0, 1, 0x96), /* Command Set Control, 96h enable command 2 part II */ \
VSF_DISP_MIPI_LCD_WRITE(0xE8, 8, 0x40, 0x82, 0x07, 0x18, 0x27, 0x0A, 0xB6, 0x33), /* Display Output Ctrl Adjust */ \
VSF_DISP_MIPI_LCD_WRITE(0xC5, 1, 0x27), /* VCOM Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xC2, 1, 0xA7), /* Power Control 3 */ \
VSF_DISP_MIPI_LCD_WRITE(0xE0, 14, 0xF0, 0x01, 0x06, 0x0F, 0x12, 0x1D, 0x36, 0x54, 0x44, 0x0C, 0x18, 0x16, 0x13, 0x15), /* Positive Gamma Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xE1, 14, 0xF0, 0x01, 0x05, 0x0A, 0x0B, 0x07, 0x32, 0x44, 0x44, 0x0C, 0x18, 0x17, 0x13, 0x16), /* Negative Gamma Control */ \
VSF_DISP_MIPI_LCD_WRITE(0xB5, 4, 0xFF, 0xFF, 0x00, 0x04), /* Blanking Porch Control, VFP/VBP/0x00/HBP */ \
VSF_DISP_MIPI_LCD_WRITE(0xB1, 2, 0x00, 0x10), /* Blanking Porch Control, VFP/VBP/0x00/HBP */ \
VSF_DISP_MIPI_LCD_WRITE(0xF0, 1, 0x3C), /* Command Set Control, 3Ch disable command 2 part I */ \
VSF_DISP_MIPI_LCD_WRITE(0xF0, 1, 0x69) /* Command Set Control, 69h disable command 2 part II */