/**************************************************************************//** * @file TM022HDH31.h * @version V3.00 * @brief N9H20 series VPOST driver header file * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. *****************************************************************************/ #ifndef __TM022_H__ #define __TM022_H__ //ILI9341 #define SWRESET 0x01 //Software Reset #define RDDIDIF 0x04 //Read Display Identification Information #define RDDST 0x09 //Read Display Status #define RDDPM 0x0A //Read Display Power Mode #define RDDMADCTL 0x0B //Read Display MADCTL #define RDDCOLMOD 0x0C //Read Display Pixel Format #define RDDIM 0x0D //Read Display Image Mode #define RDDSM 0x0E //Read Display Signal Mode #define RDDSDR 0x0F //Read Display Self-Diagnostic Result #define SPLIN 0x10 //Enter Sleep Mode #define SLPOUT 0x11 //Sleep Out #define PTLON 0x12 //Partial Mode On #define NORON 0x13 //Normal Display Mode On #define DINVOFF 0x20 //Display Inversion OFF #define DINVON 0x21 //Display Inversion ON #define GAMSET 0x26 //Gamma Set #define DISPOFF 0x28 //Display OFF #define DISPON 0x29 //Display ON #define CASET 0x2A //Column Address Set #define PASET 0x2B //Page Address Set #define RAMWR 0x2C //Memory Write #define RGBSET 0x2D //Color Set #define RAMRD 0x2E //Memory Read #define PLTAR 0x30 //Partial Area #define VSCRDEF 0x33 //Vertical Scrolling Definition #define TEOFF 0x34 //Tearing Effect Line OFF #define TEON 0x35 //Tearing Effect Line ON #define MADCTL 0x36 //Memory Access Control #define VSCRSADD 0x37 //Vertical Scrolling Start Address #define IDMOFF 0x38 //Idle Mode OFF #define IDMON 0x39 //Idle Mode ON #define PIXSET 0x3A //Pixel Format Set #define RAMWRC 0x3C //Write Memory Continue #define RAMRDC 0x3E //Read Memory Continue #define STTS 0x44 //Set Tear Scanline #define GTSL 0x45 //Get Scan line #define WRDISBV 0x51 //Write Display Brightness #define RDDISBV 0x52 //Read Display Brightness Value #define WRCTRLD 0x53 //Write Control Display #define RDCTRLD 0x54 //Read Control Display #define WRCABC 0x55 //Write Content Adaptive Brightness Control #define RDCABC 0x56 //Read Content Adaptive Brightness Control #define WRCABCMIN 0x5E //Write CABC Minimum Brightness #define RDCABCMIN 0x5F //Read CABC Minimum Brightnes #define RDID1 0xDA //Read ID1 #define RDID2 0xDB //Read ID2 #define RDID3 0xDC //Read ID3 #define IFMODE 0xB0 //Interface Mode Control #define FRMCTR1 0xB1 //Frame Rate Control (In Normal Mode / Full colors #define FRMCTR2 0xB2 //Frame Rate Control (In Idle Mode / 8l colors) #define FRMCTR3 0xB3 //Frame Rate Control (In Partial Mode / Full colors) #define INVTR 0xB4 //Display Inversion Control #define PRCTR 0xB5 //Blanking Porch #define DISCTRL 0xB6 //Display Function Control #define ETMOD 0xB7 //Entry Mode Set #define BKCTL1 0xB8 //Backlight Control 1 #define BKCTL2 0xB9 //Backlight Control 2 #define BKCTL3 0xBA //Backlight Control 3 #define BKCTL4 0xBB //Backlight Control 4 #define BKCTL5 0xBC //Backlight Control 5 #define BKCTL7 0xBE //Backlight Control 7 #define BKCTL8 0xBF //Backlight Control 8 #define PWCTRL1 0xC0 //Power Control 1 #define PWCTRL2 0xC1 //Power Control 2 #define VMCTRL1 0xC5 //VCOM Control 1 #define VMCTRL2 0xC7 //VCOM Control 2 #define NVMWR 0xD0 //NV Memory Write #define NVMPKEY 0xD1 //NV Memory Protection Key #define RDNVM 0xD2 //NV Memory Status Read #define RDID4 0xD3 //Read ID4 #define PGAMCTRL 0xE0 //Positive Gamma Control #define NGAMCTRL 0xE1 //Negative Gamma Correction #define DGAMCTRL1 0xE2 //Digital Gamma Control 1 #define DGAMCTRL2 0xE3 //Digital Gamma Control 2 #define IFCTL 0xF6 //16bits Data Format Selection #define PWCTLA 0xCB //Power control A #define PWCTLB 0xCF //Power control B #define DTIMCTLA 0xE8 //Driver timing control A #define DTIMCTLB 0xEA //Driver timing control B #define PWONSCTL 0xED //Power on sequence control #define EN3G 0xF2 //Enable_3G #define PRCTL 0xF7 //Pump ratio control #endif