FT800 Series Programmer Guide
Version 2.1
Document Reference No.: BRT_000030 Clearance No.: BRT#037
163
Product Page
Document Feedback Copyright © Bridgetek Limited
5.19 CMD_INFLATE - decompress data into memory
Decompress the following compressed data into the FT800 memory, RAM_G. The data
should have been compressed with the DEFLATE algorithm, e.g. with the ZLIB library.
This is particularly useful for loading graphics data.
C prototype
void cmd_inflate( uint32_t ptr );
Parameters
ptr
Destination address. The data byte should immediate follow in the command
buffer.
Description
If the number of bytes is not a multiple of 4, then 1, 2 or 3 bytes should be
appended to ensure 4-byte alignment of the next command. These padding
bytes can have any value
Command layout
Examples
To load graphics data to main memory address 0x8000:
cmd_inflate(0x8000);
... // zlib-compressed data follows