22 #ifndef OTM8009A_REG_H
23 #define OTM8009A_REG_H
26 #include <cmsis_compiler.h>
52 #define OTM8009A_CMD_NOP 0x00
53 #define OTM8009A_CMD_SWRESET 0x01
54 #define OTM8009A_CMD_RDDMADCTL 0x0B
55 #define OTM8009A_CMD_RDDCOLMOD 0x0C
56 #define OTM8009A_CMD_SLPIN 0x10
57 #define OTM8009A_CMD_SLPOUT 0x11
58 #define OTM8009A_CMD_PTLON 0x12
60 #define OTM8009A_CMD_DISPOFF 0x28
61 #define OTM8009A_CMD_DISPON 0x29
63 #define OTM8009A_CMD_CASET 0x2A
64 #define OTM8009A_CMD_PASET 0x2B
66 #define OTM8009A_CMD_RAMWR 0x2C
67 #define OTM8009A_CMD_RAMRD 0x2E
69 #define OTM8009A_CMD_PLTAR 0x30
71 #define OTM8009A_CMD_TEOFF 0x34
73 #define OTM8009A_CMD_TEEON 0x35
76 #define OTM8009A_TEEON_TELOM_VBLANKING_INFO_ONLY 0x00
77 #define OTM8009A_TEEON_TELOM_VBLANKING_AND_HBLANKING_INFO 0x01
79 #define OTM8009A_CMD_MADCTR 0x36
82 #define OTM8009A_MADCTR_MODE_PORTRAIT 0x00
83 #define OTM8009A_MADCTR_MODE_LANDSCAPE 0x60
85 #define OTM8009A_CMD_IDMOFF 0x38
86 #define OTM8009A_CMD_IDMON 0x39
88 #define OTM8009A_CMD_COLMOD 0x3A
91 #define OTM8009A_COLMOD_RGB565 0x55
92 #define OTM8009A_COLMOD_RGB888 0x77
94 #define OTM8009A_CMD_RAMWRC 0x3C
95 #define OTM8009A_CMD_RAMRDC 0x3E
97 #define OTM8009A_CMD_WRTESCN 0x44
98 #define OTM8009A_CMD_RDSCNL 0x45
101 #define OTM8009A_CMD_WRDISBV 0x51
102 #define OTM8009A_CMD_WRCTRLD 0x53
103 #define OTM8009A_CMD_WRCABC 0x55
104 #define OTM8009A_CMD_WRCABCMB 0x5E
106 #define OTM8009A_CMD_ID1 0xDA
107 #define OTM8009A_CMD_ID2 0xDB
108 #define OTM8009A_CMD_ID3 0xDC