Chapter 13 Device Logic (Pawn)
13.2.7 Registry
13.2.7.1 Constants
Indices of the registration memory blocks
that can be accessed via the "rM2M_RegGetString()", "rM2M_RegGetValue()", "rM2M_
RegSetString()", "rM2M_RegSetValue()", "rM2M_RegDelValue()" and "rM2M_RegDelKey()"
functions. Detailed information on the registration memory blocks is provided in chapter "Registration
memory blocks" on page 36.
//System-specific data
RM2M_REG_SYS_OTP
= 0, // once during production (recommended)
RM2M_REG_SYS_FLASH = 1, // can be changed during operation (not via script)
//Application-specific data
RM2M_REG_APP_OTP
= 2, // once during production (recommended)
RM2M_REG_APP_FLASH = 3, // can be changed during operation (also via script)
//Application-specific, volatile data
RM2M_REG_APP_STATE = 4, // can be changed during operation (only via the script)
//Number of registration memory blocks
RM2M_REG_NUM_REGS
= 5,
Error codes for the registration memory block access operations
RM2M_REG_ERROR_TOKENMEM
= -101,
// Not enough tokens were provided
RM2M_REG_ERROR_INVAL
= -102,
// Invalid character inside JSON string
RM2M_REG_ERROR_PART
= -103,
/* The string is not a full JSON packet, more
bytes expected */
RM2M_REG_ERROR_NOMEM
= -200,
// memory allocation failed
RM2M_REG_ERROR_NUMTOKENS = -201,
/* not enough token available for this
object/array size */
RM2M_REG_ERROR_PAIR
= -202,
// found invalid pair (string : value)
RM2M_REG_ERROR_NOTOKENS
= -203,
// not enough tokens free for appending
RM2M_REG_ERROR_NOTFOUND
= -204,
// specified pair not found
RM2M_REG_ERROR_TYPE
= -205,
// token type mismatch
RM2M_REG_ERROR_PARAM
= -206,
// invalid parameters
RM2M_REG_ERROR_SIZE
= -207,
// size exceeds maximum allowed
RM2M_REG_ERROR_INVALID
= -208,
// JSON structure invalid
RM2M_REG_ERROR_ISNULL
= -209,
// value is null
Configuration flags for the rM2M_RegInit() function
RM2M_REG_VOLATILE
= 0b00000001, // volatile storage (RAM)
Rev. 05
155
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: ......