anyThing Connected Team / mbed-dev

Dependents:   BREAK_SENSOR_LED

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Wed Apr 12 16:21:43 2017 +0100
Revision:
162:e13f6fdb2ac4
This updates the lib to the mbed lib v140

Who changed what in which revision?

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