e z L C D -‐ 4 0 5
|
100
Rev.
© 2016 Earth Computers Tech. Inc.
1.7.35 SD_FILE_GET_SIZE
Description:
Gets the size (in bytes) of the opened SD Flash file.
Supported file systems
: FAT12, FAT16, FAT32
Code:
74
hex,
116
dec
7
6
5
4
3
2
1
0
Byte 0: Command
Byte 1: File ID
Notes:
SD card has to be formatted in the supported file system.
This command works only if the file is already opened by the
SD_FILE_OPEN
command
See Also:
SD_FILE_OPEN
,
SD_FILE_CLOSE
,
SD_FILE_CLOSE_ALL
About the File ID:
File ID is returned in the response to the
SD_FILE_OPEN
command. It identifies the file after it
has been opened. Since maximum 2 files may be concurrently opened, the File ID should be: 1
or 2.
Values higher than 2 are interpreted as 2 and 0 is interpreted as 1.
ezLCD Response
After receiving the SD_FILE_GET_SIZE command, the ezLCD responds with either of the
following sequences:
In case of the
success
:
7
6
5
4
3
2
1
0
0
0
1
1
1
1
1
1
Byte 0:
3F
hex,
63
dec
Byte 1: File ID (Success), 0 (Error)
SD_FILE_GET_SIZE
FILE ID
File Size 0
File Size 2
File Size 1
File Size 3
32
-‐bi
t F
ile
S
iz
e
Содержание ezLCD-405
Страница 1: ......
Страница 22: ...e z L C D 4 0 5 22 Rev 2016 Earth Computers Tech Inc Figure 2 ezLCD 405 Schematic...
Страница 23: ...e z L C D 4 0 5 23 Rev 2016 Earth Computers Tech Inc 1 3 2 Pin Configuration Figure 3 ezLCD 405 Connectors...
Страница 32: ...e z L C D 4 0 5 32 Rev 2016 Earth Computers Tech Inc...
Страница 52: ...e z L C D 4 0 5 52 Rev 2016 Earth Computers Tech Inc SET_COLOR SET_XY...
Страница 102: ...e z L C D 4 0 5 102 Rev 2016 Earth Computers Tech Inc...
Страница 109: ...e z L C D 4 0 5 109 Rev 2016 Earth Computers Tech Inc...
Страница 118: ...e z L C D 4 0 5 118 Rev 2016 Earth Computers Tech Inc...
Страница 158: ...e z L C D 4 0 5 158 Rev 2016 Earth Computers Tech Inc 10 10 dec y LSB V_LINE 41 hex 110 110 dec...