NUCLEO-F401RE + BlueNRG shield client test (TI Sensortag reading)
bluenrg/SimpleBlueNRG_HCI/includes/ble_status.h@0:aa1e012ec210, 2014-08-16 (annotated)
- Committer:
- ostapsky
- Date:
- Sat Aug 16 11:00:04 2014 +0000
- Revision:
- 0:aa1e012ec210
CLIENT mode first revision
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ostapsky | 0:aa1e012ec210 | 1 | /******************** (C) COPYRIGHT 2012 STMicroelectronics ******************** |
ostapsky | 0:aa1e012ec210 | 2 | * File Name : ble_status.h |
ostapsky | 0:aa1e012ec210 | 3 | * Author : AMS - HEA&RF BU |
ostapsky | 0:aa1e012ec210 | 4 | * Version : V1.0.0 |
ostapsky | 0:aa1e012ec210 | 5 | * Date : 19-July-2012 |
ostapsky | 0:aa1e012ec210 | 6 | * Description : Header file with BLE Stack status codes. |
ostapsky | 0:aa1e012ec210 | 7 | ******************************************************************************** |
ostapsky | 0:aa1e012ec210 | 8 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
ostapsky | 0:aa1e012ec210 | 9 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
ostapsky | 0:aa1e012ec210 | 10 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
ostapsky | 0:aa1e012ec210 | 11 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
ostapsky | 0:aa1e012ec210 | 12 | * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
ostapsky | 0:aa1e012ec210 | 13 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
ostapsky | 0:aa1e012ec210 | 14 | *******************************************************************************/ |
ostapsky | 0:aa1e012ec210 | 15 | #ifndef __BLE_STATUS_H__ |
ostapsky | 0:aa1e012ec210 | 16 | #define __BLE_STATUS_H__ |
ostapsky | 0:aa1e012ec210 | 17 | |
ostapsky | 0:aa1e012ec210 | 18 | #include <hal_types.h> |
ostapsky | 0:aa1e012ec210 | 19 | |
ostapsky | 0:aa1e012ec210 | 20 | |
ostapsky | 0:aa1e012ec210 | 21 | /** @defgroup ble_status Bluetooth Status/Error Codes |
ostapsky | 0:aa1e012ec210 | 22 | * @{ |
ostapsky | 0:aa1e012ec210 | 23 | */ |
ostapsky | 0:aa1e012ec210 | 24 | |
ostapsky | 0:aa1e012ec210 | 25 | typedef tHalUint8 tBleStatus; |
ostapsky | 0:aa1e012ec210 | 26 | |
ostapsky | 0:aa1e012ec210 | 27 | /* Error Codes as specified by the specification |
ostapsky | 0:aa1e012ec210 | 28 | * according to the spec the error codes range |
ostapsky | 0:aa1e012ec210 | 29 | * from 0x00 to 0x3F |
ostapsky | 0:aa1e012ec210 | 30 | */ |
ostapsky | 0:aa1e012ec210 | 31 | #define ERR_CMD_SUCCESS (0x00) |
ostapsky | 0:aa1e012ec210 | 32 | #define BLE_STATUS_SUCCESS (0x00) |
ostapsky | 0:aa1e012ec210 | 33 | #define ERR_UNKNOWN_HCI_COMMAND (0x01) |
ostapsky | 0:aa1e012ec210 | 34 | #define ERR_UNKNOWN_CONN_IDENTIFIER (0x02) |
ostapsky | 0:aa1e012ec210 | 35 | |
ostapsky | 0:aa1e012ec210 | 36 | #define ERR_AUTH_FAILURE (0x05) |
ostapsky | 0:aa1e012ec210 | 37 | #define ERR_PIN_OR_KEY_MISSING (0x06) |
ostapsky | 0:aa1e012ec210 | 38 | #define ERR_MEM_CAPACITY_EXCEEDED (0x07) |
ostapsky | 0:aa1e012ec210 | 39 | #define ERR_CONNECTION_TIMEOUT (0x08) |
ostapsky | 0:aa1e012ec210 | 40 | |
ostapsky | 0:aa1e012ec210 | 41 | #define ERR_COMMAND_DISALLOWED (0x0C) |
ostapsky | 0:aa1e012ec210 | 42 | |
ostapsky | 0:aa1e012ec210 | 43 | #define ERR_UNSUPPORTED_FEATURE (0x11) |
ostapsky | 0:aa1e012ec210 | 44 | #define ERR_INVALID_HCI_CMD_PARAMS (0x12) |
ostapsky | 0:aa1e012ec210 | 45 | #define ERR_RMT_USR_TERM_CONN (0x13) |
ostapsky | 0:aa1e012ec210 | 46 | #define ERR_RMT_DEV_TERM_CONN_LOW_RESRCES (0x14) |
ostapsky | 0:aa1e012ec210 | 47 | #define ERR_RMT_DEV_TERM_CONN_POWER_OFF (0x15) |
ostapsky | 0:aa1e012ec210 | 48 | #define ERR_LOCAL_HOST_TERM_CONN (0x16) |
ostapsky | 0:aa1e012ec210 | 49 | |
ostapsky | 0:aa1e012ec210 | 50 | #define ERR_UNSUPP_RMT_FEATURE (0x1A) |
ostapsky | 0:aa1e012ec210 | 51 | |
ostapsky | 0:aa1e012ec210 | 52 | #define ERR_INVALID_LMP_PARAM (0x1E) |
ostapsky | 0:aa1e012ec210 | 53 | #define ERR_UNSPECIFIED_ERROR (0x1F) |
ostapsky | 0:aa1e012ec210 | 54 | |
ostapsky | 0:aa1e012ec210 | 55 | #define ERR_LL_RESP_TIMEOUT (0x22) |
ostapsky | 0:aa1e012ec210 | 56 | #define ERR_LMP_PDU_NOT_ALLOWED (0x24) |
ostapsky | 0:aa1e012ec210 | 57 | |
ostapsky | 0:aa1e012ec210 | 58 | #define ERR_INSTANT_PASSED (0x28) |
ostapsky | 0:aa1e012ec210 | 59 | |
ostapsky | 0:aa1e012ec210 | 60 | #define ERR_PAIR_UNIT_KEY_NOT_SUPP (0x29) |
ostapsky | 0:aa1e012ec210 | 61 | #define ERR_CONTROLLER_BUSY (0x3A) |
ostapsky | 0:aa1e012ec210 | 62 | |
ostapsky | 0:aa1e012ec210 | 63 | #define ERR_DIRECTED_ADV_TIMEOUT (0x3C) |
ostapsky | 0:aa1e012ec210 | 64 | |
ostapsky | 0:aa1e012ec210 | 65 | #define ERR_CONN_END_WITH_MIC_FAILURE (0x3D) |
ostapsky | 0:aa1e012ec210 | 66 | |
ostapsky | 0:aa1e012ec210 | 67 | #define ERR_CONN_FAILED_TO_ESTABLISH (0x3E) |
ostapsky | 0:aa1e012ec210 | 68 | |
ostapsky | 0:aa1e012ec210 | 69 | |
ostapsky | 0:aa1e012ec210 | 70 | /** |
ostapsky | 0:aa1e012ec210 | 71 | * Generic/System error codes |
ostapsky | 0:aa1e012ec210 | 72 | * starts with 0x40 |
ostapsky | 0:aa1e012ec210 | 73 | */ |
ostapsky | 0:aa1e012ec210 | 74 | |
ostapsky | 0:aa1e012ec210 | 75 | #define BLE_STATUS_FAILED (0x41) |
ostapsky | 0:aa1e012ec210 | 76 | #define BLE_STATUS_INVALID_PARAMS (0x42) |
ostapsky | 0:aa1e012ec210 | 77 | #define BLE_STATUS_BUSY (0x43) |
ostapsky | 0:aa1e012ec210 | 78 | #define BLE_STATUS_INVALID_LEN_PDU (0x44) |
ostapsky | 0:aa1e012ec210 | 79 | #define BLE_STATUS_PENDING (0x45) |
ostapsky | 0:aa1e012ec210 | 80 | #define BLE_STATUS_NOT_ALLOWED (0x46) |
ostapsky | 0:aa1e012ec210 | 81 | #define BLE_STATUS_ERROR (0x47) |
ostapsky | 0:aa1e012ec210 | 82 | |
ostapsky | 0:aa1e012ec210 | 83 | /** |
ostapsky | 0:aa1e012ec210 | 84 | * flash error codes |
ostapsky | 0:aa1e012ec210 | 85 | * starts with 0x49 |
ostapsky | 0:aa1e012ec210 | 86 | */ |
ostapsky | 0:aa1e012ec210 | 87 | #define FLASH_READ_FAILED (0x49) |
ostapsky | 0:aa1e012ec210 | 88 | #define FLASH_WRITE_FAILED (0x4A) |
ostapsky | 0:aa1e012ec210 | 89 | #define FLASH_ERASE_FAILED (0x4B) |
ostapsky | 0:aa1e012ec210 | 90 | |
ostapsky | 0:aa1e012ec210 | 91 | /** |
ostapsky | 0:aa1e012ec210 | 92 | * L2CAP error codes |
ostapsky | 0:aa1e012ec210 | 93 | * starts with 0x50 |
ostapsky | 0:aa1e012ec210 | 94 | */ |
ostapsky | 0:aa1e012ec210 | 95 | #define BLE_STATUS_INVALID_CID (0x50) |
ostapsky | 0:aa1e012ec210 | 96 | |
ostapsky | 0:aa1e012ec210 | 97 | /* |
ostapsky | 0:aa1e012ec210 | 98 | * timer error codes |
ostapsky | 0:aa1e012ec210 | 99 | * starts with 0x54 |
ostapsky | 0:aa1e012ec210 | 100 | */ |
ostapsky | 0:aa1e012ec210 | 101 | #define TIMER_NOT_VALID_LAYER (0x54) |
ostapsky | 0:aa1e012ec210 | 102 | #define TIMER_INSUFFICIENT_RESOURCES (0x55) |
ostapsky | 0:aa1e012ec210 | 103 | |
ostapsky | 0:aa1e012ec210 | 104 | /** |
ostapsky | 0:aa1e012ec210 | 105 | * SM error codes |
ostapsky | 0:aa1e012ec210 | 106 | * starts with 0x5A |
ostapsky | 0:aa1e012ec210 | 107 | */ |
ostapsky | 0:aa1e012ec210 | 108 | #define BLE_STATUS_CSRK_NOT_FOUND (0x5A) |
ostapsky | 0:aa1e012ec210 | 109 | #define BLE_STATUS_IRK_NOT_FOUND (0x5B) |
ostapsky | 0:aa1e012ec210 | 110 | #define BLE_STATUS_DEV_NOT_FOUND_IN_DB (0x5C) |
ostapsky | 0:aa1e012ec210 | 111 | #define BLE_STATUS_SEC_DB_FULL (0x5D) |
ostapsky | 0:aa1e012ec210 | 112 | #define BLE_STATUS_DEV_NOT_BONDED (0x5E) |
ostapsky | 0:aa1e012ec210 | 113 | |
ostapsky | 0:aa1e012ec210 | 114 | /** |
ostapsky | 0:aa1e012ec210 | 115 | * Gatt Error Codes |
ostapsky | 0:aa1e012ec210 | 116 | * starts with 0x60 |
ostapsky | 0:aa1e012ec210 | 117 | */ |
ostapsky | 0:aa1e012ec210 | 118 | #define BLE_STATUS_INVALID_HANDLE (0x60) |
ostapsky | 0:aa1e012ec210 | 119 | #define BLE_STATUS_INVALID_PARAMETER (0x61) |
ostapsky | 0:aa1e012ec210 | 120 | #define BLE_STATUS_OUT_OF_HANDLE (0x62) |
ostapsky | 0:aa1e012ec210 | 121 | #define BLE_STATUS_INVALID_OPERATION (0x63) |
ostapsky | 0:aa1e012ec210 | 122 | #define BLE_STATUS_INSUFFICIENT_RESOURCES (0x64) |
ostapsky | 0:aa1e012ec210 | 123 | #define BLE_INSUFFICIENT_ENC_KEYSIZE (0x65) |
ostapsky | 0:aa1e012ec210 | 124 | #define BLE_STATUS_CHARAC_ALREADY_EXISTS (0x66) |
ostapsky | 0:aa1e012ec210 | 125 | |
ostapsky | 0:aa1e012ec210 | 126 | /** |
ostapsky | 0:aa1e012ec210 | 127 | * @} |
ostapsky | 0:aa1e012ec210 | 128 | */ |
ostapsky | 0:aa1e012ec210 | 129 | |
ostapsky | 0:aa1e012ec210 | 130 | |
ostapsky | 0:aa1e012ec210 | 131 | #endif /* __BLE_STATUS_H__ */ |
ostapsky | 0:aa1e012ec210 | 132 |