Bosh sahifa > Yangiliklar > Kontent

FT_Gpu.h

May 06, 2019


#ifndef _FT_GPU_H_

#define _FT_GPU_H_


/ * FT800 ko prosessor buyrug'i uchun bufer * /

#Define FT_DL_SIZE (8 * 1024) // 8KB Display List bufer hajmi

FT_CMD_FIFO_SIZE (4 * 1024) // 4KB protsessor Fifo hajmi

FT_CMD_SIZE (4) // EVE uchun bitta 4 ta protsessor buyrug'i


/ * FT801 uchun * /

# CTOUCH_MODE_COMPATABILITY belgilash 1

# CTOUCH_MODE_EXTENDED 0 sonini belgilash



#Define FT800_VERSION "1.9.0"

#Define ADC_DIFFERENTIAL 1UL

#Define ADC_SINGLE_ENDED 0UL

#Define ADPCM_SAMPLES 2UL

#define har doim 7UL

#define ARGB1555 0UL

#Define ARGB2 5UL

#Define ARGB4 6UL

#define BARGRAFH 11UL

BILINEAR 1UL-ni tanlang

#Define BITMAPS 1UL

#Define BORDER 0UL


# CMDBUF_SIZE 4096UL raqamini belgilash

#define CMD_APPEND 4294967070UL

#define CMD_BGCOLOR 4294967049UL

#define CMD_BITMAP_TRANSFORM 4294967073UL

#define CMD_BUTTON 4294967053UL

#define CMD_CALIBRATE 4294967061UL

#Define CMD_CSKETCH 4294967093UL

#define CMD_CLOCK 4294967060UL

# CMD_COLDSTART 4294967090ULni tanlang

#define CMD_CRC 4294967043UL

#define CMD_DIAL 4294967085UL

#define CMD_DLSTART 4294967040UL

#define CMD_EXECUTE 4294967047UL

#define CMD_FGCOLOR 4294967050UL

#define CMD_GAUGE 4294967059UL

#define CMD_GETMATRIX 4294967091UL

#define CMD_GETPOINT 4294967048UL

#define CMD_GETPROPS 4294967077UL

#define CMD_GETPTR 4294967075UL

#define CMD_GRADCOLOR 4294967092UL

#define CMD_GRADIENT 4294967051UL

#define CMD_HAMMERAUX 4294967044UL

# dafin CMD_IDCT 4294967046UL

CMD_INFLATE 4294967074UL

#define CMD_INTERRUPT 4294967042UL

#define CMD_KEYS 4294967054UL

#define CMD_LOADIDENTITY 4294967078UL

#define CMD_LOADIMAGE 4294967076UL

#define CMD_LOGO 4294967089UL

#define CMD_MARCH 4294967045UL

#define CMD_MEMCPY 4294967069UL

#define CMD_MEMCRC 4294967064UL

#define CMD_MEMSET 4294967067UL

#define CMD_MEMWRITE 4294967066UL

#define CMD_MEMZERO 4294967068UL

# CMD_NUMBER raqami 4294967086ULni tanlang

#define CMD_PROGRESS 4294967055UL

#define CMD_REGREAD 4294967065UL

#define CMD_ROTATE 4294967081UL

#define CMD_SCALE 4294967080UL

#define CMD_SCREENSAVER 4294967087UL

#define CMD_SCROLLBAR 4294967057UL

#define CMD_SETFONT 4294967083UL

#define CMD_SETMATRIX 4294967082UL

#define CMD_SKETCH 4294967088UL

#define CMD_SLIDER 4294967056UL

#define CMD_SNAPSHOT 4294967071UL

#define CMD_SPINNER 4294967062UL

#define CMD_STOP 4294967063UL

#define CMD_SWAP 4294967041UL

#define CMD_TEXT 4294967052UL

#define CMD_TOGGLE 4294967058UL

#define CMD_TOUCH_TRANSFORM 4294967072UL

#define CMD_TRACK 4294967084UL

#define CMD_TRANSLATE 4294967079UL


DECR 4UL-ni tanlang

# DECR_WRAP 7ULni belgilash

