The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_VBLUNO51/TOOLCHAIN_IAR/nrf_ble_hci.h@171:3a7713b1edbc, 2018-11-08 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Nov 08 11:45:42 2018 +0000
- Revision:
- 171:3a7713b1edbc
- Parent:
- TARGET_NRF51_DONGLE/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_hci.h@169:a7c7b631e539
mbed library. Release version 164
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 148:fd96258d940d | 1 | /* |
Kojto | 148:fd96258d940d | 2 | * Copyright (c) 2000 Nordic Semiconductor ASA |
Kojto | 148:fd96258d940d | 3 | * All rights reserved. |
Kojto | 148:fd96258d940d | 4 | * |
Kojto | 148:fd96258d940d | 5 | * Redistribution and use in source and binary forms, with or without modification, |
Kojto | 148:fd96258d940d | 6 | * are permitted provided that the following conditions are met: |
Kojto | 148:fd96258d940d | 7 | * |
Kojto | 148:fd96258d940d | 8 | * 1. Redistributions of source code must retain the above copyright notice, this list |
Kojto | 148:fd96258d940d | 9 | * of conditions and the following disclaimer. |
Kojto | 148:fd96258d940d | 10 | * |
Kojto | 148:fd96258d940d | 11 | * 2. Redistributions in binary form, except as embedded into a Nordic Semiconductor ASA |
Kojto | 148:fd96258d940d | 12 | * integrated circuit in a product or a software update for such product, must reproduce |
Kojto | 148:fd96258d940d | 13 | * the above copyright notice, this list of conditions and the following disclaimer in |
Kojto | 148:fd96258d940d | 14 | * the documentation and/or other materials provided with the distribution. |
Kojto | 148:fd96258d940d | 15 | * |
Kojto | 148:fd96258d940d | 16 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of its contributors may be |
Kojto | 148:fd96258d940d | 17 | * used to endorse or promote products derived from this software without specific prior |
Kojto | 148:fd96258d940d | 18 | * written permission. |
Kojto | 148:fd96258d940d | 19 | * |
Kojto | 148:fd96258d940d | 20 | * 4. This software, with or without modification, must only be used with a |
Kojto | 148:fd96258d940d | 21 | * Nordic Semiconductor ASA integrated circuit. |
Kojto | 148:fd96258d940d | 22 | * |
Kojto | 148:fd96258d940d | 23 | * 5. Any software provided in binary or object form under this license must not be reverse |
Kojto | 148:fd96258d940d | 24 | * engineered, decompiled, modified and/or disassembled. |
Kojto | 148:fd96258d940d | 25 | * |
Kojto | 148:fd96258d940d | 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
Kojto | 148:fd96258d940d | 27 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
Kojto | 148:fd96258d940d | 28 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
Kojto | 148:fd96258d940d | 29 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
Kojto | 148:fd96258d940d | 30 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
Kojto | 148:fd96258d940d | 31 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
Kojto | 148:fd96258d940d | 32 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
Kojto | 148:fd96258d940d | 33 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
Kojto | 148:fd96258d940d | 34 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
Kojto | 148:fd96258d940d | 35 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Kojto | 148:fd96258d940d | 36 | * |
Kojto | 148:fd96258d940d | 37 | */ |
Kojto | 148:fd96258d940d | 38 | |
Kojto | 148:fd96258d940d | 39 | |
Kojto | 148:fd96258d940d | 40 | /** |
Kojto | 148:fd96258d940d | 41 | @addtogroup BLE_COMMON |
Kojto | 148:fd96258d940d | 42 | @{ |
Kojto | 148:fd96258d940d | 43 | */ |
Kojto | 148:fd96258d940d | 44 | |
Kojto | 148:fd96258d940d | 45 | |
Kojto | 148:fd96258d940d | 46 | #ifndef NRF_BLE_HCI_H__ |
Kojto | 148:fd96258d940d | 47 | #define NRF_BLE_HCI_H__ |
Kojto | 148:fd96258d940d | 48 | #ifdef __cplusplus |
Kojto | 148:fd96258d940d | 49 | extern "C" { |
Kojto | 148:fd96258d940d | 50 | #endif |
Kojto | 148:fd96258d940d | 51 | |
Kojto | 148:fd96258d940d | 52 | /** @defgroup BLE_HCI_STATUS_CODES Bluetooth status codes |
Kojto | 148:fd96258d940d | 53 | * @{ */ |
Kojto | 148:fd96258d940d | 54 | |
Kojto | 148:fd96258d940d | 55 | #define BLE_HCI_STATUS_CODE_SUCCESS 0x00 /**< Success. */ |
Kojto | 148:fd96258d940d | 56 | #define BLE_HCI_STATUS_CODE_UNKNOWN_BTLE_COMMAND 0x01 /**< Unknown BLE Command. */ |
Kojto | 148:fd96258d940d | 57 | #define BLE_HCI_STATUS_CODE_UNKNOWN_CONNECTION_IDENTIFIER 0x02 /**< Unknown Connection Identifier. */ |
Kojto | 148:fd96258d940d | 58 | /*0x03 Hardware Failure |
Kojto | 148:fd96258d940d | 59 | 0x04 Page Timeout |
Kojto | 148:fd96258d940d | 60 | */ |
Kojto | 148:fd96258d940d | 61 | #define BLE_HCI_AUTHENTICATION_FAILURE 0x05 /**< Authentication Failure. */ |
Kojto | 148:fd96258d940d | 62 | #define BLE_HCI_STATUS_CODE_PIN_OR_KEY_MISSING 0x06 /**< Pin or Key missing. */ |
Kojto | 148:fd96258d940d | 63 | #define BLE_HCI_MEMORY_CAPACITY_EXCEEDED 0x07 /**< Memory Capacity Exceeded. */ |
Kojto | 148:fd96258d940d | 64 | #define BLE_HCI_CONNECTION_TIMEOUT 0x08 /**< Connection Timeout. */ |
Kojto | 148:fd96258d940d | 65 | /*0x09 Connection Limit Exceeded |
Kojto | 148:fd96258d940d | 66 | 0x0A Synchronous Connection Limit To A Device Exceeded |
Kojto | 148:fd96258d940d | 67 | 0x0B ACL Connection Already Exists*/ |
Kojto | 148:fd96258d940d | 68 | #define BLE_HCI_STATUS_CODE_COMMAND_DISALLOWED 0x0C /**< Command Disallowed. */ |
Kojto | 148:fd96258d940d | 69 | /*0x0D Connection Rejected due to Limited Resources |
Kojto | 148:fd96258d940d | 70 | 0x0E Connection Rejected Due To Security Reasons |
Kojto | 148:fd96258d940d | 71 | 0x0F Connection Rejected due to Unacceptable BD_ADDR |
Kojto | 148:fd96258d940d | 72 | 0x10 Connection Accept Timeout Exceeded |
Kojto | 148:fd96258d940d | 73 | 0x11 Unsupported Feature or Parameter Value*/ |
Kojto | 148:fd96258d940d | 74 | #define BLE_HCI_STATUS_CODE_INVALID_BTLE_COMMAND_PARAMETERS 0x12 /**< Invalid BLE Command Parameters. */ |
Kojto | 148:fd96258d940d | 75 | #define BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION 0x13 /**< Remote User Terminated Connection. */ |
Kojto | 148:fd96258d940d | 76 | #define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_LOW_RESOURCES 0x14 /**< Remote Device Terminated Connection due to low resources.*/ |
Kojto | 148:fd96258d940d | 77 | #define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF 0x15 /**< Remote Device Terminated Connection due to power off. */ |
Kojto | 148:fd96258d940d | 78 | #define BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION 0x16 /**< Local Host Terminated Connection. */ |
Kojto | 148:fd96258d940d | 79 | /* |
Kojto | 148:fd96258d940d | 80 | 0x17 Repeated Attempts |
Kojto | 148:fd96258d940d | 81 | 0x18 Pairing Not Allowed |
Kojto | 148:fd96258d940d | 82 | 0x19 Unknown LMP PDU |
Kojto | 148:fd96258d940d | 83 | */ |
Kojto | 148:fd96258d940d | 84 | #define BLE_HCI_UNSUPPORTED_REMOTE_FEATURE 0x1A /**< Unsupported Remote Feature. */ |
Kojto | 148:fd96258d940d | 85 | /* |
Kojto | 148:fd96258d940d | 86 | 0x1B SCO Offset Rejected |
Kojto | 148:fd96258d940d | 87 | 0x1C SCO Interval Rejected |
Kojto | 148:fd96258d940d | 88 | 0x1D SCO Air Mode Rejected*/ |
Kojto | 148:fd96258d940d | 89 | #define BLE_HCI_STATUS_CODE_INVALID_LMP_PARAMETERS 0x1E /**< Invalid LMP Parameters. */ |
Kojto | 148:fd96258d940d | 90 | #define BLE_HCI_STATUS_CODE_UNSPECIFIED_ERROR 0x1F /**< Unspecified Error. */ |
Kojto | 148:fd96258d940d | 91 | /*0x20 Unsupported LMP Parameter Value |
Kojto | 148:fd96258d940d | 92 | 0x21 Role Change Not Allowed |
Kojto | 148:fd96258d940d | 93 | */ |
Kojto | 148:fd96258d940d | 94 | #define BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT 0x22 /**< LMP Response Timeout. */ |
Kojto | 148:fd96258d940d | 95 | /*0x23 LMP Error Transaction Collision*/ |
Kojto | 148:fd96258d940d | 96 | #define BLE_HCI_STATUS_CODE_LMP_PDU_NOT_ALLOWED 0x24 /**< LMP PDU Not Allowed. */ |
Kojto | 148:fd96258d940d | 97 | /*0x25 Encryption Mode Not Acceptable |
Kojto | 148:fd96258d940d | 98 | 0x26 Link Key Can Not be Changed |
Kojto | 148:fd96258d940d | 99 | 0x27 Requested QoS Not Supported |
Kojto | 148:fd96258d940d | 100 | */ |
Kojto | 148:fd96258d940d | 101 | #define BLE_HCI_INSTANT_PASSED 0x28 /**< Instant Passed. */ |
Kojto | 148:fd96258d940d | 102 | #define BLE_HCI_PAIRING_WITH_UNIT_KEY_UNSUPPORTED 0x29 /**< Pairing with Unit Key Unsupported. */ |
Kojto | 148:fd96258d940d | 103 | #define BLE_HCI_DIFFERENT_TRANSACTION_COLLISION 0x2A /**< Different Transaction Collision. */ |
Kojto | 148:fd96258d940d | 104 | /* |
Kojto | 148:fd96258d940d | 105 | 0x2B Reserved |
Kojto | 148:fd96258d940d | 106 | 0x2C QoS Unacceptable Parameter |
Kojto | 148:fd96258d940d | 107 | 0x2D QoS Rejected |
Kojto | 148:fd96258d940d | 108 | 0x2E Channel Classification Not Supported |
Kojto | 148:fd96258d940d | 109 | 0x2F Insufficient Security |
Kojto | 148:fd96258d940d | 110 | 0x30 Parameter Out Of Mandatory Range |
Kojto | 148:fd96258d940d | 111 | 0x31 Reserved |
Kojto | 148:fd96258d940d | 112 | 0x32 Role Switch Pending |
Kojto | 148:fd96258d940d | 113 | 0x33 Reserved |
Kojto | 148:fd96258d940d | 114 | 0x34 Reserved Slot Violation |
Kojto | 148:fd96258d940d | 115 | 0x35 Role Switch Failed |
Kojto | 148:fd96258d940d | 116 | 0x36 Extended Inquiry Response Too Large |
Kojto | 148:fd96258d940d | 117 | 0x37 Secure Simple Pairing Not Supported By Host. |
Kojto | 148:fd96258d940d | 118 | 0x38 Host Busy - Pairing |
Kojto | 148:fd96258d940d | 119 | 0x39 Connection Rejected due to No Suitable Channel Found*/ |
Kojto | 148:fd96258d940d | 120 | #define BLE_HCI_CONTROLLER_BUSY 0x3A /**< Controller Busy. */ |
Kojto | 148:fd96258d940d | 121 | #define BLE_HCI_CONN_INTERVAL_UNACCEPTABLE 0x3B /**< Connection Interval Unacceptable. */ |
Kojto | 148:fd96258d940d | 122 | #define BLE_HCI_DIRECTED_ADVERTISER_TIMEOUT 0x3C /**< Directed Adverisement Timeout. */ |
Kojto | 148:fd96258d940d | 123 | #define BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE 0x3D /**< Connection Terminated due to MIC Failure. */ |
Kojto | 148:fd96258d940d | 124 | #define BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED 0x3E /**< Connection Failed to be Established. */ |
Kojto | 148:fd96258d940d | 125 | |
Kojto | 148:fd96258d940d | 126 | /** @} */ |
Kojto | 148:fd96258d940d | 127 | |
Kojto | 148:fd96258d940d | 128 | |
Kojto | 148:fd96258d940d | 129 | #ifdef __cplusplus |
Kojto | 148:fd96258d940d | 130 | } |
Kojto | 148:fd96258d940d | 131 | #endif |
Kojto | 148:fd96258d940d | 132 | #endif // NRF_BLE_HCI_H__ |
Kojto | 148:fd96258d940d | 133 | |
Kojto | 148:fd96258d940d | 134 | /** @} */ |