Library for FT810 EVE chip
Dependents: PANEL_GUI_hello_world
inc/FT_Gpu.h@0:2d0ef4830603, 2016-09-07 (annotated)
- Committer:
- cpm219
- Date:
- Wed Sep 07 21:53:53 2016 +0000
- Revision:
- 0:2d0ef4830603
first version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cpm219 | 0:2d0ef4830603 | 1 | #ifndef _FT_GPU_H_ |
cpm219 | 0:2d0ef4830603 | 2 | #define _FT_GPU_H_ |
cpm219 | 0:2d0ef4830603 | 3 | |
cpm219 | 0:2d0ef4830603 | 4 | /* Definitions used for FT800 co processor command buffer */ |
cpm219 | 0:2d0ef4830603 | 5 | #define FT_DL_SIZE (8*1024L) //8KB Display List buffer size |
cpm219 | 0:2d0ef4830603 | 6 | #define FT_CMD_FIFO_SIZE (4*1024L) //4KB coprocessor Fifo size |
cpm219 | 0:2d0ef4830603 | 7 | #define FT_CMD_SIZE (4) //4 byte per coprocessor command of EVE |
cpm219 | 0:2d0ef4830603 | 8 | |
cpm219 | 0:2d0ef4830603 | 9 | |
cpm219 | 0:2d0ef4830603 | 10 | /* For FT801, FT811 and FT813 */ |
cpm219 | 0:2d0ef4830603 | 11 | #define CTOUCH_MODE_COMPATIBILITY 1 |
cpm219 | 0:2d0ef4830603 | 12 | #define CTOUCH_MODE_EXTENDED 0 |
cpm219 | 0:2d0ef4830603 | 13 | |
cpm219 | 0:2d0ef4830603 | 14 | #define LOW_FREQ_BOUND 58800000L//98% of 60Mhz |
cpm219 | 0:2d0ef4830603 | 15 | |
cpm219 | 0:2d0ef4830603 | 16 | #define RAM_G_SIZE 1024*1024L |
cpm219 | 0:2d0ef4830603 | 17 | #define FT81X_VERSION "1.0.4" |
cpm219 | 0:2d0ef4830603 | 18 | |
cpm219 | 0:2d0ef4830603 | 19 | #define ADC_DIFFERENTIAL 1UL |
cpm219 | 0:2d0ef4830603 | 20 | #define ADC_SINGLE_ENDED 0UL |
cpm219 | 0:2d0ef4830603 | 21 | #define ADPCM_SAMPLES 2UL |
cpm219 | 0:2d0ef4830603 | 22 | #define ALWAYS 7UL |
cpm219 | 0:2d0ef4830603 | 23 | #define ARGB1555 0UL |
cpm219 | 0:2d0ef4830603 | 24 | #define ARGB2 5UL |
cpm219 | 0:2d0ef4830603 | 25 | #define ARGB4 6UL |
cpm219 | 0:2d0ef4830603 | 26 | #define BARGRAPH 11UL |
cpm219 | 0:2d0ef4830603 | 27 | #define BILINEAR 1UL |
cpm219 | 0:2d0ef4830603 | 28 | #define BITMAPS 1UL |
cpm219 | 0:2d0ef4830603 | 29 | #define BORDER 0UL |
cpm219 | 0:2d0ef4830603 | 30 | #define CMDBUF_SIZE 4096UL |
cpm219 | 0:2d0ef4830603 | 31 | #define CMD_APPEND 4294967070UL |
cpm219 | 0:2d0ef4830603 | 32 | #define CMD_BGCOLOR 4294967049UL |
cpm219 | 0:2d0ef4830603 | 33 | #define CMD_BITMAP_TRANSFORM 4294967073UL |
cpm219 | 0:2d0ef4830603 | 34 | #define CMD_BUTTON 4294967053UL |
cpm219 | 0:2d0ef4830603 | 35 | #define CMD_CALIBRATE 4294967061UL |
cpm219 | 0:2d0ef4830603 | 36 | #define CMD_CLOCK 4294967060UL |
cpm219 | 0:2d0ef4830603 | 37 | #define CMD_COLDSTART 4294967090UL |
cpm219 | 0:2d0ef4830603 | 38 | #define CMD_CRC 4294967043UL |
cpm219 | 0:2d0ef4830603 | 39 | #define CMD_CSKETCH 4294967093UL |
cpm219 | 0:2d0ef4830603 | 40 | #define CMD_DIAL 4294967085UL |
cpm219 | 0:2d0ef4830603 | 41 | #define CMD_DLSTART 4294967040UL |
cpm219 | 0:2d0ef4830603 | 42 | #define CMD_EXECUTE 4294967047UL |
cpm219 | 0:2d0ef4830603 | 43 | #define CMD_FGCOLOR 4294967050UL |
cpm219 | 0:2d0ef4830603 | 44 | #define CMD_GAUGE 4294967059UL |
cpm219 | 0:2d0ef4830603 | 45 | #define CMD_GETMATRIX 4294967091UL |
cpm219 | 0:2d0ef4830603 | 46 | #define CMD_GETPOINT 4294967048UL |
cpm219 | 0:2d0ef4830603 | 47 | #define CMD_GETPROPS 4294967077UL |
cpm219 | 0:2d0ef4830603 | 48 | #define CMD_GETPTR 4294967075UL |
cpm219 | 0:2d0ef4830603 | 49 | #define CMD_GRADCOLOR 4294967092UL |
cpm219 | 0:2d0ef4830603 | 50 | #define CMD_GRADIENT 4294967051UL |
cpm219 | 0:2d0ef4830603 | 51 | #define CMD_HAMMERAUX 4294967044UL |
cpm219 | 0:2d0ef4830603 | 52 | #define CMD_IDCT_DELETED 4294967046UL |
cpm219 | 0:2d0ef4830603 | 53 | #define CMD_INFLATE 4294967074UL |
cpm219 | 0:2d0ef4830603 | 54 | #define CMD_INTERRUPT 4294967042UL |
cpm219 | 0:2d0ef4830603 | 55 | #define CMD_INT_RAMSHARED 4294967101UL |
cpm219 | 0:2d0ef4830603 | 56 | #define CMD_INT_SWLOADIMAGE 4294967102UL |
cpm219 | 0:2d0ef4830603 | 57 | #define CMD_KEYS 4294967054UL |
cpm219 | 0:2d0ef4830603 | 58 | #define CMD_LOADIDENTITY 4294967078UL |
cpm219 | 0:2d0ef4830603 | 59 | #define CMD_LOADIMAGE 4294967076UL |
cpm219 | 0:2d0ef4830603 | 60 | #define CMD_LOGO 4294967089UL |
cpm219 | 0:2d0ef4830603 | 61 | #define CMD_MARCH 4294967045UL |
cpm219 | 0:2d0ef4830603 | 62 | #define CMD_MEDIAFIFO 4294967097UL |
cpm219 | 0:2d0ef4830603 | 63 | #define CMD_MEMCPY 4294967069UL |
cpm219 | 0:2d0ef4830603 | 64 | #define CMD_MEMCRC 4294967064UL |
cpm219 | 0:2d0ef4830603 | 65 | #define CMD_MEMSET 4294967067UL |
cpm219 | 0:2d0ef4830603 | 66 | #define CMD_MEMWRITE 4294967066UL |
cpm219 | 0:2d0ef4830603 | 67 | #define CMD_MEMZERO 4294967068UL |
cpm219 | 0:2d0ef4830603 | 68 | #define CMD_NUMBER 4294967086UL |
cpm219 | 0:2d0ef4830603 | 69 | #define CMD_PLAYVIDEO 4294967098UL |
cpm219 | 0:2d0ef4830603 | 70 | #define CMD_PROGRESS 4294967055UL |
cpm219 | 0:2d0ef4830603 | 71 | #define CMD_REGREAD 4294967065UL |
cpm219 | 0:2d0ef4830603 | 72 | #define CMD_ROMFONT 4294967103UL |
cpm219 | 0:2d0ef4830603 | 73 | #define CMD_ROTATE 4294967081UL |
cpm219 | 0:2d0ef4830603 | 74 | #define CMD_SCALE 4294967080UL |
cpm219 | 0:2d0ef4830603 | 75 | #define CMD_SCREENSAVER 4294967087UL |
cpm219 | 0:2d0ef4830603 | 76 | #define CMD_SCROLLBAR 4294967057UL |
cpm219 | 0:2d0ef4830603 | 77 | #define CMD_SETBASE 4294967096UL |
cpm219 | 0:2d0ef4830603 | 78 | #define CMD_SETBITMAP 4294967107UL |
cpm219 | 0:2d0ef4830603 | 79 | #define CMD_SETFONT 4294967083UL |
cpm219 | 0:2d0ef4830603 | 80 | #define CMD_SETFONT2 4294967099UL |
cpm219 | 0:2d0ef4830603 | 81 | #define CMD_SETMATRIX 4294967082UL |
cpm219 | 0:2d0ef4830603 | 82 | #define CMD_SETROTATE 4294967094UL |
cpm219 | 0:2d0ef4830603 | 83 | #define CMD_SETSCRATCH 4294967100UL |
cpm219 | 0:2d0ef4830603 | 84 | #define CMD_SKETCH 4294967088UL |
cpm219 | 0:2d0ef4830603 | 85 | #define CMD_SLIDER 4294967056UL |
cpm219 | 0:2d0ef4830603 | 86 | #define CMD_SNAPSHOT 4294967071UL |
cpm219 | 0:2d0ef4830603 | 87 | #define CMD_SNAPSHOT2 4294967095UL |
cpm219 | 0:2d0ef4830603 | 88 | #define CMD_SPINNER 4294967062UL |
cpm219 | 0:2d0ef4830603 | 89 | #define CMD_STOP 4294967063UL |
cpm219 | 0:2d0ef4830603 | 90 | #define CMD_SWAP 4294967041UL |
cpm219 | 0:2d0ef4830603 | 91 | #define CMD_SYNC 4294967106UL |
cpm219 | 0:2d0ef4830603 | 92 | #define CMD_TEXT 4294967052UL |
cpm219 | 0:2d0ef4830603 | 93 | #define CMD_TOGGLE 4294967058UL |
cpm219 | 0:2d0ef4830603 | 94 | #define CMD_TOUCH_TRANSFORM 4294967072UL |
cpm219 | 0:2d0ef4830603 | 95 | #define CMD_TRACK 4294967084UL |
cpm219 | 0:2d0ef4830603 | 96 | #define CMD_TRANSLATE 4294967079UL |
cpm219 | 0:2d0ef4830603 | 97 | #define CMD_VIDEOFRAME 4294967105UL |
cpm219 | 0:2d0ef4830603 | 98 | #define CMD_VIDEOSTART 4294967104UL |
cpm219 | 0:2d0ef4830603 | 99 | #define DECR 4UL |
cpm219 | 0:2d0ef4830603 | 100 | #define DLSWAP_DONE 0UL |
cpm219 | 0:2d0ef4830603 | 101 | #define DLSWAP_FRAME 2UL |
cpm219 | 0:2d0ef4830603 | 102 | #define DLSWAP_LINE 1UL |
cpm219 | 0:2d0ef4830603 | 103 | #define DST_ALPHA 3UL |
cpm219 | 0:2d0ef4830603 | 104 | #define EDGE_STRIP_A 7UL |
cpm219 | 0:2d0ef4830603 | 105 | #define EDGE_STRIP_B 8UL |
cpm219 | 0:2d0ef4830603 | 106 | #define EDGE_STRIP_L 6UL |
cpm219 | 0:2d0ef4830603 | 107 | #define EDGE_STRIP_R 5UL |
cpm219 | 0:2d0ef4830603 | 108 | #define EQUAL 5UL |
cpm219 | 0:2d0ef4830603 | 109 | #define GEQUAL 4UL |
cpm219 | 0:2d0ef4830603 | 110 | #define GREATER 3UL |
cpm219 | 0:2d0ef4830603 | 111 | #define INCR 3UL |
cpm219 | 0:2d0ef4830603 | 112 | #define INT_CMDEMPTY 32UL |
cpm219 | 0:2d0ef4830603 | 113 | #define INT_CMDFLAG 64UL |
cpm219 | 0:2d0ef4830603 | 114 | #define INT_CONVCOMPLETE 128UL |
cpm219 | 0:2d0ef4830603 | 115 | #define INT_G8 18UL |
cpm219 | 0:2d0ef4830603 | 116 | #define INT_L8C 12UL |
cpm219 | 0:2d0ef4830603 | 117 | #define INT_PLAYBACK 16UL |
cpm219 | 0:2d0ef4830603 | 118 | #define INT_SOUND 8UL |
cpm219 | 0:2d0ef4830603 | 119 | #define INT_SWAP 1UL |
cpm219 | 0:2d0ef4830603 | 120 | #define INT_TAG 4UL |
cpm219 | 0:2d0ef4830603 | 121 | #define INT_TOUCH 2UL |
cpm219 | 0:2d0ef4830603 | 122 | #define INT_VGA 13UL |
cpm219 | 0:2d0ef4830603 | 123 | #define INVERT 5UL |
cpm219 | 0:2d0ef4830603 | 124 | #define KEEP 1UL |
cpm219 | 0:2d0ef4830603 | 125 | #define L1 1UL |
cpm219 | 0:2d0ef4830603 | 126 | #define L2 17UL |
cpm219 | 0:2d0ef4830603 | 127 | #define L4 2UL |
cpm219 | 0:2d0ef4830603 | 128 | #define L8 3UL |
cpm219 | 0:2d0ef4830603 | 129 | #define LEQUAL 2UL |
cpm219 | 0:2d0ef4830603 | 130 | #define LESS 1UL |
cpm219 | 0:2d0ef4830603 | 131 | #define LINEAR_SAMPLES 0UL |
cpm219 | 0:2d0ef4830603 | 132 | #define LINES 3UL |
cpm219 | 0:2d0ef4830603 | 133 | #define LINE_STRIP 4UL |
cpm219 | 0:2d0ef4830603 | 134 | #define NEAREST 0UL |
cpm219 | 0:2d0ef4830603 | 135 | #define NEVER 0UL |
cpm219 | 0:2d0ef4830603 | 136 | #define NOTEQUAL 6UL |
cpm219 | 0:2d0ef4830603 | 137 | #define ONE 1UL |
cpm219 | 0:2d0ef4830603 | 138 | #define ONE_MINUS_DST_ALPHA 5UL |
cpm219 | 0:2d0ef4830603 | 139 | #define ONE_MINUS_SRC_ALPHA 4UL |
cpm219 | 0:2d0ef4830603 | 140 | #define OPT_CENTER 1536UL |
cpm219 | 0:2d0ef4830603 | 141 | #define OPT_CENTERX 512UL |
cpm219 | 0:2d0ef4830603 | 142 | #define OPT_CENTERY 1024UL |
cpm219 | 0:2d0ef4830603 | 143 | #define OPT_FLAT 256UL |
cpm219 | 0:2d0ef4830603 | 144 | #define OPT_FULLSCREEN 8UL |
cpm219 | 0:2d0ef4830603 | 145 | #define OPT_MEDIAFIFO 16UL |
cpm219 | 0:2d0ef4830603 | 146 | #define OPT_MONO 1UL |
cpm219 | 0:2d0ef4830603 | 147 | #define OPT_NOBACK 4096UL |
cpm219 | 0:2d0ef4830603 | 148 | #define OPT_NODL 2UL |
cpm219 | 0:2d0ef4830603 | 149 | #define OPT_NOHANDS 49152UL |
cpm219 | 0:2d0ef4830603 | 150 | #define OPT_NOHM 16384UL |
cpm219 | 0:2d0ef4830603 | 151 | #define OPT_NOPOINTER 16384UL |
cpm219 | 0:2d0ef4830603 | 152 | #define OPT_NOSECS 32768UL |
cpm219 | 0:2d0ef4830603 | 153 | #define OPT_NOTEAR 4UL |
cpm219 | 0:2d0ef4830603 | 154 | #define OPT_NOTICKS 8192UL |
cpm219 | 0:2d0ef4830603 | 155 | #define OPT_RIGHTX 2048UL |
cpm219 | 0:2d0ef4830603 | 156 | #define OPT_SIGNED 256UL |
cpm219 | 0:2d0ef4830603 | 157 | #define OPT_SOUND 32UL |
cpm219 | 0:2d0ef4830603 | 158 | #define PALETTED 8UL |
cpm219 | 0:2d0ef4830603 | 159 | #define PALETTED4444 15UL |
cpm219 | 0:2d0ef4830603 | 160 | #define PALETTED565 14UL |
cpm219 | 0:2d0ef4830603 | 161 | #define PALETTED8 16UL |
cpm219 | 0:2d0ef4830603 | 162 | #define FTPOINTS 2UL |
cpm219 | 0:2d0ef4830603 | 163 | #define RAM_CMD 3178496UL |
cpm219 | 0:2d0ef4830603 | 164 | #define RAM_DL 3145728UL |
cpm219 | 0:2d0ef4830603 | 165 | #define RAM_G 0UL |
cpm219 | 0:2d0ef4830603 | 166 | #define RAM_REG 3153920UL |
cpm219 | 0:2d0ef4830603 | 167 | #define RAM_ROMSUB 3186688UL |
cpm219 | 0:2d0ef4830603 | 168 | #define RECTS 9UL |
cpm219 | 0:2d0ef4830603 | 169 | |
cpm219 | 0:2d0ef4830603 | 170 | #define ROMFONT_TABLEADDRESS 3145724UL |
cpm219 | 0:2d0ef4830603 | 171 | |
cpm219 | 0:2d0ef4830603 | 172 | #define REG_ANALOG 3154284UL |
cpm219 | 0:2d0ef4830603 | 173 | #define REG_ANA_COMP 3154308UL |
cpm219 | 0:2d0ef4830603 | 174 | #define REG_BIST_EN 3154292UL |
cpm219 | 0:2d0ef4830603 | 175 | #define REG_BUSYBITS 3154152UL |
cpm219 | 0:2d0ef4830603 | 176 | #define REG_CLOCK 3153928UL |
cpm219 | 0:2d0ef4830603 | 177 | #define REG_CMDB_SPACE 3155316UL |
cpm219 | 0:2d0ef4830603 | 178 | #define REG_CMDB_WRITE 3155320UL |
cpm219 | 0:2d0ef4830603 | 179 | #define REG_CMD_DL 3154176UL |
cpm219 | 0:2d0ef4830603 | 180 | #define REG_CMD_READ 3154168UL |
cpm219 | 0:2d0ef4830603 | 181 | #define REG_CMD_WRITE 3154172UL |
cpm219 | 0:2d0ef4830603 | 182 | #define REG_CPURESET 3153952UL |
cpm219 | 0:2d0ef4830603 | 183 | #define REG_CRC 3154296UL |
cpm219 | 0:2d0ef4830603 | 184 | #define REG_CSPREAD 3154024UL |
cpm219 | 0:2d0ef4830603 | 185 | #define REG_CTOUCH_EXTENDED 3154184UL |
cpm219 | 0:2d0ef4830603 | 186 | //modified below to reflect the same as datasheet |
cpm219 | 0:2d0ef4830603 | 187 | #define REG_CTOUCH_TOUCH0_XY 3154212UL |
cpm219 | 0:2d0ef4830603 | 188 | #define REG_CTOUCH_TOUCH4_X 3154284UL |
cpm219 | 0:2d0ef4830603 | 189 | #define REG_CTOUCH_TOUCH4_Y 3154208UL |
cpm219 | 0:2d0ef4830603 | 190 | #define REG_CTOUCH_TOUCH1_XY 3154204UL |
cpm219 | 0:2d0ef4830603 | 191 | #define REG_CTOUCH_TOUCH2_XY 3154316UL |
cpm219 | 0:2d0ef4830603 | 192 | #define REG_CTOUCH_TOUCH3_XY 3154320UL |
cpm219 | 0:2d0ef4830603 | 193 | #define REG_CYA_TOUCH 3154280UL |
cpm219 | 0:2d0ef4830603 | 194 | #define REG_DATESTAMP 3155300UL |
cpm219 | 0:2d0ef4830603 | 195 | #define REG_DITHER 3154016UL |
cpm219 | 0:2d0ef4830603 | 196 | #define REG_DLSWAP 3154004UL |
cpm219 | 0:2d0ef4830603 | 197 | #define REG_FRAMES 3153924UL |
cpm219 | 0:2d0ef4830603 | 198 | #define REG_FREQUENCY 3153932UL |
cpm219 | 0:2d0ef4830603 | 199 | #define REG_GPIO 3154068UL |
cpm219 | 0:2d0ef4830603 | 200 | #define REG_GPIOX 3154076UL |
cpm219 | 0:2d0ef4830603 | 201 | #define REG_GPIOX_DIR 3154072UL |
cpm219 | 0:2d0ef4830603 | 202 | #define REG_GPIO_DIR 3154064UL |
cpm219 | 0:2d0ef4830603 | 203 | #define REG_HCYCLE 3153964UL |
cpm219 | 0:2d0ef4830603 | 204 | #define REG_HOFFSET 3153968UL |
cpm219 | 0:2d0ef4830603 | 205 | #define REG_HSIZE 3153972UL |
cpm219 | 0:2d0ef4830603 | 206 | #define REG_HSYNC0 3153976UL |
cpm219 | 0:2d0ef4830603 | 207 | #define REG_HSYNC1 3153980UL |
cpm219 | 0:2d0ef4830603 | 208 | #define REG_ID 3153920UL |
cpm219 | 0:2d0ef4830603 | 209 | #define REG_INT_EN 3154092UL |
cpm219 | 0:2d0ef4830603 | 210 | #define REG_INT_FLAGS 3154088UL |
cpm219 | 0:2d0ef4830603 | 211 | #define REG_INT_MASK 3154096UL |
cpm219 | 0:2d0ef4830603 | 212 | #define REG_MACRO_0 3154136UL |
cpm219 | 0:2d0ef4830603 | 213 | #define REG_MACRO_1 3154140UL |
cpm219 | 0:2d0ef4830603 | 214 | #define REG_MEDIAFIFO_READ 3182612UL |
cpm219 | 0:2d0ef4830603 | 215 | #define REG_MEDIAFIFO_WRITE 3182616UL |
cpm219 | 0:2d0ef4830603 | 216 | #define REG_OUTBITS 3154012UL |
cpm219 | 0:2d0ef4830603 | 217 | #define REG_PATCHED_ANALOG 3154288UL |
cpm219 | 0:2d0ef4830603 | 218 | #define REG_PATCHED_TOUCH_FAULT 3154284UL |
cpm219 | 0:2d0ef4830603 | 219 | #define REG_PCLK 3154032UL |
cpm219 | 0:2d0ef4830603 | 220 | #define REG_PCLK_POL 3154028UL |
cpm219 | 0:2d0ef4830603 | 221 | #define REG_PLAY 3154060UL |
cpm219 | 0:2d0ef4830603 | 222 | #define REG_PLAYBACK_FORMAT 3154116UL |
cpm219 | 0:2d0ef4830603 | 223 | #define REG_PLAYBACK_FREQ 3154112UL |
cpm219 | 0:2d0ef4830603 | 224 | #define REG_PLAYBACK_LENGTH 3154104UL |
cpm219 | 0:2d0ef4830603 | 225 | #define REG_PLAYBACK_LOOP 3154120UL |
cpm219 | 0:2d0ef4830603 | 226 | #define REG_PLAYBACK_PLAY 3154124UL |
cpm219 | 0:2d0ef4830603 | 227 | #define REG_PLAYBACK_READPTR 3154108UL |
cpm219 | 0:2d0ef4830603 | 228 | #define REG_PLAYBACK_START 3154100UL |
cpm219 | 0:2d0ef4830603 | 229 | #define REG_PWM_DUTY 3154132UL |
cpm219 | 0:2d0ef4830603 | 230 | #define REG_PWM_HZ 3154128UL |
cpm219 | 0:2d0ef4830603 | 231 | #define REG_RENDERMODE 3153936UL |
cpm219 | 0:2d0ef4830603 | 232 | #define REG_ROMSUB_SEL 3154160UL |
cpm219 | 0:2d0ef4830603 | 233 | #define REG_ROTATE 3154008UL |
cpm219 | 0:2d0ef4830603 | 234 | #define REG_SNAPFORMAT 3153948UL |
cpm219 | 0:2d0ef4830603 | 235 | #define REG_SNAPSHOT 3153944UL |
cpm219 | 0:2d0ef4830603 | 236 | #define REG_SNAPY 3153940UL |
cpm219 | 0:2d0ef4830603 | 237 | #define REG_SOUND 3154056UL |
cpm219 | 0:2d0ef4830603 | 238 | #define REG_SPI_EARLY_TX 3154300UL |
cpm219 | 0:2d0ef4830603 | 239 | #define REG_SPI_WIDTH 3154312UL |
cpm219 | 0:2d0ef4830603 | 240 | #define REG_SWIZZLE 3154020UL |
cpm219 | 0:2d0ef4830603 | 241 | #define REG_TAG 3154044UL |
cpm219 | 0:2d0ef4830603 | 242 | #define REG_TAG_X 3154036UL |
cpm219 | 0:2d0ef4830603 | 243 | #define REG_TAG_Y 3154040UL |
cpm219 | 0:2d0ef4830603 | 244 | #define REG_TAP_CRC 3153956UL |
cpm219 | 0:2d0ef4830603 | 245 | #define REG_TAP_MASK 3153960UL |
cpm219 | 0:2d0ef4830603 | 246 | #define REG_TOUCH_ADC_MODE 3154184UL |
cpm219 | 0:2d0ef4830603 | 247 | #define REG_TOUCH_CHARGE 3154188UL |
cpm219 | 0:2d0ef4830603 | 248 | #define REG_TOUCH_DIRECT_XY 3154316UL |
cpm219 | 0:2d0ef4830603 | 249 | #define REG_TOUCH_DIRECT_Z1Z2 3154320UL |
cpm219 | 0:2d0ef4830603 | 250 | #define REG_TOUCH_FAULT 3154288UL |
cpm219 | 0:2d0ef4830603 | 251 | #define REG_TOUCH_MODE 3154180UL |
cpm219 | 0:2d0ef4830603 | 252 | #define REG_TOUCH_OVERSAMPLE 3154196UL |
cpm219 | 0:2d0ef4830603 | 253 | #define REG_TOUCH_RAW_XY 3154204UL |
cpm219 | 0:2d0ef4830603 | 254 | #define REG_TOUCH_RZ 3154208UL |
cpm219 | 0:2d0ef4830603 | 255 | #define REG_TOUCH_RZTHRESH 3154200UL |
cpm219 | 0:2d0ef4830603 | 256 | #define REG_TOUCH_SCREEN_XY 3154212UL |
cpm219 | 0:2d0ef4830603 | 257 | #define REG_TOUCH_SETTLE 3154192UL |
cpm219 | 0:2d0ef4830603 | 258 | #define REG_TOUCH_TAG 3154220UL |
cpm219 | 0:2d0ef4830603 | 259 | #define REG_TOUCH_TAG1 3154228UL |
cpm219 | 0:2d0ef4830603 | 260 | #define REG_TOUCH_TAG1_XY 3154224UL |
cpm219 | 0:2d0ef4830603 | 261 | #define REG_TOUCH_TAG2 3154236UL |
cpm219 | 0:2d0ef4830603 | 262 | #define REG_TOUCH_TAG2_XY 3154232UL |
cpm219 | 0:2d0ef4830603 | 263 | #define REG_TOUCH_TAG3 3154244UL |
cpm219 | 0:2d0ef4830603 | 264 | #define REG_TOUCH_TAG3_XY 3154240UL |
cpm219 | 0:2d0ef4830603 | 265 | #define REG_TOUCH_TAG4 3154252UL |
cpm219 | 0:2d0ef4830603 | 266 | #define REG_TOUCH_TAG4_XY 3154248UL |
cpm219 | 0:2d0ef4830603 | 267 | #define REG_TOUCH_TAG_XY 3154216UL |
cpm219 | 0:2d0ef4830603 | 268 | #define REG_TOUCH_TRANSFORM_A 3154256UL |
cpm219 | 0:2d0ef4830603 | 269 | #define REG_TOUCH_TRANSFORM_B 3154260UL |
cpm219 | 0:2d0ef4830603 | 270 | #define REG_TOUCH_TRANSFORM_C 3154264UL |
cpm219 | 0:2d0ef4830603 | 271 | #define REG_TOUCH_TRANSFORM_D 3154268UL |
cpm219 | 0:2d0ef4830603 | 272 | #define REG_TOUCH_TRANSFORM_E 3154272UL |
cpm219 | 0:2d0ef4830603 | 273 | #define REG_TOUCH_TRANSFORM_F 3154276UL |
cpm219 | 0:2d0ef4830603 | 274 | #define REG_TRACKER 3182592UL |
cpm219 | 0:2d0ef4830603 | 275 | #define REG_TRACKER_1 3182596UL |
cpm219 | 0:2d0ef4830603 | 276 | #define REG_TRACKER_2 3182600UL |
cpm219 | 0:2d0ef4830603 | 277 | #define REG_TRACKER_3 3182604UL |
cpm219 | 0:2d0ef4830603 | 278 | #define REG_TRACKER_4 3182608UL |
cpm219 | 0:2d0ef4830603 | 279 | #define REG_TRIM 3154304UL |
cpm219 | 0:2d0ef4830603 | 280 | #define REG_VCYCLE 3153984UL |
cpm219 | 0:2d0ef4830603 | 281 | #define REG_VOFFSET 3153988UL |
cpm219 | 0:2d0ef4830603 | 282 | #define REG_VOL_PB 3154048UL |
cpm219 | 0:2d0ef4830603 | 283 | #define REG_VOL_SOUND 3154052UL |
cpm219 | 0:2d0ef4830603 | 284 | #define REG_VSIZE 3153992UL |
cpm219 | 0:2d0ef4830603 | 285 | #define REG_VSYNC0 3153996UL |
cpm219 | 0:2d0ef4830603 | 286 | #define REG_VSYNC1 3154000UL |
cpm219 | 0:2d0ef4830603 | 287 | #define REPEAT 1UL |
cpm219 | 0:2d0ef4830603 | 288 | #define REPLACE 2UL |
cpm219 | 0:2d0ef4830603 | 289 | #define RGB332 4UL |
cpm219 | 0:2d0ef4830603 | 290 | #define RGB565 7UL |
cpm219 | 0:2d0ef4830603 | 291 | #define SRC_ALPHA 2UL |
cpm219 | 0:2d0ef4830603 | 292 | #define TEXT8X8 9UL |
cpm219 | 0:2d0ef4830603 | 293 | #define TEXTVGA 10UL |
cpm219 | 0:2d0ef4830603 | 294 | #define TOUCHMODE_CONTINUOUS 3UL |
cpm219 | 0:2d0ef4830603 | 295 | #define TOUCHMODE_FRAME 2UL |
cpm219 | 0:2d0ef4830603 | 296 | #define TOUCHMODE_OFF 0UL |
cpm219 | 0:2d0ef4830603 | 297 | #define TOUCHMODE_ONESHOT 1UL |
cpm219 | 0:2d0ef4830603 | 298 | #define ULAW_SAMPLES 1UL |
cpm219 | 0:2d0ef4830603 | 299 | #define ZERO 0UL |
cpm219 | 0:2d0ef4830603 | 300 | #define VERTEX2F(x,y) ((1UL<<30)|(((x)&32767UL)<<15)|(((y)&32767UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 301 | #define VERTEX2II(x,y,handle,cell) ((2UL<<30)|(((x)&511UL)<<21)|(((y)&511UL)<<12)|(((handle)&31UL)<<7)|(((cell)&127UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 302 | #define BITMAP_SOURCE(addr) ((1UL<<24)|(((addr)&4194303UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 303 | #define CLEAR_COLOR_RGB(red,green,blue) ((2UL<<24)|(((red)&255UL)<<16)|(((green)&255UL)<<8)|(((blue)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 304 | #define TAG(s) ((3UL<<24)|(((s)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 305 | #define COLOR_RGB(red,green,blue) ((4UL<<24)|(((red)&255UL)<<16)|(((green)&255UL)<<8)|(((blue)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 306 | #define BITMAP_HANDLE(handle) ((5UL<<24)|(((handle)&31UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 307 | #define CELL(cell) ((6UL<<24)|(((cell)&127UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 308 | #define BITMAP_LAYOUT(format,linestride,height) ((7UL<<24)|(((format)&31UL)<<19)|(((linestride)&1023UL)<<9)|(((height)&511UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 309 | #define BITMAP_SIZE(filter,wrapx,wrapy,width,height) ((8UL<<24)|(((filter)&1UL)<<20)|(((wrapx)&1UL)<<19)|(((wrapy)&1UL)<<18)|(((width)&511UL)<<9)|(((height)&511UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 310 | #define ALPHA_FUNC(func,ref) ((9UL<<24)|(((func)&7UL)<<8)|(((ref)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 311 | #define STENCIL_FUNC(func,ref,mask) ((10UL<<24)|(((func)&7UL)<<16)|(((ref)&255UL)<<8)|(((mask)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 312 | #define BLEND_FUNC(src,dst) ((11UL<<24)|(((src)&7UL)<<3)|(((dst)&7UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 313 | #define STENCIL_OP(sfail,spass) ((12UL<<24)|(((sfail)&7UL)<<3)|(((spass)&7UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 314 | #define POINT_SIZE(size) ((13UL<<24)|(((size)&8191UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 315 | #define LINE_WIDTH(width) ((14UL<<24)|(((width)&4095UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 316 | #define CLEAR_COLOR_A(alpha) ((15UL<<24)|(((alpha)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 317 | #define COLOR_A(alpha) ((16UL<<24)|(((alpha)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 318 | #define CLEAR_STENCIL(s) ((17UL<<24)|(((s)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 319 | #define CLEAR_TAG(s) ((18UL<<24)|(((s)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 320 | #define STENCIL_MASK(mask) ((19UL<<24)|(((mask)&255UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 321 | #define TAG_MASK(mask) ((20UL<<24)|(((mask)&1UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 322 | #define BITMAP_TRANSFORM_A(a) ((21UL<<24)|(((a)&131071UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 323 | #define BITMAP_TRANSFORM_B(b) ((22UL<<24)|(((b)&131071UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 324 | #define BITMAP_TRANSFORM_C(c) ((23UL<<24)|(((c)&16777215UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 325 | #define BITMAP_TRANSFORM_D(d) ((24UL<<24)|(((d)&131071UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 326 | #define BITMAP_TRANSFORM_E(e) ((25UL<<24)|(((e)&131071UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 327 | #define BITMAP_TRANSFORM_F(f) ((26UL<<24)|(((f)&16777215UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 328 | #define SCISSOR_XY(x,y) ((27UL<<24)|(((x)&2047UL)<<11)|(((y)&2047UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 329 | #define SCISSOR_SIZE(width,height) ((28UL<<24)|(((width)&4095UL)<<12)|(((height)&4095UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 330 | #define CALL(dest) ((29UL<<24)|(((dest)&65535UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 331 | #define JUMP(dest) ((30UL<<24)|(((dest)&65535UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 332 | #define BEGIN(prim) ((31UL<<24)|(((prim)&15UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 333 | #define COLOR_MASK(r,g,b,a) ((32UL<<24)|(((r)&1UL)<<3)|(((g)&1UL)<<2)|(((b)&1UL)<<1)|(((a)&1UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 334 | #define CLEAR(c,s,t) ((38UL<<24)|(((c)&1UL)<<2)|(((s)&1UL)<<1)|(((t)&1UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 335 | #define VERTEX_FORMAT(frac) ((39UL<<24)|(((frac)&7UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 336 | #define BITMAP_LAYOUT_H(linestride,height) ((40UL<<24)|(((linestride)&3UL)<<2)|(((height)&3UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 337 | #define BITMAP_SIZE_H(width,height) ((41UL<<24)|(((width)&3UL)<<2)|(((height)&3UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 338 | #define PALETTE_SOURCE(addr) ((42UL<<24)|(((addr)&4194303UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 339 | #define VERTEX_TRANSLATE_X(x) ((43UL<<24)|(((x)&131071UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 340 | #define VERTEX_TRANSLATE_Y(y) ((44UL<<24)|(((y)&131071UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 341 | #define NOP() ((45UL<<24)) |
cpm219 | 0:2d0ef4830603 | 342 | #define END() ((33UL<<24)) |
cpm219 | 0:2d0ef4830603 | 343 | #define SAVE_CONTEXT() ((34UL<<24)) |
cpm219 | 0:2d0ef4830603 | 344 | #define RESTORE_CONTEXT() ((35UL<<24)) |
cpm219 | 0:2d0ef4830603 | 345 | #define RETURN() ((36UL<<24)) |
cpm219 | 0:2d0ef4830603 | 346 | #define MACRO(m) ((37UL<<24)|(((m)&1UL)<<0)) |
cpm219 | 0:2d0ef4830603 | 347 | #define DISPLAY() ((0UL<<24)) |
cpm219 | 0:2d0ef4830603 | 348 | #endif |
cpm219 | 0:2d0ef4830603 | 349 | |
cpm219 | 0:2d0ef4830603 | 350 | #define FT_GPU_NUMCHAR_PERFONT (128) |
cpm219 | 0:2d0ef4830603 | 351 | #define FT_GPU_FONT_TABLE_SIZE (148) |
cpm219 | 0:2d0ef4830603 | 352 | |
cpm219 | 0:2d0ef4830603 | 353 | /* FT81x and FT80x font table structure */ |
cpm219 | 0:2d0ef4830603 | 354 | /* Font table address in ROM can be found by reading the address from 0xFFFFC location. */ |
cpm219 | 0:2d0ef4830603 | 355 | /* 16 font tables are present at the address read from location 0xFFFFC */ |
cpm219 | 0:2d0ef4830603 | 356 | typedef struct FT_Gpu_Fonts |
cpm219 | 0:2d0ef4830603 | 357 | { |
cpm219 | 0:2d0ef4830603 | 358 | /* All the values are in bytes */ |
cpm219 | 0:2d0ef4830603 | 359 | /* Width of each character font from 0 to 127 */ |
cpm219 | 0:2d0ef4830603 | 360 | ft_uint8_t FontWidth[FT_GPU_NUMCHAR_PERFONT]; |
cpm219 | 0:2d0ef4830603 | 361 | /* Bitmap format of font wrt bitmap formats supported by FT800 - L1, L4, L8 */ |
cpm219 | 0:2d0ef4830603 | 362 | ft_uint32_t FontBitmapFormat; |
cpm219 | 0:2d0ef4830603 | 363 | /* Font line stride in FT800 ROM */ |
cpm219 | 0:2d0ef4830603 | 364 | ft_uint32_t FontLineStride; |
cpm219 | 0:2d0ef4830603 | 365 | /* Font width in pixels */ |
cpm219 | 0:2d0ef4830603 | 366 | ft_uint32_t FontWidthInPixels; |
cpm219 | 0:2d0ef4830603 | 367 | /* Font height in pixels */ |
cpm219 | 0:2d0ef4830603 | 368 | ft_uint32_t FontHeightInPixels; |
cpm219 | 0:2d0ef4830603 | 369 | /* Pointer to font graphics raw data */ |
cpm219 | 0:2d0ef4830603 | 370 | ft_uint32_t PointerToFontGraphicsData; |
cpm219 | 0:2d0ef4830603 | 371 | }FT_Gpu_Fonts_t; |
cpm219 | 0:2d0ef4830603 | 372 | |
cpm219 | 0:2d0ef4830603 | 373 | |
cpm219 | 0:2d0ef4830603 | 374 | |
cpm219 | 0:2d0ef4830603 | 375 | |
cpm219 | 0:2d0ef4830603 | 376 | /* Nothing beyond this */ |
cpm219 | 0:2d0ef4830603 | 377 | |
cpm219 | 0:2d0ef4830603 | 378 |