SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 102
9.4 Get File Pointer - 0x46, 0x50hex - ‘F, ‘P’ ascii
Commands (host)
byte(s)
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x50 (hex), P (ascii). *File Pointer.
3.- Workspace 0x00 to 0x0D (hex) 0-13 (ascii).
4.- 0x47 (hex), G (ascii) Get Pointer.
Responses (device)
byte(s)
1.- Pointer Position - High Byte.
2.- Pointer Position - Medium High Byte.
3.- Pointer Position - Medium Low Byte.
4.- Pointer Position - Low Byte.
5.- 0xXX - FAT ACK/NAK List Byte Reply.
6.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
When the Get Pointer command is called, it
retrieves the current file pointer position in
bytes of the file allocated in the received
workspace#.
The current file pointer position parameter is
always computed from the file origin.
A file must be already opened/allocated in
the selected workspace for this command to
work.
*Note that the “Read File” or “Write File”
commands calls automatically advance the
current file pointer position depending on
the successfully read or written bytes.