Error code definitions

C

#define MBA_RES_SUCCESS                         (0x0000U)
#define MBA_RES_FAIL                            (0x0001U)
#define MBA_RES_OOM                             (0x0002U)
#define MBA_RES_INVALID_PARA                    (0x0003U)
#define MBA_RES_NO_RESOURCE                     (0x0004U)
#define MBA_RES_BAD_STATE                       (0x0005U)
#define MBA_RES_PENDING_DUE_TO_SECURITY         (0x0006U)
#define MBA_RES_BUSY                            (0x0007U)
#define MBA_RES_UNKNOWN_CONN_ID                 (0x0102U)
#define MBA_RES_AUTHENTICATION_FAILURE          (0x0105U)
#define MBA_RES_PIN_OR_KEY_MISSING              (0x0106U)
#define MBA_RES_CONN_TIMEOUT                    (0x0108U)
#define MBA_RES_CONN_ALREADY_EXISTS             (0x010BU)
#define MBA_RES_COMMAND_DISALLOWED              (0x010CU)
#define MBA_RES_CONN_REJ_LIMITED_RESOURCES      (0x010DU)
#define MBA_RES_CONN_REJ_SECURITY_REASONS       (0x010EU)
#define MBA_RES_REMOTE_USER_TERM_CONN           (0x0113U)
#define MBA_RES_PAIRING_NOT_ALLOWED             (0x0118U)
#define MBA_RES_UNSUPPORT_REMOTE_FEATURE        (0x011AU)
#define MBA_RES_INSUFFICIENT_SECURITY           (0x012FU)
#define MBA_RES_ADVERTISING_TIMEOUT             (0x013CU)
#define MBA_RES_CONN_TERM_MIC_FAILURE           (0x013DU)
#define MBA_RES_UNKNOWN_ADV_ID                  (0x0142U)

Description

Defines result codes for BLE Stack API operations.

Macro Definition

MacroDescription
MBA_RES_SUCCESSExecution completed successfully.
MBA_RES_FAILExecution fail.
MBA_RES_OOMOut of memory error.
MBA_RES_INVALID_PARAInvalid parameter(s) provided.
MBA_RES_NO_RESOURCEInsufficient resources available.
MBA_RES_BAD_STATEOperation not allowed in the current state.
MBA_RES_PENDING_DUE_TO_SECURITYOperation pending due to security procedures.
MBA_RES_BUSYStack is busy; operation could not be executed.
MBA_RES_UNKNOWN_CONN_IDConnection identifier not recognized.
MBA_RES_AUTHENTICATION_FAILUREAuthentication process failed.
MBA_RES_PIN_OR_KEY_MISSINGRequired PIN or key is missing.
MBA_RES_CONN_TIMEOUTConnection attempt timed out.
MBA_RES_CONN_ALREADY_EXISTSAttempted to establish a connection that already exists.
MBA_RES_COMMAND_DISALLOWEDCommand is not allowed.
MBA_RES_CONN_REJ_LIMITED_RESOURCESConnection rejected due to limited resources.
MBA_RES_CONN_REJ_SECURITY_REASONSConnection rejected due to security reasons.
MBA_RES_REMOTE_USER_TERM_CONNConnection terminated by the remote user.
MBA_RES_PAIRING_NOT_ALLOWEDPairing attempt not allowed.
MBA_RES_UNSUPPORT_REMOTE_FEATURERemote feature not supported.
MBA_RES_INSUFFICIENT_SECURITYSecurity level is insufficient for the operation.
MBA_RES_ADVERTISING_TIMEOUTAdvertising process timed out.
MBA_RES_CONN_TERM_MIC_FAILUREConnection terminated due to MIC (Message Integrity Check) failure.
MBA_RES_UNKNOWN_ADV_IDAdvertising identifier not recognized.