
12.2 Compiler options
Compressing the pawn program code
// The parameter is used to specify which of the sections should be
// compressed
// 0: no compression (default)
// 1: DATA
// 2: DATA and CODE
// 3: DATA, CODE and TABLES
#pragma amxcompress <0-3>
12.3 rapidM2M Device API
12.3.1 Constants
Return codes for general purposes
OK
= 0,
ERROR
= -1,
ERROR_PARAM
= -2,
// Parameter error
ERROR_UNKNOWN_HDL
= -3,
// Unknown handler, handle or resource error
ERROR_ALREADY_SUBSCRIBED = -4,
// Already subscribed service or resource error
ERROR_NOT_SUBSCRIBED
= -5,
// Not subscribed service error
ERROR_FATAL
= -6,
// Fatal error
ERROR_BAD_HDL
= -7,
// Bad handle or resource error
ERROR_BAD_STATE
= -8,
// Bad state error
ERROR_PIN_KO
= -9,
// Bad PIN state error
ERROR_NO_MORE_HANDLES
= -10, /* The service subscription maximum capacity is
reached */
ERROR_DONE
= -11, /* The required iterative process is now
terminated */
ERROR_OVERFLOW
= -12, /* The required operation has exceeded the
function capabilities */
ERROR_NOT_SUPPORTED
= -13, /* An option, required by the function, is not
enabled on the CPU, the function is not
supported in this configuration */
ERROR_NO_MORE_TIMERS
= -14, /* The function requires a timer subscription,
but no more timer resources are available */
ERROR_NO_MORE_SEMAPHORES = -15, /* The function requires a semaphore allocation,
but there are no more semaphore resources */
ERROR_SERVICE_LOCKED
= -16, /* The function was called from a low or high
level interrupt handler (the function is
forbidden in this case) */
ERROR_MEM
= -100,// error allocating memory
ERROR_SIM_STATE
= -101,// SIM state error
ERROR_MODEM_DISABLED
= -102,// Modem disabled
ERROR_FEATURE_LOCKED
= -103,// feature locked
ERROR_TXITF
= -104,/* tx interface (uplink) not available
(e.g. not opened, currenly closing) */
84
Rev. 01