SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 105
2.9.9 Set/Get Pointer 50hex ‘P’ ascii
*This command is divided in 2 sub-commands, each one is explained next:
Commands (host)
X bytes
Set File Pointer position:
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x50 (hex), P (ascii). (File Pointer)
3.- Workspace Block# 0x00(hex) 0x03(hex)
4.- 0x53 (hex), S (ascii). (Set)
5.- Position high byte.
6.- Position medium high byte.
7.- Position medium low byte.
8.- Position low byte.
Get File Pointer position:
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x50 (hex), P (ascii). (File Pointer)
3.- Workspace Block 0x00(hex) 0x03(hex).
4.- 0x47 (hex), G (ascii). (Get)
*Note that the Position parameter Set or Get is
an Unsigned Long data type (4 bytes).
Responses (device)
X bytes
Set File Pointer position:
1.- 0xXX (hex) - Refer to “File ACK List”.
2.- 0x4F (hex), O (ascii) success ACK.
0x46 (hex), F (ascii) fail NAK.
Get File Pointer position:
1.- Position high byte.
2.- Position medium high byte.
3.- Position medium low byte.
4.- Position low byte.
5.- 0xXX (hex) - Refer to “File ACK List”.
6.- 0x4F (hex), O (ascii) success ACK.
0x46 (hex), F (ascii) fail NAK.
Description
The Set/Get Pointer command moves the
file read/write pointer of a Workspace block file
object, or returns the current file pointer of the
Workspace block file object. It can also be
used to increase the file size when writing
data(cluster pre-allocation).
When the pointer is Set to a given number
parameter, it moves the file pointer
counting from file origin to the received
number, doesn’t care current position.