e z L C D -‐ 4 0 5
|
112
Rev.
© 2016 Earth Computers Tech. Inc.
1.7.40 SD_FILE_SEEK
Description:
Moves the File Position Index of the opened SD Flash file by the specified
number of bytes, from the position specified by the 'Whence' parameter.
Supported file systems
: FAT12, FAT16, FAT32
Code:
7C
hex,
124
dec
7
6
5
4
3
2
1
0
Byte 0: Command
Byte 1: File ID
Byte 2: Offset 0 (LSB)
Byte 3: Offset 1
Byte 4: Offset 2
Byte 5: Offset 3 (MSB)
Byte 6: 0 = from File Beginning (SD_SEEK_SET)
1 = From Current File Position Index (SD_SEEK_CUR)
2 = From File End (SD_SEEK_END)
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, or
created and opened by the
SD_FILE_CREATE
command.
See Also:
SD_FILE_OPEN
,
SD_FILE_REWIND
,
SD_FILE_READ
,
SD_FILE_WRITE
,
SD_FILE_CLOSE
,
SD_FILE_CLOSE_ALL
About the Offset:
Offset is specified by the 32-‐bit signed integer. When the offset is negative, the File Position
Index is moved backwards.
About the File Position Index
The File Position Index specifies the Read/Write position offset (in bytes) from the beginning of
the file. Upon opening of the file, the File Position Index is set to 0. The File Position Index is
incremented by the subsequent read or write operations on the opened file.
SD_FILE_READ
FILE ID Offset 0
Offset 1
Offset 3
Offset 2
Whence
32
-‐bi
t S
ig
ne
d
O
ff
se
t
Summary of Contents for ezLCD-405
Page 1: ......
Page 22: ...e z L C D 4 0 5 22 Rev 2016 Earth Computers Tech Inc Figure 2 ezLCD 405 Schematic...
Page 32: ...e z L C D 4 0 5 32 Rev 2016 Earth Computers Tech Inc...
Page 52: ...e z L C D 4 0 5 52 Rev 2016 Earth Computers Tech Inc SET_COLOR SET_XY...
Page 102: ...e z L C D 4 0 5 102 Rev 2016 Earth Computers Tech Inc...
Page 109: ...e z L C D 4 0 5 109 Rev 2016 Earth Computers Tech Inc...
Page 118: ...e z L C D 4 0 5 118 Rev 2016 Earth Computers Tech Inc...