/**
 ****************************************************************************************
 *
 * @file co_error.h
 *
 * @brief List of codes for error in RWBLE Software.
 *
 * Copyright (C) RivieraWaves 2009-2012
 *
 * $Rev: $
 *
 ****************************************************************************************
 */
/**
 ****************************************************************************************
 *
 * @file co_error.h
 *
 * @brief NXP revised and cut.
 *
 * Copyright(C) 2015 NXP Semiconductors N.V.
 * All rights reserved.
 *
 * $Rev: 1.0 $
 *
 ****************************************************************************************
 */
#ifndef CO_ERROR_H_
#define CO_ERROR_H_

/**
 ****************************************************************************************
 * @addtogroup CO_ERROR Error Codes
 * @ingroup COMMON
 * @brief Defines error codes in BLE messages.
 *
 * @{
 ****************************************************************************************
 */

/*
 * DEFINES
 ****************************************************************************************
 */

/*****************************************************
 ***              BLE ERROR CODES                   ***
 *****************************************************/

#define CO_ERROR_NO_ERROR                        0x00
#define CO_ERROR_UNKNOWN_HCI_COMMAND             0x01
#define CO_ERROR_UNKNOWN_CONNECTION_ID           0x02
#define CO_ERROR_HARDWARE_FAILURE                0x03
#define CO_ERROR_PAGE_TIMEOUT                    0x04
#define CO_ERROR_AUTH_FAILURE                    0x05
#define CO_ERROR_PIN_MISSING                     0x06
#define CO_ERROR_MEMORY_CAPA_EXCEED              0x07
#define CO_ERROR_CON_TIMEOUT                     0x08
#define CO_ERROR_CON_LIMIT_EXCEED                0x09
#define CO_ERROR_COMMAND_DISALLOWED              0x0C
#define CO_ERROR_CONN_REJ_LIMITED_RESOURCES      0x0D
#define CO_ERROR_CONN_REJ_SECURITY_REASONS       0x0E
#define CO_ERROR_CONN_REJ_UNACCEPTABLE_BDADDR    0x0F
#define CO_ERROR_CONN_ACCEPT_TIMEOUT_EXCEED      0x10
#define CO_ERROR_UNSUPPORTED                     0x11
#define CO_ERROR_INVALID_HCI_PARAM               0x12
#define CO_ERROR_REMOTE_USER_TERM_CON            0x13
#define CO_ERROR_REMOTE_DEV_TERM_LOW_RESOURCES   0x14
#define CO_ERROR_REMOTE_DEV_POWER_OFF            0x15
#define CO_ERROR_CON_TERM_BY_LOCAL_HOST          0x16
#define CO_ERROR_REPEATED_ATTEMPTS               0x17
#define CO_ERROR_PAIRING_NOT_ALLOWED             0x18
#define CO_ERROR_UNSUPPORTED_REMOTE_FEATURE      0x1A
#define CO_ERROR_UNSPECIFIED_ERROR               0x1F
#define CO_ERROR_LMP_RSP_TIMEOUT                 0x22
#define CO_ERROR_ENC_MODE_NOT_ACCEPT             0x25
#define CO_ERROR_LINK_KEY_CANT_CHANGE            0x26
#define CO_ERROR_INSTANT_PASSED                  0x28
#define CO_ERROR_PAIRING_WITH_UNIT_KEY_NOT_SUP   0x29
#define CO_ERROR_DIFF_TRANSACTION_COLLISION      0x2A
#define CO_ERROR_CHANNEL_CLASS_NOT_SUP           0x2E
#define CO_ERROR_INSUFFICIENT_SECURITY           0x2F
#define CO_ERROR_PARAM_OUT_OF_MAND_RANGE         0x30
#define CO_ERROR_SP_NOT_SUPPORTED_HOST           0x37
#define CO_ERROR_HOST_BUSY_PAIRING               0x38
#define CO_ERROR_CONTROLLER_BUSY                 0x3A
#define CO_ERROR_UNACCEPTABLE_CONN_INT           0x3B
#define CO_ERROR_DIRECT_ADV_TO                   0x3C
#define CO_ERROR_TERMINATED_MIC_FAILURE          0x3D
#define CO_ERROR_CONN_FAILED_TO_BE_EST           0x3E

/// @} CO_ERROR

#endif // CO_ERROR_H_
