Lancaster University fork of the Nordic nrf51-SDK repository, which actually lives on github: https://github.com/lancaster-university/nrf51-sdk
ble_hci.h
00001 /* 00002 * Copyright (c) Nordic Semiconductor ASA 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without modification, 00006 * are permitted provided that the following conditions are met: 00007 * 00008 * 1. Redistributions of source code must retain the above copyright notice, this 00009 * list of conditions and the following disclaimer. 00010 * 00011 * 2. Redistributions in binary form must reproduce the above copyright notice, this 00012 * list of conditions and the following disclaimer in the documentation and/or 00013 * other materials provided with the distribution. 00014 * 00015 * 3. Neither the name of Nordic Semiconductor ASA nor the names of other 00016 * contributors to this software may be used to endorse or promote products 00017 * derived from this software without specific prior written permission. 00018 * 00019 * 00020 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 00021 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00022 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00023 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 00024 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00025 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00026 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 00027 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00028 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00029 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00030 * 00031 */ 00032 00033 /** 00034 @addtogroup BLE_COMMON 00035 @{ 00036 */ 00037 00038 00039 #ifndef BLE_HCI_H__ 00040 #define BLE_HCI_H__ 00041 00042 /** @defgroup BLE_HCI_STATUS_CODES Bluetooth status codes 00043 * @{ */ 00044 00045 #define BLE_HCI_STATUS_CODE_SUCCESS 0x00 /**< Success. */ 00046 #define BLE_HCI_STATUS_CODE_UNKNOWN_BTLE_COMMAND 0x01 /**< Unknown BLE Command. */ 00047 #define BLE_HCI_STATUS_CODE_UNKNOWN_CONNECTION_IDENTIFIER 0x02 /**< Unknown Connection Identifier. */ 00048 /*0x03 Hardware Failure 00049 0x04 Page Timeout 00050 */ 00051 #define BLE_HCI_AUTHENTICATION_FAILURE 0x05 /**< Authentication Failure. */ 00052 #define BLE_HCI_STATUS_CODE_PIN_OR_KEY_MISSING 0x06 /**< Pin or Key missing. */ 00053 #define BLE_HCI_MEMORY_CAPACITY_EXCEEDED 0x07 /**< Memory Capacity Exceeded. */ 00054 #define BLE_HCI_CONNECTION_TIMEOUT 0x08 /**< Connection Timeout. */ 00055 /*0x09 Connection Limit Exceeded 00056 0x0A Synchronous Connection Limit To A Device Exceeded 00057 0x0B ACL Connection Already Exists*/ 00058 #define BLE_HCI_STATUS_CODE_COMMAND_DISALLOWED 0x0C /**< Command Disallowed. */ 00059 /*0x0D Connection Rejected due to Limited Resources 00060 0x0E Connection Rejected Due To Security Reasons 00061 0x0F Connection Rejected due to Unacceptable BD_ADDR 00062 0x10 Connection Accept Timeout Exceeded 00063 0x11 Unsupported Feature or Parameter Value*/ 00064 #define BLE_HCI_STATUS_CODE_INVALID_BTLE_COMMAND_PARAMETERS 0x12 /**< Invalid BLE Command Parameters. */ 00065 #define BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION 0x13 /**< Remote User Terminated Connection. */ 00066 #define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_LOW_RESOURCES 0x14 /**< Remote Device Terminated Connection due to low resources.*/ 00067 #define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF 0x15 /**< Remote Device Terminated Connection due to power off. */ 00068 #define BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION 0x16 /**< Local Host Terminated Connection. */ 00069 /* 00070 0x17 Repeated Attempts 00071 0x18 Pairing Not Allowed 00072 0x19 Unknown LMP PDU 00073 */ 00074 #define BLE_HCI_UNSUPPORTED_REMOTE_FEATURE 0x1A /**< Unsupported Remote Feature. */ 00075 /* 00076 0x1B SCO Offset Rejected 00077 0x1C SCO Interval Rejected 00078 0x1D SCO Air Mode Rejected*/ 00079 #define BLE_HCI_STATUS_CODE_INVALID_LMP_PARAMETERS 0x1E /**< Invalid LMP Parameters. */ 00080 #define BLE_HCI_STATUS_CODE_UNSPECIFIED_ERROR 0x1F /**< Unspecified Error. */ 00081 /*0x20 Unsupported LMP Parameter Value 00082 0x21 Role Change Not Allowed 00083 */ 00084 #define BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT 0x22 /**< LMP Response Timeout. */ 00085 /*0x23 LMP Error Transaction Collision*/ 00086 #define BLE_HCI_STATUS_CODE_LMP_PDU_NOT_ALLOWED 0x24 /**< LMP PDU Not Allowed. */ 00087 /*0x25 Encryption Mode Not Acceptable 00088 0x26 Link Key Can Not be Changed 00089 0x27 Requested QoS Not Supported 00090 */ 00091 #define BLE_HCI_INSTANT_PASSED 0x28 /**< Instant Passed. */ 00092 #define BLE_HCI_PAIRING_WITH_UNIT_KEY_UNSUPPORTED 0x29 /**< Pairing with Unit Key Unsupported. */ 00093 #define BLE_HCI_DIFFERENT_TRANSACTION_COLLISION 0x2A /**< Different Transaction Collision. */ 00094 /* 00095 0x2B Reserved 00096 0x2C QoS Unacceptable Parameter 00097 0x2D QoS Rejected 00098 0x2E Channel Classification Not Supported 00099 0x2F Insufficient Security 00100 0x30 Parameter Out Of Mandatory Range 00101 0x31 Reserved 00102 0x32 Role Switch Pending 00103 0x33 Reserved 00104 0x34 Reserved Slot Violation 00105 0x35 Role Switch Failed 00106 0x36 Extended Inquiry Response Too Large 00107 0x37 Secure Simple Pairing Not Supported By Host. 00108 0x38 Host Busy - Pairing 00109 0x39 Connection Rejected due to No Suitable Channel Found*/ 00110 #define BLE_HCI_CONTROLLER_BUSY 0x3A /**< Controller Busy. */ 00111 #define BLE_HCI_CONN_INTERVAL_UNACCEPTABLE 0x3B /**< Connection Interval Unacceptable. */ 00112 #define BLE_HCI_DIRECTED_ADVERTISER_TIMEOUT 0x3C /**< Directed Adverisement Timeout. */ 00113 #define BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE 0x3D /**< Connection Terminated due to MIC Failure. */ 00114 #define BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED 0x3E /**< Connection Failed to be Established. */ 00115 00116 /** @} */ 00117 00118 00119 #endif // BLE_HCI_H__ 00120 00121 /** @} */
Generated on Tue Jul 12 2022 15:07:13 by 1.7.2