Product Application

©
Rev.1.1
}
/* Send the stop command */
Ft_Gpu_Hal_WrCmd32(phost, CMD_STOP);
/* Update the command buffer pointers - both read and write pointers */
Ft_Gpu_Hal_WaitCmdfifo_empty(phost);
}
Ft_Gpu_CoCmd_MemZero(phost,(RAM_G+ending_address),MemZeroSz) function clear
graphic RAM memory of FT800 chip. Second argument provide information about start address of
memory clearing. Third argument is size of clearing memory area. Sketching is done by
Ft_Gpu_CoCmd_Sketch(phost,BorderSz2,BorderSz,(FT_DispWidth-
2*BorderSz2),(FT_DispHeight-BorderSz-BorderSz2),(RAM_G+ending_address),L8).
Second and third arguments are coordinates of screen where function sketch starts. Fourth and fifth
arguments are width and height of sketching area. Sixth argument is graphic RAM address. The last
argument is format of storage data.
Ft_App_WrCoCmd_Buffer(phost,SCISSOR_SIZE(512,512)) and
Ft_App_WrCoCmd_Buffer(phost,SCISSOR_XY(0,0))
specifies location and size of the scissor clip rectangle.
Drawing bitmaps begin after command Ft_App_WrCoCmd_Buffer(phost,BEGIN(BITMAPS)).
You can specify location of bitmap in memory using function
Ft_App_WrCoCmd_Buffer(phost,BITMAP_SOURCE((RAM_G+ending_address))). Bitmap
size is setting with usage of
Ft_App_WrCoCmd_Buffer(phost,BITMAP_SIZE(BILINEAR,BORDER,BORDER,(FT_DispWidt
h - 2*BorderSz2),(FT_DispHeight - BorderSz - BorderSz2))) command.
There is possibility to take a snapshot of the current screen thanks to CMD_SNAPSHOT command. This
command causes the co-processor engine to take a snapshot of the current screen, and write the result
into RAM_G as a ARGB4 bitmap. The size of the bitmap is the size of the screen, given by the REG_HSIZE
and REG_VSIZE registers. During the snapshot process, the display should be disabled by setting
REG_PCLK to 0 to avoid display glitch. Because co-processor engine needs to write the result into the
destination address, the destination address must be never used or referenced by graphics engine.