SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 106
When an offset above the file size is
specified in write mode, the file size is
increased to the offset(cluster pre-allocation);
data contained in the expanded area is
undefined. This is suitable to append data to a
file in a quick manner, for fast write operation.
Note that Each time a Read File” or
Write File” operation is performed; the file
pointer advances the read or written bytes.
To know if the pointer of a Workspace
block file object is at the end when reading
or writing, user can call the “Test EOF”
command.
If no File is allocated in the Workspace
block# received parameter during a Set
Pointer” command, this command will fail with
INVALID OBJECT, as an attempt to Set/Get
pointer from an empty Workspace block was
done.
Example (sent and received
commands)
Example 1:
<46,50,01,53,00,00,00,0A> 00,4F - Set
Workspace block 0x01 contained File pointer
to 10(dec) position (origin to number).
Example 2:
<46,50,02,53,00,04,E6,7C> 00,4F - Set
Workspace block 0x02 contained File pointer
to 321148(dec) position (origin to number).
Example 3:
<46,50,00,47> 00,00,00,0A,00,4F - Get
Workspace block 0x00 contained File pointer
position, obtained pointer position is 10(dec).
All data is in hex.