472
Platforms
©2000-2008 Tibbo Technology Inc.
Details
This method returns its execution status indirectly, through the fd.laststatus R/O
property. All possible status codes generated by this method are "generic" and are
not described here.
.Getsector Method
Function:
Reads a specified sector into the currently selected RAM
buffer of the flash memory (selection is made through
the
property).
Syntax:
fd.getsector(num as word) as pl_fd_status_codes
Returns:
One of the following
, also affects
:
0- PL_FD_STATUS_OK: Completed successfully.
1- PL_FD_STATUS_FAIL : Physical flash memory failure
(fatal).
See Also:
,
,
,
Par
t
Description
nu
m
Sector to read from.
Details
Each physical sector of the flash memory has 264 bytes of data, and all 264 bytes
will be loaded into the RAM buffer.
Note that reading the sector into the RAM buffer #1 may interfere with file-based
access to the flash memory. If you have executed
, the RAM buffer #1
may still contain this new data, in which case using the fd.getsector while the fd.
buffernum= 1 will automatically dismount the disk (set
= 0- NO). To
avoid this situation, switch to the RAM buffer #0, or use
methods before invoking the fd.getsector.
All status codes generated by this method are "generic" and are not described
here.
.Laststatus R/O Property
Function:
Returns the execution result for the most recent disk-
related method execution.
Type:
Enum (pl_fd_status_code, byte)
458
472
472
448
483
468
479
459
480
476
466
460