ugfx/drivers/gdisp/ILI9342/ILI9342.h
2015-12-17 22:36:51 +01:00

88 lines
3.2 KiB
C

#define LCD_VERTICAL_MAX 240
#define LCD_HORIZONTAL_MAX 320
#define ILI9342_DEVICE_CODE_READ_REG 0x00
#define ILI9342_SOFT_RESET_REG 0x01
#define ILI9342_IDENTINFO_R_REG 0x04
#define ILI9342_STATUS_R_REG 0x09
#define ILI9342_POWERMODE_R_REG 0x0A
#define ILI9342_MADCTL_R_REG 0x0B
#define ILI9342_PIXFORMAT_R_REG 0x0C
#define ILI9342_IMGFORMAT_R_REG 0x0D
#define ILI9342_SIGMODE_R_REG 0x0E
#define ILI9342_SD_RESULT_R_REG 0x0F
#define ILI9342_SLEEP_ENTER_REG 0x10
#define ILI9342_SLEEP_OUT_REG 0x11
#define ILI9342_PARTIALMODE_REG 0x12
#define ILI9342_NORDISPMODE_REG 0x13
#define ILI9342_INVERSIONOFF_REG 0x20
#define ILI9342_INVERSIONON_REG 0x21
#define ILI9342_GAMMASET_REG 0x26
#define ILI9342_DISPLAYOFF_REG 0x28
#define ILI9342_DISPLAYON_REG 0x29
#define ILI9342_COLADDRSET_REG 0x2A
#define ILI9342_PAGEADDRSET_REG 0x2B
#define ILI9342_MEMORYWRITE_REG 0x2C
#define ILI9342_COLORSET_REG 0x2D
#define ILI9342_MEMORYREAD_REG 0x2E
#define ILI9342_PARTIALAREA_REG 0x30
#define ILI9342_VERTSCROLL_REG 0x33
#define ILI9342_TEAREFFECTLINEOFF_REG 0x34
#define ILI9342_TEAREFFECTLINEON_REG 0x35
#define ILI9342_MEMACCESS_REG 0x36
#define ILI9342_VERSCRSRART_REG 0x37
#define ILI9342_IDLEMODEOFF_REG 0x38
#define ILI9342_IDLEMODEON_REG 0x39
#define ILI9342_PIXFORMATSET_REG 0x3A
#define ILI9342_WRITEMEMCONTINUE_REG 0x3C
#define ILI9342_READMEMCONTINUE_REG 0x3E
#define ILI9342_SETTEATSCAN_REG 0x44
#define ILI9342_GETSCANLINE_REG 0x45
#define ILI9342_WRITEBRIGHT_REG 0x51
#define ILI9342_READBRIGHT_REG 0x52
#define ILI9342_WRITECTRL_REG 0x53
#define ILI9342_READCTRL_REG 0x54
#define ILI9342_WRITECABC_REG 0x55
#define ILI9342_READCABC_REG 0x56
#define ILI9342_WRITECABCMB_REG 0x5E
#define ILI9342_READCABCMB_REG 0x5F
#define ILI9342_RGB_ISCTL_REG 0xB0
#define ILI9342_FRAMECTL_NOR_REG 0xB1
#define ILI9342_FRAMECTL_IDLE_REG 0xB2
#define ILI9342_FRAMECTL_PARTIAL_REG 0xB3
#define ILI9342_INVERCTL_REG 0xB4
#define ILI9342_BLANKPORCTL_REG 0xB5
#define ILI9342_FUNCTONCTL_REG 0xB6
#define ILI9342_ENTRYMODE_REG 0xB7
#define ILI9342_BLIGHTCTL1_REG 0xB8
#define ILI9342_BLIGHTCTL2_REG 0xB9
#define ILI9342_BLIGHTCTL3_REG 0xBA
#define ILI9342_BLIGHTCTL4_REG 0xBB
#define ILI9342_BLIGHTCTL5_REG 0xBC
#define ILI9342_BLIGHTCTL7_REG 0xBE
#define ILI9342_BLIGHTCTL8_REG 0xBF
#define ILI9342_POWERCTL1_REG 0xC0
#define ILI9342_POWERCTL2_REG 0xC1
#define ILI9342_VCOMCTL1_REG 0xC5
#define ILI9342_VCOMCTL2_REG 0xC7
#define ILI9342_POWERCTLA_REG 0xCB
#define ILI9342_POWERCTLB_REG 0xCF
#define ILI9342_NVMEMWRITE_REG 0xD0
#define ILI9342_NVMEMPROTECTKEY_REG 0xD1
#define ILI9342_NVMEMSTATUS_REG 0xD2
#define ILI9342_READID4_REG 0xD3
#define ILI9342_READID1_REG 0xDA
#define ILI9342_READID2_REG 0xDB
#define ILI9342_READID3_REG 0xDC
#define ILI9342_POSGAMMACORRECTION_REG 0xE0
#define ILI9342_NEGGAMMACORRECTION_REG 0xE1
#define ILI9342_DIGGAMCTL1_REG 0xE2
#define ILI9342_DIGGAMCTL2_REG 0xE3
#define ILI9342_DIVTIMCTL_A_REG 0xE8
#define ILI9342_DIVTIMCTL_B_REG 0xEA
#define ILI9342_POWONSEQCTL_REG 0xED
#define ILI9342_ENABLE_3G_REG 0xF2
#define ILI9342_INTERFCTL_REG 0xF6
#define ILI9342_PUMPRATIOCTL_REG 0xF7