SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 118
2.9.18 Get Free and Total Space –46hex – ‘F’ ascii
Commands (host)
2 bytes
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x46 (hex), F (ascii). (Free and Total Space)
Responses (device)
10 bytes
Free Space:
1.- Size in Kb high byte.
2.- Size in Kb medium high byte.
3.- Size in Kb medium low byte.
4.- Size in Kb low byte.
Total Space:
5.- Size in Kb high byte.
6.- Size in Kb medium high byte.
7.- Size in Kb medium low byte.
8.- Size in Kb low byte.
ACKs:
9.- 0xXX (hex) - Refer to “File ACK List”.
10.- 0x4F (hex), O (ascii) – success ACK.
0x46 (hex), F (ascii) – fail NAK.
*Note that the Size parameters are Unsigned Long
data types (4 bytes).
Description
This command simply asks for the available FREE
Space and the TOTAL Space of the microSD card
Flash Memory, the sizes are returned in Kbytes
units.
To get the USED Space, the following formula can
be applied:
USED Space = TOTAL Space – FREE Space
Example (sent and received
commands)
Example 1:
<46,46> 00,3A,EE,40,00,3A,F0,00,00,4F Get FREE
and TOTAL space of the microSD card flash
memory, obtained sizes are: FREE Space:
3862080Kb(dec) and TOTAL Space:
3862528Kb(dec).
All data is in hex.