474
Platforms
©2000-2008 Tibbo Technology Inc.
The value of this property depends on the hardware (selected
) and has
nothing to do with the formatting of your flash disk. Maximum value of the
property is fd.maxopenedfiles-1.
.Maxstoredfiles R/O Property
Function:
Returns the total number of files that can be
simultaneously stored on the currently existing flash disk.
Type:
Byte
Value Range:
Value depends on the current disk formatting.
See Also:
Details
This number cannot be changed unless the disk is reformatted using the
method.
) for this property to return a
meaningful value.
.Mount Method
Function:
Mounts the flash disk already existing in the flash
memory (prepares it for use).
Syntax:
fd.format() 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).
2- PL_FD_STATUS_CHECKSUM_ERR: Checksum error has
been detected in one of the disk sectors (fatal).
3- PL_FD_STATUS_FORMAT_ERR: Disk formatting error
has been detected (fatal).
See Also:
Details
The flash disk will not be accessible unless it is mounted using this method. The
disk can only be mounted after the flash memory has been successfully formatted
using the
method. The disk has to be mounted after every reboot of
your device. After the disk is mounted successfully, the
R/O property
will read 1- YES.
There is no way to explicitly dismount the disk, nor it is necessary. The disk will be
dismounted automatically if any fatal condition is detected when working with the
disk. This condition will be reflected by the fd.laststatus R/O property, while the
fd.ready will become 0- NO. Note, that not every error indicated by the
fd.laststatus is fatal.
133
463
441
467
474
472
472
439
467
476