382
Platforms
©2000-2008 Tibbo Technology Inc.
startaddr
The starting address in the EEPROM memory (addresses are
counted from 1, if you set this parameter to 0 it will be
interpreted as 1).
len
Maximum number of bytes to read.
Details
The len parameter defines the maximum number of bytes to read from the
EEPROM. Actual amount of extracted data is also limited by the capacity of the
receiving variable and the starting address (in relation to the memory capacity of
the EEPROM). Memory capacity can be checked through the
read-only
property. Notice that when the stor.getdata executes, an offset equal to the value
of
is added to the startaddr. For example, if the stor.base returns 9
and you do stor.getdata(1,3) then you will actually be reading the data starting
from physical EEPROM location 9. If you set the stor.base to 1 you will be able to
access the EEPROM right from the physical address 1.
By default, the stor.base is set in such a way as to allow access to the EEPROM
starting from the address just above the special configuration area of your device
(for details on what this area actually stores see "Platform-dependent
Programming Information" topic inside your platform specifications section). By
setting the stor.base to 1 you are allowing access to the special configuration area.
With Tibbo Basic release
V2
, this method had to be renamed from .get
to .getdata. This is because the period (".") separating "stor" from
"getdata" is now a "true" part of the language, i.e. it is recognized as a
syntax unit, not just part of identifier. Hence, Tibbo Basic sees "stor"
and "get" as separate entities and "get" is a reserved word that can't
be used.
8.3.8.3
.Setdata Method (previously .Set)
Function:
Writes data into the EEPROM.
Syntax:
stor.setdata(byref datatoset as string, startaddr as
word) as byte
Returns:
Actual number of bytes written into the EEPROM.
See Also:
,
,
Part
Description
datatoset
Data to write into the EEPROM.
startaddr
Starting address in the EEPROM from which the data will be
stored (addresses are counted from 1, if you set this
parameter to 0 it will be interpreted as 1).
Details
The operation has completed successfully if the value returned by this method
383
381
380
381
383