SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 110
2.9.13 Truncate File 56hex ‘V’ ascii
Commands (host)
3 bytes
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x56 (hex), V (ascii). (Truncate File)
3.- Workspace Block# 0x00(hex) 0x03(hex)
Responses (device)
1 byte File ACK + 1 byte Command ACK
1.- 0xXX (hex) - Refer to “File ACK List”.
2.- 0x4F (hex), O (ascii) success ACK.
0x46 (hex), F (ascii) fail NAK.
Description
The Truncate File command cuts data
contents from the received Workspace block#
file object up from the current pointer
position, it means that up from the current
pointer position, all data in the file will be
truncated and file size will be reduced.
If no File is allocated in the Workspace
block# received parameter during a “Truncate
File” command, this command will fail with
INVALID OBJECT, as an attempt to Truncate
data from an empty Workspace block was
done.
Example (sent commands)
Example 1:
<46,56,01> Truncate file data contents of the
file contained under the Workspace block
0x01, data up from the current file pointer
position will be cut, file size will be reduced
after this command.
All data is in hex.