
12.3.8.2 Callback functions
public func(reg);
Function to be provided by the script developer, that is called up if the registration has changed
Parameter
Explanation
reg
Index of the registration memory block (see "Indices of the registration memory
blocks" in chapter "Constants" on page 117) that has been changed
12.3.8.3 Functions
native rM2M_RegInit(reg, flags, data{}, len=sizeof data);
initialises one of the optional registration memory blocks stored in the RAM. Calling up the function is
only necessary for the registration memory blocks listed in the explanation of the "reg" parameter.
Detailed information on the registration memory blocks is provided in chapter "Registration memory
blocks" on page 32.
Parameter
Explanation
reg
Registration memory block index
The following registration memory blocks require an initialisation:
l
RM2M_REG_APP_STATE: Application-specific, volatile data (e.g.
current device status)
flags
Configuration flags to be set/deleted
Bit0: Type of storage
0 = invalid, currently not supported
RM2M_REG_VOLATILE = saved in RAM in volatile manner
data
Array to store the registration memory block
len
Size (in cells) of the transferred array to store the registration memory block (max.
1kB ) - OPTIONAL
Explanation
Return value
l
OK, if successful
l
ERROR, if an unspecified errors occurs
l
< OK, if another error occurs (see "Error codes for the registration memory
block access operations" in chapter "Constants" on page 117)
118
Rev. 01