# DLSWAP_DONE 0ULni belgilash

# DLSWAP_FRAME 2ULni belgilash

# DLSWAP_LINE 1ULni belgilash

DST_ALPHA 3UL-ni tanlang

EDGE_STRIP_A 7UL-ni tanlang

# EDGE_STRIP_B 8ULni belgilash

EDGE_STRIP_L 6UL-ni tanlang

EDGE_STRIP_R 5UL-ni tanlang

EQUAL 5UL-ni tanlang

GEQUAL 4UL-ni tanlang

#define GREATER 3UL

#define INCR 3UL

#define INCR_WRAP 6UL

INT_CMDEMPTY 32ULni belgilash

# INT_CMDFLAG 64ULni belgilash

# INT_CONVCOMPLETE 128ULni belgilash

#define INT_PLAYBACK 16UL

INT_SOUND 8ULni belgilash

INT_SWAP 1ULni belgilash

INT_TAG 4UL-ni tanlang

INT_TOUCH 2UL ni tanlang

#define INVERT 5UL


# KEEP 1UL-ni tanlang

#define L1 1UL

#define L4 2UL

#define L8 3UL

# -define LEQUAL 2UL

#Define LESS 1UL

#Define LINEAR_SAMPLES 0UL

#Define LINES 3UL

#Define LINE_STRIP 4UL

# Yaqin-atrofdagi narsalarni aniqlang

#DEFINE hech qachon 0UL

#define NOTQUAL 6UL

ONE 1UL-ni tanlang

#define ONE_MINUS_DST_ALPHA 5UL

#Define ONE_MINUS_SRC_ALPHA 4UL

# parametr OPT_CENTER 1536UL

#Define OPT_CENTERX 512UL

# -ni OPT_CENTERY 1024UL deb o'zgartiring

#Define OPT_FLAT 256UL

#Define OPT_MONO 1UL

#Define OPT_NOBACK 4096UL

# OPT_NODL 2UL ni tanlang

#Define OPT_NOHANDS 49152UL

# OPT_NOHM 16384UL ni tanlang

# OPT_NOPOINTER 16384UL ni tanlang

#Define OPT_NOSECS 32768UL

# -define OPT_NOTICKS 8192UL

#Define OPT_RIGHTX 2048UL

#Define OPT_SIGNED 256UL

PALETTED 8UL-ni tanlang

FTPOINTS 2UL-ni tanlang

#define 9EC dan o'tgan


# RAM_CMD 1081344UL raqamini aniqlang

#Define RAM_DL 1048576UL

RAM_G 0UL-ni tanlang

RAM_PAL 1056768UL raqami

RAM_REG 1057792UL raqamini belgilang


#define REG_ANALOG 1058104UL

#define REG_ANA_COMP 1058160UL

REG_CLOCK 1057800UL raqamini belgilang

#define REG_CMD_DL 1058028UL

REG_CMD_READ 1058020UL-ni tanlang

REG_CMD_WRITE 1058024UL-ni tanlang

REG_CPURESET 1057820UL-ni tanlang

REG_CRC 1058152UL raqamini belgilang

REG_CSPREAD 1057892UL raqamini belgilang

#define REG_CYA0 1058000UL

#Define REG_CYA1 1058004UL

#Define REG_CYA_TOUCH 1058100UL

#Define REG_DATESTAMP 1058108UL

REG_DITHER 1057884UL raqamini belgilang

REG_DLSWAP 1057872UL raqamini belgilang

REG_FRAMES 1057796UL raqamini belgilang

REG_FREQUENCY 1057804UL-ni tanlang

#define REG_GPIO 1057936UL

#define REG_GPIO_DIR 1057932UL

# REG_HCYCLE 1057832UL raqamini belgilang

REG_HOFFSET 1057836UL

# REG_HSIZE 1057840UL raqamini belgilang

REG_HSYNC0 1057844UL

REG_HSYNC1 1057848UL

#Define REG_ID 1057792UL

#define REG_INT_EN 1057948UL

REG_INT_FLAGS 1057944UL raqamini belgilang

#define REG_INT_MASK 1057952UL

REG_MACRO_0 1057992UL-ni tanlang

