122-32000 Parallax Inc, 122-32000 Datasheet - Page 286

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
PRI
Declare a Private Method Block.
((PUB ┆ PRI))
Explanation
PRI
that performs a specific function then returns a result value. This is one of six special
declarations (
language.
Every object can contain a number of private (
methods can only be accessed from inside of the object and serve to perform vital, protected
functions, for the object. Private methods are like Public methods in every way except that
they are declared with
Please see
Page 286 · Propeller Manual v1.0
PRI
is the Private Method Block declaration. A Private Method is a section of source code
SourceCodeStatements
– Spin Language Reference
Name
Name
Param
delimited parameters, enclosed in parentheses. Param must be globally unique, but
other methods may also use the same symbol name. Each parameter is essentially a
long variable and can be treated as such.
RValue
to the method’s built-in
methods may also use the same symbol name. The RValue (and/or
is initialized to zero (0) upon each call to the method.
LocalVar
but other methods may also use the same symbol name. All local variables are of
size long (four bytes) and are left uninitialized upon each call to the method.
Methods can contain zero or more comma-delimited local variables.
Count
array variable, with Count number of elements; each being a long in size. When later
referencing these elements, they begin with element 0 and end with element Count-1.
SourceCodeStatements
least one space, that perform the function of the method.
PUB
is the desired name for the private method.
CON
, Page 287, for more information.
(Param
is an optional expression, enclosed in brackets, that indicates this is a local
is a parameter name (optional). Methods can contain zero or more comma-
is a name for the return value of the method (optional). This becomes an alias
is a name for a local variable (optional). LocalVar must be globally unique,
,
VAR
,
, Param〉…)
OBJ
PRI
,
, instead of
PUB
is one or more lines of executable source code, indented by at
,
RESULT
〉 〈
PRI
:RValue
, and
PUB
variable. RValue must be globally unique, but other
〉 〈
, and are not accessible from outside the object.
DAT
| LocalVar
) that provide inherent structure to the Spin
PRI
) and public (
[Count]
〉〉 〈
,LocalVar
PUB
) methods. Private
RESULT
[Count]
variable)
〉〉

Related parts for 122-32000