\i S R byte::handle word::count
Parameter | Type | Range | Description |
---|---|---|---|
handle | byte | 0 ... 3 | unique identifier for opened file |
count | word | 0 ... 65535 | bytes to read |
Reads count bytes from a previously opened file with ID handle from the current position of the file pointer (see Set Position in File).
Note
Response: | [ACK] data [ACK] |
Example
\iSO\2R/DIR1/FILE.EXT\0
\iSS\2\L25
\iSR\2\D4
Opens the file "FILE.EXT" in folder "DIR1" with handle 2 in read-only mode, sets the file pointer to position 25 and reads 4 bytes.
Response Example
[ACK][00][01][02][03][ACK]
The four bytes requested contain ascending values, the file pointer is moved after the last byte read (in this case position 29).
Not supported by: DPC3050, DPC3020, DPC2060, DPC10xx
See also:
MicroSD Card Related Commands
Read String from File
Tell Position in File
Set Position in File
Get File Status
Write File
Copyright © demmel products gmbh. All rights reserved.