SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 109
2.9.12 Close File –43hex – ‘C’ ascii
Commands (host)
3 bytes
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x43 (hex), C (ascii). (Close 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 Close File command closes a
Workspace block# file object. If any data has
been written to the file, the cached information
of the file is written back to the disk. After the
command succeeded, the Workspace block
file object is no longer valid and it can be
discarded. If the modified file is not closed, the
file data can be collapsed.
Be sure to always close a Workspace block
file object before opening a new one in the
same Workspace block to avoid losing data.
If no File is allocated in the Workspace
block# received parameter during a “Close
File” command, this command will fail with
INVALID OBJECT, as an attempt to Close an
empty Workspace block was done.
Example (sent commands)
Example 1:
<46,43,02> Save and Close the file contained
under the Workspace block 0x02 file object.
All data is in hex.