13.2.7.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 155) that has been changed
13.2.7.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 36.
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 155)
156
Rev. 05
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: ......