EasyManua.ls Logo

Bridgetek FT801 - CMD_INFLATE - Decompress Data into Memory

Default Icon
263 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
+0
CMD_INFLATE(0xffffff22)
+4
ptr
+8
Byte0
+9
Byte1
..
..
+n
..
Examples
To load graphics data to main memory address 0x8000:
cmd_inflate(0x8000);
... // zlib-compressed data follows

Table of Contents