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