Chapter 13 Device Logic (Pawn)
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 178)
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 118).
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.
Rev. 05
183
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......