Macros | Typedefs
ble_error.h File Reference

File that contains error codes. More...

`#include <stdint.h>`

Go to the source code of this file.

## Macros
#define | SDK_SUCCESS 0x0000
#define | SDK_ERR_INVALID_PARAM 0x0001
#define | SDK_ERR_POINTER_NULL 0x0002
#define | SDK_ERR_INVALID_CONN_IDX 0x0003
#define | SDK_ERR_INVALID_HANDLE 0x0004
#define | SDK_ERR_PROFILE_COUNT 0x0005
#define | SDK_ERR_BUSY 0x0006
#define | SDK_ERR_TIMER_INSUFFICIENT 0x0007
#define | SDK_ERR_NVDS_NOT_INIT 0x0008
#define | SDK_ERR_LIST_ITEM_NOT_FOUND 0x0009
#define | SDK_ERR_LIST_ITEM_ALREADY_EXISTED 0x000a
#define | SDK_ERR_LIST_FULL 0x000b
#define | SDK_ERR_SDK_INTERNAL 0x000c
#define | SDK_ERR_INVALID_BUFF_LENGTH 0x000d
#define | SDK_ERR_INVALID_DATA_LENGTH 0x000e
#define | SDK_ERR_DISALLOWED 0x000f
#define | SDK_ERR_NO_RESOURCES 0x0010
#define | SDK_ERR_REQ_NOT_SUPPORTED 0x0011
#define | SDK_ERR_INVALID_OFFSET 0x0012
#define | SDK_ERR_INVALID_ATT_VAL_LEN 0x0013
#define | SDK_ERR_INVALID_PERM 0x0014
#define | SDK_ERR_INVALID_ADV_IDX 0x0015
#define | SDK_ERR_INVALID_ADV_DATA_TYPE 0x0016
#define | SDK_ERR_INVALID_PSM_NUM 0x0017
#define | SDK_ERR_INVALID_PSM_ALREADY_REGISTERED 0x0018
#define | SDK_ERR_INVALID_PSM_EXCEEDED_MAX_PSM_NUM 0x0019
#define | SDK_ERR_NTF_DISABLED 0x001A
#define | SDK_ERR_IND_DISABLED 0x001B
#define | SDK_ERR_DISCONNECTED 0x001C
#define | SDK_ERR_INVALID_ADDRESS 0x001D
#define | SDK_ERR_INVALID_ADV_INTERVAL 0x001F
#define | SDK_ERR_INVALID_DISVCOVERY_MODE 0x0020
#define | SDK_ERR_INVALID_ADV_PARAM 0x0021
#define | SDK_ERR_INVALID_ADV_PEER_ADDR 0x0022
#define | SDK_ERR_ADV_DATA_NOT_SET 0x0023
#define | SDK_ERR_PER_ADV_DATA_NOT_SET 0x0024
#define | SDK_ERR_EXT_SCAN_RSP_DATA_NOT_SET 0x0025
#define | SDK_ERR_INVALID_DURATION_PARAM 0x0026
#define | SDK_ERR_INVALID_PER_SYNC_IDX 0x0027
#define | SDK_ERR_INVALID_CID 0x0028
#define | SDK_ERR_INVALID_CHL_NUM 0x0029
#define | SDK_ERR_NOT_ENOUGH_CREDITS 0x002A
#define | SDK_ERR_APP_ERROR 0x0080
#define | BLE_SUCCESS 0x00
#define | BLE_ATT_ERR_INVALID_HANDLE 0x01
| ATT Specific Error. More...
#define | BLE_ATT_ERR_READ_NOT_PERMITTED 0x02
#define | BLE_ATT_ERR_WRITE_NOT_PERMITTED 0x03
#define | BLE_ATT_ERR_INVALID_PDU 0x04
#define | BLE_ATT_ERR_INSUFF_AUTHEN 0x05
#define | BLE_ATT_ERR_REQUEST_NOT_SUPPORTED 0x06
#define | BLE_ATT_ERR_INVALID_OFFSET 0x07
#define | BLE_ATT_ERR_INSUFF_AUTHOR 0x08
#define | BLE_ATT_ERR_PREPARE_QUEUE_FULL 0x09
#define | BLE_ATT_ERR_ATTRIBUTE_NOT_FOUND 0x0A
#define | BLE_ATT_ERR_ATTRIBUTE_NOT_LONG 0x0B
#define | BLE_ATT_ERR_INSUFF_ENC_KEY_SIZE 0x0C
#define | BLE_ATT_ERR_INVALID_ATTRIBUTE_VAL_LEN 0x0D
#define | BLE_ATT_ERR_UNLIKELY_ERR 0x0E
#define | BLE_ATT_ERR_INSUFF_ENC 0x0F
#define | BLE_ATT_ERR_UNSUPP_GRP_TYPE 0x10
#define | BLE_ATT_ERR_INSUFF_RESOURCE 0x11
#define | BLE_L2C_ERR_CONNECTION_LOST 0x30
| L2CAP Specific Error. More...
#define | BLE_L2C_ERR_INVALID_MTU_EXCEED 0x31
#define | BLE_L2C_ERR_INVALID_MPS_EXCEED 0x32
#define | BLE_L2C_ERR_INVALID_CID 0x33
#define | BLE_L2C_ERR_INVALID_PDU 0x34
#define | BLE_L2C_ERR_NO_RES_AVAIL 0x35
#define | BLE_L2C_ERR_INSUFF_AUTHEN 0x36
#define | BLE_L2C_ERR_INSUFF_AUTHOR 0x37
#define | BLE_L2C_ERR_INSUFF_ENC_KEY_SIZE 0x38
#define | BLE_L2C_ERR_INSUFF_ENC 0x39
#define | BLE_L2C_ERR_LEPSM_NOT_SUPP 0x3A
#define | BLE_L2C_ERR_INSUFF_CREDIT 0x3B
#define | BLE_L2C_ERR_NOT_UNDERSTOOD 0x3C
#define | BLE_L2C_ERR_CREDIT_ERROR 0x3D
#define | BLE_L2C_ERR_CID_ALREADY_ALLOC 0x3E
#define | BLE_GAP_ERR_INVALID_PARAM 0x40
| GAP Specific Error. More...
#define | BLE_GAP_ERR_PROTOCOL_PROBLEM 0x41
#define | BLE_GAP_ERR_NOT_SUPPORTED 0x42
#define | BLE_GAP_ERR_COMMAND_DISALLOWED 0x43
#define | BLE_GAP_ERR_CANCELED 0x44
#define | BLE_GAP_ERR_TIMEOUT 0x45
#define | BLE_GAP_ERR_DISCONNECTED 0x46
#define | BLE_GAP_ERR_NOT_FOUND 0x47
#define | BLE_GAP_ERR_REJECTED 0x48
#define | BLE_GAP_ERR_PRIVACY_CFG_PB 0x49
#define | BLE_GAP_ERR_ADV_DATA_INVALID 0x4A
#define | BLE_GAP_ERR_INSUFF_RESOURCES 0x4B
#define | BLE_GAP_ERR_UNEXPECTED 0x4C
#define | BLE_GAP_ERR_MISMATCH 0x4D
#define | BLE_GATT_ERR_INVALID_ATT_LEN 0x50
| GATT Specific Error. More...
#define | BLE_GATT_ERR_INVALID_TYPE_IN_SVC_SEARCH 0x51
#define | BLE_GATT_ERR_WRITE 0x52
#define | BLE_GATT_ERR_SIGNED_WRITE 0x53
#define | BLE_GATT_ERR_ATTRIBUTE_CLIENT_MISSING 0x54
#define | BLE_GATT_ERR_ATTRIBUTE_SERVER_MISSING 0x55
#define | BLE_GATT_ERR_INVALID_PERM 0x56
#define | BLE_GATT_ERR_BROWSE_NO_ANY_MORE 0x57
#define | BLE_LL_ERR_UNKNOWN_HCI_COMMAND 0x91
| LL Specific Error. More...
#define | BLE_LL_ERR_UNKNOWN_CONNECTION_ID 0x92
#define | BLE_LL_ERR_HARDWARE_FAILURE 0x93
#define | BLE_LL_ERR_PAGE_TIMEOUT 0x94
#define | BLE_LL_ERR_AUTH_FAILURE 0x95
#define | BLE_LL_ERR_PIN_MISSING 0x96
#define | BLE_LL_ERR_MEMORY_CAPA_EXCEED 0x97
#define | BLE_LL_ERR_CON_TIMEOUT 0x98
#define | BLE_LL_ERR_CON_LIMIT_EXCEED 0x99
#define | BLE_LL_ERR_SYNC_CON_LIMIT_DEV_EXCEED 0x9A
#define | BLE_LL_ERR_ACL_CON_EXISTS 0x9B
#define | BLE_LL_ERR_COMMAND_DISALLOWED 0x9C
#define | BLE_LL_ERR_CONN_REJ_LIMITED_RESOURCES 0x9D
#define | BLE_LL_ERR_CONN_REJ_SECURITY_REASONS 0x9E
#define | BLE_LL_ERR_CONN_REJ_UNACCEPTABLE_BDADDR 0x9F
#define | BLE_LL_ERR_CONN_ACCEPT_TIMEOUT_EXCEED 0xA0
#define | BLE_LL_ERR_UNSUPPORTED 0xA1
#define | BLE_LL_ERR_INVALID_HCI_PARAM 0xA2
#define | BLE_LL_ERR_REMOTE_USER_TERM_CON 0xA3
#define | BLE_LL_ERR_REMOTE_DEV_TERM_LOW_RESOURCES 0xA4
#define | BLE_LL_ERR_REMOTE_DEV_POWER_OFF 0xA5
#define | BLE_LL_ERR_CON_TERM_BY_LOCAL_HOST 0xA6
#define | BLE_LL_ERR_REPEATED_ATTEMPTS 0xA7
#define | BLE_LL_ERR_PAIRING_NOT_ALLOWED 0xA8
#define | BLE_LL_ERR_UNKNOWN_LMP_PDU 0xA9
#define | BLE_LL_ERR_UNSUPPORTED_REMOTE_FEATURE 0xAA
#define | BLE_LL_ERR_SCO_OFFSET_REJECTED 0xAB
#define | BLE_LL_ERR_SCO_INTERVAL_REJECTED 0xAC
#define | BLE_LL_ERR_SCO_AIR_MODE_REJECTED 0xAD
#define | BLE_LL_ERR_INVALID_LMP_PARAM 0xAE
#define | BLE_LL_ERR_UNSPECIFIED_ERROR 0xAF
#define | BLE_LL_ERR_UNSUPPORTED_LMP_PARAM_VALUE 0xB0
#define | BLE_LL_ERR_ROLE_CHANGE_NOT_ALLOWED 0xB1
#define | BLE_LL_ERR_LMP_RSP_TIMEOUT 0xB2
#define | BLE_LL_ERR_LMP_COLLISION 0xB3
#define | BLE_LL_ERR_LMP_PDU_NOT_ALLOWED 0xB4
#define | BLE_LL_ERR_ENC_MODE_NOT_ACCEPT 0xB5
#define | BLE_LL_ERR_LINK_KEY_CANT_CHANGE 0xB6
#define | BLE_LL_ERR_QOS_NOT_SUPPORTED 0xB7
#define | BLE_LL_ERR_INSTANT_PASSED 0xB8
#define | BLE_LL_ERR_PAIRING_WITH_UNIT_KEY_NOT_SUP 0xB9
#define | BLE_LL_ERR_DIFF_TRANSACTION_COLLISION 0xBA
#define | BLE_LL_ERR_QOS_UNACCEPTABLE_PARAM 0xBC
#define | BLE_LL_ERR_QOS_REJECTED 0xBD
#define | BLE_LL_ERR_CHANNEL_CLASS_NOT_SUP 0xBE
#define | BLE_LL_ERR_INSUFFICIENT_SECURITY 0xBF
#define | BLE_LL_ERR_PARAM_OUT_OF_MAND_RANGE 0xC0
#define | BLE_LL_ERR_ROLE_SWITCH_PEND 0xC2
#define | BLE_LL_ERR_RESERVED_SLOT_VIOLATION 0xC4
#define | BLE_LL_ERR_ROLE_SWITCH_FAIL 0xC5
#define | BLE_LL_ERR_EIR_TOO_LARGE 0xC6
#define | BLE_LL_ERR_SP_NOT_SUPPORTED_HOST 0xC7
#define | BLE_LL_ERR_HOST_BUSY_PAIRING 0xC8
#define | BLE_LL_ERR_CONTROLLER_BUSY 0xCA
#define | BLE_LL_ERR_UNACCEPTABLE_CONN_INT 0xCB
#define | BLE_LL_ERR_ADV_TO 0xCC
#define | BLE_LL_ERR_TERMINATED_MIC_FAILURE 0xCD
#define | BLE_LL_ERR_CONN_FAILED_TO_BE_EST 0xCE

## Typedefs
typedef uint8_t | ble_err_t
| Callback function error parameter type.
typedef uint16_t | sdk_err_t
| SDK API result type.

## Detailed Description

File that contains error codes.

Attention

  ##### Copyright (c) 2019 GOODIX

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.