Lib FT800 Modifiee

Dependents:   FT800_Lib_perso

Committer:
schnf30
Date:
Tue Feb 08 08:17:31 2022 +0000
Revision:
0:7ea2f058a713
Librairie FT800 adaptee avec drawline, Brigntness etc...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
schnf30 0:7ea2f058a713 1 /* mbed Library for FTDI FT800 Enbedded Video Engine "EVE"
schnf30 0:7ea2f058a713 2 * based on Original Code Sample from FTDI
schnf30 0:7ea2f058a713 3 * ported to mbed by Peter Drescher, DC2PD 2014
schnf30 0:7ea2f058a713 4 * Released under the MIT License: http://mbed.org/license/mit */
schnf30 0:7ea2f058a713 5
schnf30 0:7ea2f058a713 6 #ifndef _FT_GPU_H_
schnf30 0:7ea2f058a713 7 #define _FT_GPU_H_
schnf30 0:7ea2f058a713 8
schnf30 0:7ea2f058a713 9 /* Definitions used for FT800 co processor command buffer */
schnf30 0:7ea2f058a713 10 #define FT_DL_SIZE (8*1024) //8KB Display List buffer size
schnf30 0:7ea2f058a713 11 #define FT_CMD_FIFO_SIZE (4*1024) //4KB coprocessor Fifo size
schnf30 0:7ea2f058a713 12 #define FT_CMD_SIZE (4) //4 byte per coprocessor command of EVE
schnf30 0:7ea2f058a713 13
schnf30 0:7ea2f058a713 14 #define FT800_VERSION "1.9.0"
schnf30 0:7ea2f058a713 15 #define ADC_DIFFERENTIAL 1UL
schnf30 0:7ea2f058a713 16 #define ADC_SINGLE_ENDED 0UL
schnf30 0:7ea2f058a713 17 #define ADPCM_SAMPLES 2UL
schnf30 0:7ea2f058a713 18 #define ALWAYS 7UL
schnf30 0:7ea2f058a713 19 #define ARGB1555 0UL
schnf30 0:7ea2f058a713 20 #define ARGB2 5UL
schnf30 0:7ea2f058a713 21 #define ARGB4 6UL
schnf30 0:7ea2f058a713 22 #define BARGRAPH 11UL
schnf30 0:7ea2f058a713 23 #define BILINEAR 1UL
schnf30 0:7ea2f058a713 24 #define BITMAPS 1UL
schnf30 0:7ea2f058a713 25 #define BORDER 0UL
schnf30 0:7ea2f058a713 26
schnf30 0:7ea2f058a713 27 #define CMDBUF_SIZE 4096UL
schnf30 0:7ea2f058a713 28 #define CMD_APPEND 4294967070UL
schnf30 0:7ea2f058a713 29 #define CMD_BGCOLOR 4294967049UL
schnf30 0:7ea2f058a713 30 #define CMD_BITMAP_TRANSFORM 4294967073UL
schnf30 0:7ea2f058a713 31 #define CMD_BUTTON 4294967053UL
schnf30 0:7ea2f058a713 32 #define CMD_CALIBRATE 4294967061UL
schnf30 0:7ea2f058a713 33 #define CMD_CLOCK 4294967060UL
schnf30 0:7ea2f058a713 34 #define CMD_COLDSTART 4294967090UL
schnf30 0:7ea2f058a713 35 #define CMD_CRC 4294967043UL
schnf30 0:7ea2f058a713 36 #define CMD_DIAL 4294967085UL
schnf30 0:7ea2f058a713 37 #define CMD_DLSTART 4294967040UL
schnf30 0:7ea2f058a713 38 #define CMD_EXECUTE 4294967047UL
schnf30 0:7ea2f058a713 39 #define CMD_FGCOLOR 4294967050UL
schnf30 0:7ea2f058a713 40 #define CMD_GAUGE 4294967059UL
schnf30 0:7ea2f058a713 41 #define CMD_GETMATRIX 4294967091UL
schnf30 0:7ea2f058a713 42 #define CMD_GETPOINT 4294967048UL
schnf30 0:7ea2f058a713 43 #define CMD_GETPROPS 4294967077UL
schnf30 0:7ea2f058a713 44 #define CMD_GETPTR 4294967075UL
schnf30 0:7ea2f058a713 45 #define CMD_GRADCOLOR 4294967092UL
schnf30 0:7ea2f058a713 46 #define CMD_GRADIENT 4294967051UL
schnf30 0:7ea2f058a713 47 #define CMD_HAMMERAUX 4294967044UL
schnf30 0:7ea2f058a713 48 #define CMD_IDCT 4294967046UL
schnf30 0:7ea2f058a713 49 #define CMD_INFLATE 4294967074UL
schnf30 0:7ea2f058a713 50 #define CMD_INTERRUPT 4294967042UL
schnf30 0:7ea2f058a713 51 #define CMD_KEYS 4294967054UL
schnf30 0:7ea2f058a713 52 #define CMD_LOADIDENTITY 4294967078UL
schnf30 0:7ea2f058a713 53 #define CMD_LOADIMAGE 4294967076UL
schnf30 0:7ea2f058a713 54 #define CMD_LOGO 4294967089UL
schnf30 0:7ea2f058a713 55 #define CMD_MARCH 4294967045UL
schnf30 0:7ea2f058a713 56 #define CMD_MEMCPY 4294967069UL
schnf30 0:7ea2f058a713 57 #define CMD_MEMCRC 4294967064UL
schnf30 0:7ea2f058a713 58 #define CMD_MEMSET 4294967067UL
schnf30 0:7ea2f058a713 59 #define CMD_MEMWRITE 4294967066UL
schnf30 0:7ea2f058a713 60 #define CMD_MEMZERO 4294967068UL
schnf30 0:7ea2f058a713 61 #define CMD_NUMBER 4294967086UL
schnf30 0:7ea2f058a713 62 #define CMD_PROGRESS 4294967055UL
schnf30 0:7ea2f058a713 63 #define CMD_REGREAD 4294967065UL
schnf30 0:7ea2f058a713 64 #define CMD_ROTATE 4294967081UL
schnf30 0:7ea2f058a713 65 #define CMD_SCALE 4294967080UL
schnf30 0:7ea2f058a713 66 #define CMD_SCREENSAVER 4294967087UL
schnf30 0:7ea2f058a713 67 #define CMD_SCROLLBAR 4294967057UL
schnf30 0:7ea2f058a713 68 #define CMD_SETFONT 4294967083UL
schnf30 0:7ea2f058a713 69 #define CMD_SETMATRIX 4294967082UL
schnf30 0:7ea2f058a713 70 #define CMD_SKETCH 4294967088UL
schnf30 0:7ea2f058a713 71 #define CMD_SLIDER 4294967056UL
schnf30 0:7ea2f058a713 72 #define CMD_SNAPSHOT 4294967071UL
schnf30 0:7ea2f058a713 73 #define CMD_SPINNER 4294967062UL
schnf30 0:7ea2f058a713 74 #define CMD_STOP 4294967063UL
schnf30 0:7ea2f058a713 75 #define CMD_SWAP 4294967041UL
schnf30 0:7ea2f058a713 76 #define CMD_TEXT 4294967052UL
schnf30 0:7ea2f058a713 77 #define CMD_TOGGLE 4294967058UL
schnf30 0:7ea2f058a713 78 #define CMD_TOUCH_TRANSFORM 4294967072UL
schnf30 0:7ea2f058a713 79 #define CMD_TRACK 4294967084UL
schnf30 0:7ea2f058a713 80 #define CMD_TRANSLATE 4294967079UL
schnf30 0:7ea2f058a713 81
schnf30 0:7ea2f058a713 82 #define DECR 4UL
schnf30 0:7ea2f058a713 83 #define DECR_WRAP 7UL
schnf30 0:7ea2f058a713 84 #define DLSWAP_DONE 0UL
schnf30 0:7ea2f058a713 85 #define DLSWAP_FRAME 2UL
schnf30 0:7ea2f058a713 86 #define DLSWAP_LINE 1UL
schnf30 0:7ea2f058a713 87 #define DST_ALPHA 3UL
schnf30 0:7ea2f058a713 88 #define EDGE_STRIP_A 7UL
schnf30 0:7ea2f058a713 89 #define EDGE_STRIP_B 8UL
schnf30 0:7ea2f058a713 90 #define EDGE_STRIP_L 6UL
schnf30 0:7ea2f058a713 91 #define EDGE_STRIP_R 5UL
schnf30 0:7ea2f058a713 92 #define EQUAL 5UL
schnf30 0:7ea2f058a713 93 #define GEQUAL 4UL
schnf30 0:7ea2f058a713 94 #define GREATER 3UL
schnf30 0:7ea2f058a713 95 #define INCR 3UL
schnf30 0:7ea2f058a713 96 #define INCR_WRAP 6UL
schnf30 0:7ea2f058a713 97 #define INT_CMDEMPTY 32UL
schnf30 0:7ea2f058a713 98 #define INT_CMDFLAG 64UL
schnf30 0:7ea2f058a713 99 #define INT_CONVCOMPLETE 128UL
schnf30 0:7ea2f058a713 100 #define INT_PLAYBACK 16UL
schnf30 0:7ea2f058a713 101 #define INT_SOUND 8UL
schnf30 0:7ea2f058a713 102 #define INT_SWAP 1UL
schnf30 0:7ea2f058a713 103 #define INT_TAG 4UL
schnf30 0:7ea2f058a713 104 #define INT_TOUCH 2UL
schnf30 0:7ea2f058a713 105 #define INVERT 5UL
schnf30 0:7ea2f058a713 106
schnf30 0:7ea2f058a713 107 #define KEEP 1UL
schnf30 0:7ea2f058a713 108 #define L1 1UL
schnf30 0:7ea2f058a713 109 #define L4 2UL
schnf30 0:7ea2f058a713 110 #define L8 3UL
schnf30 0:7ea2f058a713 111 #define LEQUAL 2UL
schnf30 0:7ea2f058a713 112 #define LESS 1UL
schnf30 0:7ea2f058a713 113 #define LINEAR_SAMPLES 0UL
schnf30 0:7ea2f058a713 114 #define LINES 3UL
schnf30 0:7ea2f058a713 115 #define LINE_STRIP 4UL
schnf30 0:7ea2f058a713 116 #define NEAREST 0UL
schnf30 0:7ea2f058a713 117 #define NEVER 0UL
schnf30 0:7ea2f058a713 118 #define NOTEQUAL 6UL
schnf30 0:7ea2f058a713 119 #define ONE 1UL
schnf30 0:7ea2f058a713 120 #define ONE_MINUS_DST_ALPHA 5UL
schnf30 0:7ea2f058a713 121 #define ONE_MINUS_SRC_ALPHA 4UL
schnf30 0:7ea2f058a713 122 #define OPT_CENTER 1536UL
schnf30 0:7ea2f058a713 123 #define OPT_CENTERX 512UL
schnf30 0:7ea2f058a713 124 #define OPT_CENTERY 1024UL
schnf30 0:7ea2f058a713 125 #define OPT_FLAT 256UL
schnf30 0:7ea2f058a713 126 #define OPT_MONO 1UL
schnf30 0:7ea2f058a713 127 #define OPT_NOBACK 4096UL
schnf30 0:7ea2f058a713 128 #define OPT_NODL 2UL
schnf30 0:7ea2f058a713 129 #define OPT_NOHANDS 49152UL
schnf30 0:7ea2f058a713 130 #define OPT_NOHM 16384UL
schnf30 0:7ea2f058a713 131 #define OPT_NOPOINTER 16384UL
schnf30 0:7ea2f058a713 132 #define OPT_NOSECS 32768UL
schnf30 0:7ea2f058a713 133 #define OPT_NOTICKS 8192UL
schnf30 0:7ea2f058a713 134 #define OPT_RIGHTX 2048UL
schnf30 0:7ea2f058a713 135 #define OPT_SIGNED 256UL
schnf30 0:7ea2f058a713 136 #define PALETTED 8UL
schnf30 0:7ea2f058a713 137 #define POINTS 2UL
schnf30 0:7ea2f058a713 138 #define FTPOINTS 2UL
schnf30 0:7ea2f058a713 139 #define RECTS 9UL
schnf30 0:7ea2f058a713 140
schnf30 0:7ea2f058a713 141 #define RAM_CMD 1081344UL
schnf30 0:7ea2f058a713 142 #define RAM_DL 1048576UL
schnf30 0:7ea2f058a713 143 #define RAM_G 0UL
schnf30 0:7ea2f058a713 144 #define RAM_PAL 1056768UL
schnf30 0:7ea2f058a713 145 #define RAM_REG 1057792UL
schnf30 0:7ea2f058a713 146
schnf30 0:7ea2f058a713 147
schnf30 0:7ea2f058a713 148
schnf30 0:7ea2f058a713 149 #define REG_ANALOG 1058104UL
schnf30 0:7ea2f058a713 150 #define REG_ANA_COMP 1058160UL
schnf30 0:7ea2f058a713 151 #define REG_CLOCK 1057800UL
schnf30 0:7ea2f058a713 152 #define REG_CMD_DL 1058028UL
schnf30 0:7ea2f058a713 153 #define REG_CMD_READ 1058020UL
schnf30 0:7ea2f058a713 154 #define REG_CMD_WRITE 1058024UL
schnf30 0:7ea2f058a713 155 #define REG_CPURESET 1057820UL
schnf30 0:7ea2f058a713 156 #define REG_CRC 1058152UL
schnf30 0:7ea2f058a713 157 #define REG_CSPREAD 1057892UL
schnf30 0:7ea2f058a713 158 #define REG_CYA0 1058000UL
schnf30 0:7ea2f058a713 159 #define REG_CYA1 1058004UL
schnf30 0:7ea2f058a713 160 #define REG_CYA_TOUCH 1058100UL
schnf30 0:7ea2f058a713 161 #define REG_DATESTAMP 1058108UL
schnf30 0:7ea2f058a713 162 #define REG_DITHER 1057884UL
schnf30 0:7ea2f058a713 163 #define REG_DLSWAP 1057872UL
schnf30 0:7ea2f058a713 164 #define REG_FRAMES 1057796UL
schnf30 0:7ea2f058a713 165 #define REG_FREQUENCY 1057804UL
schnf30 0:7ea2f058a713 166 #define REG_GPIO 1057936UL
schnf30 0:7ea2f058a713 167 #define REG_GPIO_DIR 1057932UL
schnf30 0:7ea2f058a713 168 #define REG_HCYCLE 1057832UL
schnf30 0:7ea2f058a713 169 #define REG_HOFFSET 1057836UL
schnf30 0:7ea2f058a713 170 #define REG_HSIZE 1057840UL
schnf30 0:7ea2f058a713 171 #define REG_HSYNC0 1057844UL
schnf30 0:7ea2f058a713 172 #define REG_HSYNC1 1057848UL
schnf30 0:7ea2f058a713 173 #define REG_ID 1057792UL
schnf30 0:7ea2f058a713 174 #define REG_INT_EN 1057948UL
schnf30 0:7ea2f058a713 175 #define REG_INT_FLAGS 1057944UL
schnf30 0:7ea2f058a713 176 #define REG_INT_MASK 1057952UL
schnf30 0:7ea2f058a713 177 #define REG_MACRO_0 1057992UL
schnf30 0:7ea2f058a713 178 #define REG_MACRO_1 1057996UL
schnf30 0:7ea2f058a713 179 #define REG_OUTBITS 1057880UL
schnf30 0:7ea2f058a713 180 #define REG_PCLK 1057900UL
schnf30 0:7ea2f058a713 181 #define REG_PCLK_POL 1057896UL
schnf30 0:7ea2f058a713 182 #define REG_PLAY 1057928UL
schnf30 0:7ea2f058a713 183 #define REG_PLAYBACK_FORMAT 1057972UL
schnf30 0:7ea2f058a713 184 #define REG_PLAYBACK_FREQ 1057968UL
schnf30 0:7ea2f058a713 185 #define REG_PLAYBACK_LENGTH 1057960UL
schnf30 0:7ea2f058a713 186 #define REG_PLAYBACK_LOOP 1057976UL
schnf30 0:7ea2f058a713 187 #define REG_PLAYBACK_PLAY 1057980UL
schnf30 0:7ea2f058a713 188 #define REG_PLAYBACK_READPTR 1057964UL
schnf30 0:7ea2f058a713 189 #define REG_PLAYBACK_START 1057956UL
schnf30 0:7ea2f058a713 190 #define REG_PWM_DUTY 1057988UL
schnf30 0:7ea2f058a713 191 #define REG_PWM_HZ 1057984UL
schnf30 0:7ea2f058a713 192 #define REG_RENDERMODE 1057808UL
schnf30 0:7ea2f058a713 193 #define REG_ROMSUB_SEL 1058016UL
schnf30 0:7ea2f058a713 194 #define REG_ROTATE 1057876UL
schnf30 0:7ea2f058a713 195 #define REG_SNAPSHOT 1057816UL
schnf30 0:7ea2f058a713 196 #define REG_SNAPY 1057812UL
schnf30 0:7ea2f058a713 197 #define REG_SOUND 1057924UL
schnf30 0:7ea2f058a713 198 #define REG_SWIZZLE 1057888UL
schnf30 0:7ea2f058a713 199 #define REG_TAG 1057912UL
schnf30 0:7ea2f058a713 200 #define REG_TAG_X 1057904UL
schnf30 0:7ea2f058a713 201 #define REG_TAG_Y 1057908UL
schnf30 0:7ea2f058a713 202 #define REG_TAP_CRC 1057824UL
schnf30 0:7ea2f058a713 203 #define REG_TAP_MASK 1057828UL
schnf30 0:7ea2f058a713 204 #define REG_TOUCH_ADC_MODE 1058036UL
schnf30 0:7ea2f058a713 205 #define REG_TOUCH_CHARGE 1058040UL
schnf30 0:7ea2f058a713 206 #define REG_TOUCH_DIRECT_XY 1058164UL
schnf30 0:7ea2f058a713 207 #define REG_TOUCH_DIRECT_Z1Z2 1058168UL
schnf30 0:7ea2f058a713 208 #define REG_TOUCH_MODE 1058032UL
schnf30 0:7ea2f058a713 209 #define REG_TOUCH_OVERSAMPLE 1058048UL
schnf30 0:7ea2f058a713 210 #define REG_TOUCH_RAW_XY 1058056UL
schnf30 0:7ea2f058a713 211 #define REG_TOUCH_RZ 1058060UL
schnf30 0:7ea2f058a713 212 #define REG_TOUCH_RZTHRESH 1058052UL
schnf30 0:7ea2f058a713 213 #define REG_TOUCH_SCREEN_XY 1058064UL
schnf30 0:7ea2f058a713 214 #define REG_TOUCH_SETTLE 1058044UL
schnf30 0:7ea2f058a713 215 #define REG_TOUCH_TAG 1058072UL
schnf30 0:7ea2f058a713 216 #define REG_TOUCH_TAG_XY 1058068UL
schnf30 0:7ea2f058a713 217 #define REG_TOUCH_TRANSFORM_A 1058076UL
schnf30 0:7ea2f058a713 218 #define REG_TOUCH_TRANSFORM_B 1058080UL
schnf30 0:7ea2f058a713 219 #define REG_TOUCH_TRANSFORM_C 1058084UL
schnf30 0:7ea2f058a713 220 #define REG_TOUCH_TRANSFORM_D 1058088UL
schnf30 0:7ea2f058a713 221 #define REG_TOUCH_TRANSFORM_E 1058092UL
schnf30 0:7ea2f058a713 222 #define REG_TOUCH_TRANSFORM_F 1058096UL
schnf30 0:7ea2f058a713 223 #define REG_TRACKER 1085440UL
schnf30 0:7ea2f058a713 224 #define REG_TRIM 1058156UL
schnf30 0:7ea2f058a713 225 #define REG_VCYCLE 1057852UL
schnf30 0:7ea2f058a713 226 #define REG_VOFFSET 1057856UL
schnf30 0:7ea2f058a713 227 #define REG_VOL_PB 1057916UL
schnf30 0:7ea2f058a713 228 #define REG_VOL_SOUND 1057920UL
schnf30 0:7ea2f058a713 229 #define REG_VSIZE 1057860UL
schnf30 0:7ea2f058a713 230 #define REG_VSYNC0 1057864UL
schnf30 0:7ea2f058a713 231 #define REG_VSYNC1 1057868UL
schnf30 0:7ea2f058a713 232
schnf30 0:7ea2f058a713 233
schnf30 0:7ea2f058a713 234 #define REPEAT 1UL
schnf30 0:7ea2f058a713 235 #define REPLACE 2UL
schnf30 0:7ea2f058a713 236 #define RGB332 4UL
schnf30 0:7ea2f058a713 237 #define RGB565 7UL
schnf30 0:7ea2f058a713 238 #define SRC_ALPHA 2UL
schnf30 0:7ea2f058a713 239 #define TEXT8X8 9UL
schnf30 0:7ea2f058a713 240 #define TEXTVGA 10UL
schnf30 0:7ea2f058a713 241 #define TOUCHMODE_CONTINUOUS 3UL
schnf30 0:7ea2f058a713 242 #define TOUCHMODE_FRAME 2UL
schnf30 0:7ea2f058a713 243 #define TOUCHMODE_OFF 0UL
schnf30 0:7ea2f058a713 244 #define TOUCHMODE_ONESHOT 1UL
schnf30 0:7ea2f058a713 245 #define ULAW_SAMPLES 1UL
schnf30 0:7ea2f058a713 246 #define ZERO 0UL
schnf30 0:7ea2f058a713 247
schnf30 0:7ea2f058a713 248
schnf30 0:7ea2f058a713 249 #define VERTEX2F(x,y) ((1UL<<30)|(((x)&32767UL)<<15)|(((y)&32767UL)<<0))
schnf30 0:7ea2f058a713 250 #define VERTEX2II(x,y,handle,cell) ((2UL<<30)|(((x)&511UL)<<21)|(((y)&511UL)<<12)|(((handle)&31UL)<<7)|(((cell)&127UL)<<0))
schnf30 0:7ea2f058a713 251 #define BITMAP_SOURCE(addr) ((1UL<<24)|(((addr)&1048575UL)<<0))
schnf30 0:7ea2f058a713 252 #define CLEAR_COLOR_RGB(red,green,blue) ((2UL<<24)|(((red)&255UL)<<16)|(((green)&255UL)<<8)|(((blue)&255UL)<<0))
schnf30 0:7ea2f058a713 253 #define TAG(s) ((3UL<<24)|(((s)&255UL)<<0))
schnf30 0:7ea2f058a713 254 #define COLOR_RGB(red,green,blue) ((4UL<<24)|(((red)&255UL)<<16)|(((green)&255UL)<<8)|(((blue)&255UL)<<0))
schnf30 0:7ea2f058a713 255 #define BITMAP_HANDLE(handle) ((5UL<<24)|(((handle)&31UL)<<0))
schnf30 0:7ea2f058a713 256 #define CELL(cell) ((6UL<<24)|(((cell)&127UL)<<0))
schnf30 0:7ea2f058a713 257 #define BITMAP_LAYOUT(format,linestride,height) ((7UL<<24)|(((format)&31UL)<<19)|(((linestride)&1023UL)<<9)|(((height)&511UL)<<0))
schnf30 0:7ea2f058a713 258 #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))
schnf30 0:7ea2f058a713 259 #define ALPHA_FUNC(func,ref) ((9UL<<24)|(((func)&7UL)<<8)|(((ref)&255UL)<<0))
schnf30 0:7ea2f058a713 260 #define STENCIL_FUNC(func,ref,mask) ((10UL<<24)|(((func)&7UL)<<16)|(((ref)&255UL)<<8)|(((mask)&255UL)<<0))
schnf30 0:7ea2f058a713 261 #define BLEND_FUNC(src,dst) ((11UL<<24)|(((src)&7UL)<<3)|(((dst)&7UL)<<0))
schnf30 0:7ea2f058a713 262 #define STENCIL_OP(sfail,spass) ((12UL<<24)|(((sfail)&7UL)<<3)|(((spass)&7UL)<<0))
schnf30 0:7ea2f058a713 263 #define POINT_SIZE(size) ((13UL<<24)|(((size)&8191UL)<<0))
schnf30 0:7ea2f058a713 264 #define LINE_WIDTH(width) ((14UL<<24)|(((width)&4095UL)<<0))
schnf30 0:7ea2f058a713 265 #define CLEAR_COLOR_A(alpha) ((15UL<<24)|(((alpha)&255UL)<<0))
schnf30 0:7ea2f058a713 266 #define COLOR_A(alpha) ((16UL<<24)|(((alpha)&255UL)<<0))
schnf30 0:7ea2f058a713 267 #define CLEAR_STENCIL(s) ((17UL<<24)|(((s)&255UL)<<0))
schnf30 0:7ea2f058a713 268 #define CLEAR_TAG(s) ((18UL<<24)|(((s)&255UL)<<0))
schnf30 0:7ea2f058a713 269 #define STENCIL_MASK(mask) ((19UL<<24)|(((mask)&255UL)<<0))
schnf30 0:7ea2f058a713 270 #define TAG_MASK(mask) ((20UL<<24)|(((mask)&1UL)<<0))
schnf30 0:7ea2f058a713 271 #define BITMAP_TRANSFORM_A(a) ((21UL<<24)|(((a)&131071UL)<<0))
schnf30 0:7ea2f058a713 272 #define BITMAP_TRANSFORM_B(b) ((22UL<<24)|(((b)&131071UL)<<0))
schnf30 0:7ea2f058a713 273 #define BITMAP_TRANSFORM_C(c) ((23UL<<24)|(((c)&16777215UL)<<0))
schnf30 0:7ea2f058a713 274 #define BITMAP_TRANSFORM_D(d) ((24UL<<24)|(((d)&131071UL)<<0))
schnf30 0:7ea2f058a713 275 #define BITMAP_TRANSFORM_E(e) ((25UL<<24)|(((e)&131071UL)<<0))
schnf30 0:7ea2f058a713 276 #define BITMAP_TRANSFORM_F(f) ((26UL<<24)|(((f)&16777215UL)<<0))
schnf30 0:7ea2f058a713 277 #define SCISSOR_XY(x,y) ((27UL<<24)|(((x)&511UL)<<9)|(((y)&511UL)<<0))
schnf30 0:7ea2f058a713 278 #define SCISSOR_SIZE(width,height) ((28UL<<24)|(((width)&1023UL)<<10)|(((height)&1023UL)<<0))
schnf30 0:7ea2f058a713 279 #define CALL(dest) ((29UL<<24)|(((dest)&65535UL)<<0))
schnf30 0:7ea2f058a713 280 #define JUMP(dest) ((30UL<<24)|(((dest)&65535UL)<<0))
schnf30 0:7ea2f058a713 281 #define BEGIN(prim) ((31UL<<24)|(((prim)&15UL)<<0))
schnf30 0:7ea2f058a713 282 #define COLOR_MASK(r,g,b,a) ((32UL<<24)|(((r)&1UL)<<3)|(((g)&1UL)<<2)|(((b)&1UL)<<1)|(((a)&1UL)<<0))
schnf30 0:7ea2f058a713 283 #define CLEAR(c,s,t) ((38UL<<24)|(((c)&1UL)<<2)|(((s)&1UL)<<1)|(((t)&1UL)<<0))
schnf30 0:7ea2f058a713 284 #define END() ((33UL<<24))
schnf30 0:7ea2f058a713 285 #define SAVE_CONTEXT() ((34UL<<24))
schnf30 0:7ea2f058a713 286 #define RESTORE_CONTEXT() ((35UL<<24))
schnf30 0:7ea2f058a713 287 #define RETURN() ((36UL<<24))
schnf30 0:7ea2f058a713 288 #define MACRO(m) ((37UL<<24)|(((m)&1UL)<<0))
schnf30 0:7ea2f058a713 289 #define DISPLAY() ((0UL<<24))
schnf30 0:7ea2f058a713 290
schnf30 0:7ea2f058a713 291 #define FT_GPU_NUMCHAR_PERFONT (128)
schnf30 0:7ea2f058a713 292 #define FT_GPU_FONT_TABLE_SIZE (148)
schnf30 0:7ea2f058a713 293
schnf30 0:7ea2f058a713 294
schnf30 0:7ea2f058a713 295
schnf30 0:7ea2f058a713 296 /* FT800 font table structure */
schnf30 0:7ea2f058a713 297 /* Font table address in ROM can be found by reading the address from 0xFFFFC location. */
schnf30 0:7ea2f058a713 298 /* 16 font tables are present at the address read from location 0xFFFFC */
schnf30 0:7ea2f058a713 299 typedef struct FT_Gpu_Fonts
schnf30 0:7ea2f058a713 300 {
schnf30 0:7ea2f058a713 301 /* All the values are in bytes */
schnf30 0:7ea2f058a713 302 /* Width of each character font from 0 to 127 */
schnf30 0:7ea2f058a713 303 ft_uint8_t FontWidth[FT_GPU_NUMCHAR_PERFONT];
schnf30 0:7ea2f058a713 304 /* Bitmap format of font wrt bitmap formats supported by FT800 - L1, L4, L8 */
schnf30 0:7ea2f058a713 305 ft_uint32_t FontBitmapFormat;
schnf30 0:7ea2f058a713 306 /* Font line stride in FT800 ROM */
schnf30 0:7ea2f058a713 307 ft_uint32_t FontLineStride;
schnf30 0:7ea2f058a713 308 /* Font width in pixels */
schnf30 0:7ea2f058a713 309 ft_uint32_t FontWidthInPixels;
schnf30 0:7ea2f058a713 310 /* Font height in pixels */
schnf30 0:7ea2f058a713 311 ft_uint32_t FontHeightInPixels;
schnf30 0:7ea2f058a713 312 /* Pointer to font graphics raw data */
schnf30 0:7ea2f058a713 313 ft_uint32_t PointerToFontGraphicsData;
schnf30 0:7ea2f058a713 314 }FT_Gpu_Fonts_t;
schnf30 0:7ea2f058a713 315
schnf30 0:7ea2f058a713 316 #endif /* #ifndef _FT_GPU_H_ */
schnf30 0:7ea2f058a713 317
schnf30 0:7ea2f058a713 318
schnf30 0:7ea2f058a713 319 /* Nothing beyond this */
schnf30 0:7ea2f058a713 320
schnf30 0:7ea2f058a713 321
schnf30 0:7ea2f058a713 322
schnf30 0:7ea2f058a713 323
schnf30 0:7ea2f058a713 324
schnf30 0:7ea2f058a713 325