
native rM2M_GetId(id[TrM2M_Id], len=sizeof id);
Provides the information to identify the module/device
Parameter
Explanation
id
Structure for storing the information to identify the module/device (see "TrM2M_
Id" in chapter "Arrays with symbolic indices" on page 137)
len
Size (in cells) of the structure to store the information - OPTIONAL
Explanation
Return value
l
Size (in cells) of the structure used to store the information
l
ERROR if the address and/or length of the ID structure are invalid (outside
the script data memory)
l
< OK, if another error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 84).
Note:
The firmware of a module/device detects if a script is being used for which
the function only has one transfer parameter (older include file is being used) and
for compatibility reasons therefore returns "OK" instead of the size of the
structure for storing the information.
native heapspace();
Supplies the free memory capacity to the heap
Explanation
Return value
The free memory capacity to the heap. The stack and the heap have a joint
memory area, so that this value specifies the number of bytes that remain for the
stack or the heap.
native funcidx(const name[]);
Supplies the index of a public function
Parameter
Explanation
name
Name of the public function
Explanation
Return value
l
-1, if there is no function with the transferred name
l
Index of the public function
native numargs();
Returns the number of arguments transferred to a function
Explanation
Return value
The number of arguments that have been transferred to a function. numargs is
useful within functions with a variable list of arguments.
142
Rev. 01