ver:init

Committer:
iv123
Date:
Sun Jun 18 16:11:03 2017 +0000
Revision:
0:4946262d6030
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
iv123 0:4946262d6030 1 /******************** (C) COPYRIGHT 2012 STMicroelectronics ********************
iv123 0:4946262d6030 2 * File Name : ble_status.h
iv123 0:4946262d6030 3 * Author : AMS - HEA&RF BU
iv123 0:4946262d6030 4 * Version : V1.0.0
iv123 0:4946262d6030 5 * Date : 19-July-2012
iv123 0:4946262d6030 6 * Description : Header file with BLE Stack status codes.
iv123 0:4946262d6030 7 ********************************************************************************
iv123 0:4946262d6030 8 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
iv123 0:4946262d6030 9 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
iv123 0:4946262d6030 10 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
iv123 0:4946262d6030 11 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
iv123 0:4946262d6030 12 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
iv123 0:4946262d6030 13 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
iv123 0:4946262d6030 14 *******************************************************************************/
iv123 0:4946262d6030 15 #ifndef __BLE_STATUS_H__
iv123 0:4946262d6030 16 #define __BLE_STATUS_H__
iv123 0:4946262d6030 17
iv123 0:4946262d6030 18 #include <ble_hal_types.h>
iv123 0:4946262d6030 19
iv123 0:4946262d6030 20
iv123 0:4946262d6030 21 /** @defgroup ble_status Bluetooth Status/Error Codes
iv123 0:4946262d6030 22 * @{
iv123 0:4946262d6030 23 */
iv123 0:4946262d6030 24
iv123 0:4946262d6030 25 typedef uint8_t tBleStatus;
iv123 0:4946262d6030 26
iv123 0:4946262d6030 27 /* Error Codes as specified by the specification
iv123 0:4946262d6030 28 * according to the spec the error codes range
iv123 0:4946262d6030 29 * from 0x00 to 0x3F
iv123 0:4946262d6030 30 */
iv123 0:4946262d6030 31 #define ERR_CMD_SUCCESS (0x00)
iv123 0:4946262d6030 32 #define BLE_STATUS_SUCCESS (0x00)
iv123 0:4946262d6030 33 #define ERR_UNKNOWN_HCI_COMMAND (0x01)
iv123 0:4946262d6030 34 #define ERR_UNKNOWN_CONN_IDENTIFIER (0x02)
iv123 0:4946262d6030 35
iv123 0:4946262d6030 36 #define ERR_AUTH_FAILURE (0x05)
iv123 0:4946262d6030 37 #define ERR_PIN_OR_KEY_MISSING (0x06)
iv123 0:4946262d6030 38 #define ERR_MEM_CAPACITY_EXCEEDED (0x07)
iv123 0:4946262d6030 39 #define ERR_CONNECTION_TIMEOUT (0x08)
iv123 0:4946262d6030 40
iv123 0:4946262d6030 41 #define ERR_COMMAND_DISALLOWED (0x0C)
iv123 0:4946262d6030 42
iv123 0:4946262d6030 43 #define ERR_UNSUPPORTED_FEATURE (0x11)
iv123 0:4946262d6030 44 #define ERR_INVALID_HCI_CMD_PARAMS (0x12)
iv123 0:4946262d6030 45 #define ERR_RMT_USR_TERM_CONN (0x13)
iv123 0:4946262d6030 46 #define ERR_RMT_DEV_TERM_CONN_LOW_RESRCES (0x14)
iv123 0:4946262d6030 47 #define ERR_RMT_DEV_TERM_CONN_POWER_OFF (0x15)
iv123 0:4946262d6030 48 #define ERR_LOCAL_HOST_TERM_CONN (0x16)
iv123 0:4946262d6030 49
iv123 0:4946262d6030 50 #define ERR_UNSUPP_RMT_FEATURE (0x1A)
iv123 0:4946262d6030 51
iv123 0:4946262d6030 52 #define ERR_INVALID_LMP_PARAM (0x1E)
iv123 0:4946262d6030 53 #define ERR_UNSPECIFIED_ERROR (0x1F)
iv123 0:4946262d6030 54
iv123 0:4946262d6030 55 #define ERR_LL_RESP_TIMEOUT (0x22)
iv123 0:4946262d6030 56 #define ERR_LMP_PDU_NOT_ALLOWED (0x24)
iv123 0:4946262d6030 57
iv123 0:4946262d6030 58 #define ERR_INSTANT_PASSED (0x28)
iv123 0:4946262d6030 59
iv123 0:4946262d6030 60 #define ERR_PAIR_UNIT_KEY_NOT_SUPP (0x29)
iv123 0:4946262d6030 61 #define ERR_CONTROLLER_BUSY (0x3A)
iv123 0:4946262d6030 62
iv123 0:4946262d6030 63 #define ERR_DIRECTED_ADV_TIMEOUT (0x3C)
iv123 0:4946262d6030 64
iv123 0:4946262d6030 65 #define ERR_CONN_END_WITH_MIC_FAILURE (0x3D)
iv123 0:4946262d6030 66
iv123 0:4946262d6030 67 #define ERR_CONN_FAILED_TO_ESTABLISH (0x3E)
iv123 0:4946262d6030 68
iv123 0:4946262d6030 69
iv123 0:4946262d6030 70 #define BLE_STATUS_FAILED (0x41)
iv123 0:4946262d6030 71 #define BLE_STATUS_INVALID_PARAMS (0x42)
iv123 0:4946262d6030 72 #define BLE_STATUS_BUSY (0x43)
iv123 0:4946262d6030 73 #define BLE_STATUS_INVALID_LEN_PDU (0x44)
iv123 0:4946262d6030 74 #define BLE_STATUS_PENDING (0x45)
iv123 0:4946262d6030 75 #define BLE_STATUS_NOT_ALLOWED (0x46)
iv123 0:4946262d6030 76 #define BLE_STATUS_ERROR (0x47)
iv123 0:4946262d6030 77 #define BLE_STATUS_ADDR_NOT_RESOLVED (0x48)
iv123 0:4946262d6030 78
iv123 0:4946262d6030 79 #define FLASH_READ_FAILED (0x49)
iv123 0:4946262d6030 80 #define FLASH_WRITE_FAILED (0x4A)
iv123 0:4946262d6030 81 #define FLASH_ERASE_FAILED (0x4B)
iv123 0:4946262d6030 82
iv123 0:4946262d6030 83 #define BLE_STATUS_INVALID_CID (0x50)
iv123 0:4946262d6030 84
iv123 0:4946262d6030 85 #define TIMER_NOT_VALID_LAYER (0x54)
iv123 0:4946262d6030 86 #define TIMER_INSUFFICIENT_RESOURCES (0x55)
iv123 0:4946262d6030 87
iv123 0:4946262d6030 88 #define BLE_STATUS_CSRK_NOT_FOUND (0x5A)
iv123 0:4946262d6030 89 #define BLE_STATUS_IRK_NOT_FOUND (0x5B)
iv123 0:4946262d6030 90 #define BLE_STATUS_DEV_NOT_FOUND_IN_DB (0x5C)
iv123 0:4946262d6030 91 #define BLE_STATUS_SEC_DB_FULL (0x5D)
iv123 0:4946262d6030 92 #define BLE_STATUS_DEV_NOT_BONDED (0x5E)
iv123 0:4946262d6030 93 #define BLE_STATUS_DEV_IN_BLACKLIST (0x5F)
iv123 0:4946262d6030 94
iv123 0:4946262d6030 95 #define BLE_STATUS_INVALID_HANDLE (0x60)
iv123 0:4946262d6030 96 #define BLE_STATUS_INVALID_PARAMETER (0x61)
iv123 0:4946262d6030 97 #define BLE_STATUS_OUT_OF_HANDLE (0x62)
iv123 0:4946262d6030 98 #define BLE_STATUS_INVALID_OPERATION (0x63)
iv123 0:4946262d6030 99 #define BLE_STATUS_INSUFFICIENT_RESOURCES (0x64)
iv123 0:4946262d6030 100 #define BLE_INSUFFICIENT_ENC_KEYSIZE (0x65)
iv123 0:4946262d6030 101 #define BLE_STATUS_CHARAC_ALREADY_EXISTS (0x66)
iv123 0:4946262d6030 102
iv123 0:4946262d6030 103 /*
iv123 0:4946262d6030 104 * Library Error Codes
iv123 0:4946262d6030 105 */
iv123 0:4946262d6030 106 #define BLE_STATUS_TIMEOUT (0xFF)
iv123 0:4946262d6030 107 #define BLE_STATUS_PROFILE_ALREADY_INITIALIZED (0xF0)
iv123 0:4946262d6030 108 #define BLE_STATUS_NULL_PARAM (0xF1)
iv123 0:4946262d6030 109
iv123 0:4946262d6030 110 /**
iv123 0:4946262d6030 111 * @}
iv123 0:4946262d6030 112 */
iv123 0:4946262d6030 113
iv123 0:4946262d6030 114
iv123 0:4946262d6030 115 #endif /* __BLE_STATUS_H__ */