REG_MACRO_1 1057996UL raqamini belgilang

REG_OUTBITS 1057880UL raqamini belgilang

#Define REG_PCLK 1057900UL

REG_PCLK_POL 1057896UL raqamini belgilang

REG_PLAY 1057928UL raqamini belgilang

REG_PLAYBACK_FORMAT 1057972UL raqamini belgilang

REG_PLAYBACK_FREQ 1057968UL raqamini belgilang

REG_PLAYBACK_LENGTH 1057960D

REG_PLAYBACK_LOOP 1057976UL-ni tanlang

REG_PLAYBACK_PLAY 1057980UL-ni tanlang

REG_PLAYBACK_READPTR 1057964UL

REG_PLAYBACK_START 1057956ULni tanlang

#Define REG_PWM_DUTY 1057988UL

#define REG_PWM_HZ 1057984UL

#define REG_RENDERMODE 1057808UL

REG_ROMSUB_SEL 1058016UL raqamini belgilang

REG_ROTATE 1057876UL raqamini belgilang

REG_SNAPSHOT 1057816UL-ni tanlang

#Define REG_SNAPY 1057812UL

REG_SOUND 1057924UL-ni tanlang

REG_SWIZZLE 1057888UL-ni tanlang

REG_TAG 1057912UL raqamini belgilang

REG_TAG_X 1057904UL raqamini belgilang

REG_TAG_Y 1057908UL raqamini belgilang

REG_TAP_CRC 1057824UL raqamini belgilang

# REGGE_TAB_MASK 1057828UL raqamini belgilang

REG_TOUCH_ADC_MODE 1058036UL-ni tanlang

REG_TOUCH_CHARGE 1058040UL-ni tanlang

REG_TOUCH_DIRECT_XY 1058164UL raqamini belgilang

REG_TOUCH_DIRECT_Z1Z2 raqami 1058168UL

REG_TOUCH_MODE 1058032UL raqamini belgilang

REG_TOUCH_OVERSAMPLE 1058048UL-ni tanlang

REG_TOUCH_RAW_XY 1058056UL

REG_TOUCH_RZ 1058060UL

REG_TOUCH_RZTHRESH 1058052UL raqamini belgilang

REG_TOUCH_SCREEN_XY 1058064UL-ni tanlang

REG_TOUCH_SETTLE 1058044UL raqamini belgilang

REG_TOUCH_TAG 1058072UL raqamini belgilang

REG_TOUCH_TAG_XY 1058068UL raqamini belgilang

REG_TOUCH_TRANSFORM_A 1058076UL raqamini belgilang

REG_TOUCH_TRANSFORM_B 1058080UL

#Define REG_TOUCH_TRANSFORM_C 1058084UL

#Define REG_TOUCH_TRANSFORM_D 1058088UL

REG_TOUCH_TRANSFORM_E 1058092UL raqamini belgilang

#Define REG_TOUCH_TRANSFORM_F 1058096UL

REG_TRACKER 1085440UL-ni tanlang

REG_TRIM 1058156UL raqamini belgilang

REG_VCYCLE 1057852UL-ni tanlang

#define REG_VOFFSET 1057856UL

REG_VOL_PB 1057916UL-ni tanlang

REG_VOL_SOUND 1057920UL-ni tanlang

# REG_VSIZE 1057860ULni tanlang

#define REG_VSYNC0 1057864UL

#Define REG_VSYNC1 1057868UL

/ * FT801 * /

#define REG_CTOUCH_EXTENDED 1058036UL

#define REG_CTOUCH_GESTURE 1058104UL

#define REG_CTOUCH_IDS 1058060UL

#define REG_CTOUCH_TOUCH0_XY 1058064UL

#Define REG_CTOUCH_TOUCH1_XY 1058056UL

#define REG_CTOUCH_TOUCH2_XY 1058164UL

#define REG_CTOUCH_TOUCH3_XY 1058168UL

#define REG_CTOUCH_TOUCH4_X 1058104UL

#define REG_CTOUCH_TOUCH4_Y 1058060UL


REPEAT 1UL-ni tanlang

