SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 108
2.9.11 Test Error-EOF File 51hex ‘Q’ ascii
Commands (host)
4 bytes
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x51 (hex), Q (ascii). (Test File)
3.- Workspace Block# 0x00(hex) 0x03(hex)
4.- Test Type: 0x52, R (ascii) Error test or
0x45, E (ascii) End Of File test.
Responses (device)
1 byte + 1 byte File ACK + 1 byte
Command ACK
1.- Test result 0x00 (hex) or 0x01 (hex).
2.- 0xXX (hex) - Refer to “File ACK List”.
3.- 0x4F (hex), O (ascii) success ACK.
0x46 (hex), F (ascii) fail NAK.
Description
The Test Error - EOF File command checks
for any error in a file within the given
Workspace block#, in the other side, it checks
for an End of File in the Workspace block#
received parameter.
The Error Test helps user to know about
any write error operation.
The End of File Test helps the user to know
if the Workspace block file object pointer is at
the end of the file when writing or reading from
a file.
If no File is allocated in the Workspace
block# received parameter during a “Test
Error-EOF File” command, this command will
fail with INVALID OBJECT, as an attempt to
test an empty Workspace block was done.
Example (sent commands)
Example 1:
<46,51,01,52> Test for an Error on the
Workspace block 0x01 file object.
Example 2:
<46,51,01,45> Test for an End of File on the
Workspace block 0x01 file object.
All data is in hex.