|
#define | VSF_DISP_MIPI_LCD_WRITE(__CMD, __PARAM_LEN, ...) (__CMD), (__PARAM_LEN), ##__VA_ARGS__ |
|
#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_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) |
|