#DEFINE REPLACE 2UL

RGB332 4UL-ni tanlang

RGB565 7UL-ni tanlang

# SRC_ALPHA 2ULni belgilash

TEXT8X8 9UL-ni tanlang

TEXTVGA 10UL-ni tanlang

# -taroq TOUCHMODE_CONTINUOUS 3UL

TOUCHMODE_FRAME 2UL-ni tanlang

#Define TOUCHMODE_OFF 0UL

TOUCHMODE_ONESHOT 1UL-ni tanlang

ULAW_SAMPLES 1UL-ni tanlang

#DEFINE ZERO 0UL


Vertex2F (x, y) ((1UL < 30)="" |="" (((x)="" &="" 32767ul)="">< 15)="" |="" (((y)="" &="" 32767ul)=""><>

######################################################################################################################################################################################################################### | ) < 7)="" |="" (((hujayra)="" &="" 127ul)=""><>

#define BITMAP_SOURCE (addr) ((1UL < 24)="" |="" (((addr)="" &="" 1048575ul)=""><>

CLEAR_COLOR_RGB (qizil, yashil, ko'k) (((qizil, yashil, ko'k)) | (((qizil) & 255UL) < 16)="" |="" (((yashil)="" &="" 255ul)="">< 8)="" |="" (((ko'k)="" &="" 255ul)=""><>

#define TAG (s) ((3UL < 24)="" |="" (((lar)="" &="" 255ul)=""><>

# (qizil, yashil, ko'k) (((qizil, yashil, ko'k)) (((qizil va yashil)) < 16)="" |="" (((yashil)="" &="" 255ul)="">< 8)="" |="" (((ko'k)="" &="" 255ul)=""><>

#define BITMAP_HANDLE (handle) ((5UL < 24)="" |="" (((handle)="" &="" 31ul)=""><>

#define CELL (hujayra) ((6UL < 24)="" |="" (((hujayra)="" &="" 127ul)=""><>

#define BITMAP_LAYOUT (format, linestride, height) ((7UL < 24)="" |="" (((format)="" &="" 31ul)="">< 19)="" |="" (((linestride)="" &="" 1023ul)="">< 9)="" |="" (((height)="" &="" 511ul)=""><>

#define BITMAP_SIZE (filtri, wrapx, sariq, kenglik, balandlik) ((8UL < 24)="" |="" (((filtr)="" &="" 1ul)="">< 20)="" |="" (((wrapx)="" &="" 1ul)="">< 19)="" |="" (((wrapy="" )="">< 18)="" |="" (((kenglik)="" &="" 511ul)="">< 9)="" |="" (((height)="" &="" 511ul)=""><>

#define ALPHA_FUNC (func, ref) ((9UL < 24)="" |="" (((func)="" &="" 7ul)="">< 8)="" |="" (((ref)="" &="" 255ul)=""><>

# (javob (funktsiya, ref, maska)) ((func, ref, mask) <>

#define BLEND_FUNC (src, dst) ((11UL < 24)="" |="" (((src)="" &="" 7ul)="">< 3)="" |="" (((dst)="" &="" 7ul)=""><>

#define STENCIL_OP (sfail, spass) ((12UL < 24)="" |="" (((sfail)="" &="" 7ul)="">< 3)="" |="" (((spass)="" &="" 7ul)=""><>

#define POINT_SIZE (sizga) ((13UL < 24)="" |="" (((hajmi)="" &="" 8191ul)=""><>

#define LINE_WIDTH (kenglik) ((14UL < 24)="" |="" (((kenglik)="" &="" 4095ul)=""><>

#define CLEAR_COLOR_A (alfa) ((15UL < 24)="" |="" (((alfa)="" &="" 255ul)=""><>

#define COLOR_A (alfa) ((16UL < 24)="" |="" (((alfa)="" &="" 255ul)=""><>

#define CLEAR_STENCIL (lar) ((17UL < 24)="" |="" (((lar)="" &="" 255ul)=""><>

#define CLEAR_TAG (lar) ((18UL < 24)="" |="" (((lar)="" &="" 255ul)=""><>

#define STENCIL_MASK (maska) ((19UL < 24)="" |="" (((mask)="" &="" 255ul)=""><>

#define TAG_MASK (maska) ((20UL < 24)="" |="" (((mask)="" &="" 1ul)=""><>

#define BITMAP_TRANSFORM_A (a) ((21UL < 24)="" |="" (((a)="" &="" 131071ul)=""><>

#define BITMAP_TRANSFORM_B (b) ((22UL < 24)="" |="" (((b)="" &="" 131071ul)=""><>

#define BITMAP_TRANSFORM_C (c) ((23UL < 24)="" |="" (((c)="" &="" 16777215ul)=""><>

#define BITMAP_TRANSFORM_D (d) ((24UL < 24)="" |="" (((d)="" &="" 131071ul)=""><>

#define BITMAP_TRANSFORM_E (e) ((25UL < 24)="" |="" (((e)="" &="" 131071ul)=""><>

#define BITMAP_TRANSFORM_F (f) ((26UL < 24)="" |="" (((f)="" &="" 16777215ul)=""><>

#define SCISSOR_XY (x, y) ((27UL < 24)="" |="" (((x)="" &="" 511ul)="">< 9)="" |="" (((y)="" &="" 511ul)=""><>

#define SCISSOR_SIZE (kenglik, balandlik) ((28UL < 24)="" |="" (((kenglik)="" &="" 1023ul)="">< 10)="" |="" (((height)="" &="" 1023ul)=""><>

#define CALL (dest) ((29UL < 24)="" |="" (((dest)="" &="" 65535ul)=""><>

#define JUMP (dest) ((30UL < 24)="" |="" (((dest)="" &="" 65535ul)=""><>

#define BEGIN (prim) ((31UL < 24)="" |="" (((prim)="" &="" 15ul)=""><>

#define COLOR_MASK (r, g, b, a) ((32UL < 24)="" |="" ((r)="" &="" 1ul)="">< 3)="" |="" (((g)="" &="" lul)="">< 2)="" |="" (((b)="" &="" 1ul="" )="">< 1)="" |="" (((a)="" &="" 1ul)=""><>

#define CLEAR (c, s, t) ((38UL < 24)="" |="" (((c)="" &="" 1ul)="">< 2)="" |="" (((lar)="" &="" 1ul)="">< 1)="" |="" (((t)="" &="" 1ul)=""><>

#define END () ((33UL <>

#define SAVE_CONTEXT () ((34UL <>

#Define RESTORE_CONTEXT () ((35UL <>

#define RETURN () ((36UL <>

#define MACRO (m) ((37UL < 24)="" |="" (((m)="" &="" 1ul)=""><>

# DISPLAY DISPLAY () ((0UL <>


FT_GPU_NUMCHAR_PERFONT (128)

FT_GPU_FONT_TABLE_SIZE (148)


/ * FT800 shrift jadvali tuzilishi * /

/ * ROMda shrift jadvali manzili 0xFFFFC manzilidan manzilni o'qish orqali topiladi. * /

/ * 16 shrift jadvali mavjud manzildan 0xFFFFC * /

struct FT_Gpu_Fonts

{

/ * Barcha qiymatlar baytda * /

/ * 0 dan 127 * / gacha har bir belgi shriftining kengligi

ft_uint8_t FontWidth [FT_GPU_NUMCHAR_PERFONT];

/ * FT800 - L1, L4, L8 * / qo'llab-quvvatlanadigan shrift bitli chiziqli bitmap formatlarining bitmap formati

ft_uint32_t FontBitmapFormat;

/ * FT800 ROM * harflarning chiziqli qadamlari * /

ft_uint32_t FontLineStride;

/ * Pikselli harflarning kengligi * /

ft_uint32_t FontWidthInPixels;

/ * Pikselli harflarning balandligi * /

ft_uint32_t FontHeightInPixels;

/ * Shrift grafikasida xom ma'lumotlarni * /

ft_uint32_t PointerToFontGraphicsData;

} FT_Gpu_Fonts_t;


#endif / * #ifndef _FT_GPU_H_ * /



/ * Bundan tashqari biror narsa * /