project for nrf51822 qfab

Dependencies:   eddystone_URL mbed

Fork of eddystone_URL by vo dung

Committer:
tridung141196
Date:
Thu Nov 23 15:38:48 2017 +0000
Revision:
5:267bdacf5508
Parent:
0:76dfa9657d9d
ibeacon

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:76dfa9657d9d 1 /*
jksoft 0:76dfa9657d9d 2 Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
jksoft 0:76dfa9657d9d 3
jksoft 0:76dfa9657d9d 4 The information contained herein is confidential property of Nordic Semiconductor. The use,
jksoft 0:76dfa9657d9d 5 copying, transfer or disclosure of such information is prohibited except by express written
jksoft 0:76dfa9657d9d 6 agreement with Nordic Semiconductor.
jksoft 0:76dfa9657d9d 7 */
jksoft 0:76dfa9657d9d 8 /**
jksoft 0:76dfa9657d9d 9 @addtogroup BLE_COMMON
jksoft 0:76dfa9657d9d 10 @{
jksoft 0:76dfa9657d9d 11 */
jksoft 0:76dfa9657d9d 12
jksoft 0:76dfa9657d9d 13
jksoft 0:76dfa9657d9d 14 #ifndef BLE_HCI_H__
jksoft 0:76dfa9657d9d 15 #define BLE_HCI_H__
jksoft 0:76dfa9657d9d 16
jksoft 0:76dfa9657d9d 17 /** @defgroup BLE_HCI_STATUS_CODES Bluetooth status codes
jksoft 0:76dfa9657d9d 18 * @{ */
jksoft 0:76dfa9657d9d 19
jksoft 0:76dfa9657d9d 20 #define BLE_HCI_STATUS_CODE_SUCCESS 0x00
jksoft 0:76dfa9657d9d 21 #define BLE_HCI_STATUS_CODE_UNKNOWN_BTLE_COMMAND 0x01
jksoft 0:76dfa9657d9d 22 #define BLE_HCI_STATUS_CODE_UNKNOWN_CONNECTION_IDENTIFIER 0x02
jksoft 0:76dfa9657d9d 23 /*0x03 Hardware Failure
jksoft 0:76dfa9657d9d 24 0x04 Page Timeout
jksoft 0:76dfa9657d9d 25 */
jksoft 0:76dfa9657d9d 26 #define BLE_HCI_AUTHENTICATION_FAILURE 0x05
jksoft 0:76dfa9657d9d 27 #define BLE_HCI_STATUS_CODE_PIN_OR_KEY_MISSING 0x06
jksoft 0:76dfa9657d9d 28 #define BLE_HCI_MEMORY_CAPACITY_EXCEEDED 0x07
jksoft 0:76dfa9657d9d 29 #define BLE_HCI_CONNECTION_TIMEOUT 0x08
jksoft 0:76dfa9657d9d 30 /*0x09 Connection Limit Exceeded
jksoft 0:76dfa9657d9d 31 0x0A Synchronous Connection Limit To A Device Exceeded
jksoft 0:76dfa9657d9d 32 0x0B ACL Connection Already Exists*/
jksoft 0:76dfa9657d9d 33 #define BLE_HCI_STATUS_CODE_COMMAND_DISALLOWED 0x0C
jksoft 0:76dfa9657d9d 34 /*0x0D Connection Rejected due to Limited Resources
jksoft 0:76dfa9657d9d 35 0x0E Connection Rejected Due To Security Reasons
jksoft 0:76dfa9657d9d 36 0x0F Connection Rejected due to Unacceptable BD_ADDR
jksoft 0:76dfa9657d9d 37 0x10 Connection Accept Timeout Exceeded
jksoft 0:76dfa9657d9d 38 0x11 Unsupported Feature or Parameter Value*/
jksoft 0:76dfa9657d9d 39 #define BLE_HCI_STATUS_CODE_INVALID_BTLE_COMMAND_PARAMETERS 0x12
jksoft 0:76dfa9657d9d 40 #define BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION 0x13
jksoft 0:76dfa9657d9d 41 #define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_LOW_RESOURCES 0x14
jksoft 0:76dfa9657d9d 42 #define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF 0x15
jksoft 0:76dfa9657d9d 43 #define BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION 0x16
jksoft 0:76dfa9657d9d 44 /*
jksoft 0:76dfa9657d9d 45 0x17 Repeated Attempts
jksoft 0:76dfa9657d9d 46 0x18 Pairing Not Allowed
jksoft 0:76dfa9657d9d 47 0x19 Unknown LMP PDU
jksoft 0:76dfa9657d9d 48 */
jksoft 0:76dfa9657d9d 49 #define BLE_HCI_UNSUPPORTED_REMOTE_FEATURE 0x1A
jksoft 0:76dfa9657d9d 50 /*
jksoft 0:76dfa9657d9d 51 0x1B SCO Offset Rejected
jksoft 0:76dfa9657d9d 52 0x1C SCO Interval Rejected
jksoft 0:76dfa9657d9d 53 0x1D SCO Air Mode Rejected*/
jksoft 0:76dfa9657d9d 54 #define BLE_HCI_STATUS_CODE_INVALID_LMP_PARAMETERS 0x1E
jksoft 0:76dfa9657d9d 55 #define BLE_HCI_STATUS_CODE_UNSPECIFIED_ERROR 0x1F
jksoft 0:76dfa9657d9d 56 /*0x20 Unsupported LMP Parameter Value
jksoft 0:76dfa9657d9d 57 0x21 Role Change Not Allowed
jksoft 0:76dfa9657d9d 58 */
jksoft 0:76dfa9657d9d 59 #define BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT 0x22
jksoft 0:76dfa9657d9d 60 /*0x23 LMP Error Transaction Collision*/
jksoft 0:76dfa9657d9d 61 #define BLE_HCI_STATUS_CODE_LMP_PDU_NOT_ALLOWED 0x24
jksoft 0:76dfa9657d9d 62 /*0x25 Encryption Mode Not Acceptable
jksoft 0:76dfa9657d9d 63 0x26 Link Key Can Not be Changed
jksoft 0:76dfa9657d9d 64 0x27 Requested QoS Not Supported
jksoft 0:76dfa9657d9d 65 */
jksoft 0:76dfa9657d9d 66 #define BLE_HCI_INSTANT_PASSED 0x28
jksoft 0:76dfa9657d9d 67 #define BLE_HCI_PAIRING_WITH_UNIT_KEY_UNSUPPORTED 0x29
jksoft 0:76dfa9657d9d 68 #define BLE_HCI_DIFFERENT_TRANSACTION_COLLISION 0x2A
jksoft 0:76dfa9657d9d 69 /*
jksoft 0:76dfa9657d9d 70 0x2B Reserved
jksoft 0:76dfa9657d9d 71 0x2C QoS Unacceptable Parameter
jksoft 0:76dfa9657d9d 72 0x2D QoS Rejected
jksoft 0:76dfa9657d9d 73 0x2E Channel Classification Not Supported
jksoft 0:76dfa9657d9d 74 0x2F Insufficient Security
jksoft 0:76dfa9657d9d 75 0x30 Parameter Out Of Mandatory Range
jksoft 0:76dfa9657d9d 76 0x31 Reserved
jksoft 0:76dfa9657d9d 77 0x32 Role Switch Pending
jksoft 0:76dfa9657d9d 78 0x33 Reserved
jksoft 0:76dfa9657d9d 79 0x34 Reserved Slot Violation
jksoft 0:76dfa9657d9d 80 0x35 Role Switch Failed
jksoft 0:76dfa9657d9d 81 0x36 Extended Inquiry Response Too Large
jksoft 0:76dfa9657d9d 82 0x37 Secure Simple Pairing Not Supported By Host.
jksoft 0:76dfa9657d9d 83 0x38 Host Busy - Pairing
jksoft 0:76dfa9657d9d 84 0x39 Connection Rejected due to No Suitable Channel Found*/
jksoft 0:76dfa9657d9d 85 #define BLE_HCI_CONTROLLER_BUSY 0x3A
jksoft 0:76dfa9657d9d 86 #define BLE_HCI_CONN_INTERVAL_UNACCEPTABLE 0x3B
jksoft 0:76dfa9657d9d 87 #define BLE_HCI_DIRECTED_ADVERTISER_TIMEOUT 0x3C
jksoft 0:76dfa9657d9d 88 #define BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE 0x3D
jksoft 0:76dfa9657d9d 89 #define BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED 0x3E
jksoft 0:76dfa9657d9d 90
jksoft 0:76dfa9657d9d 91 /** @} */
jksoft 0:76dfa9657d9d 92
jksoft 0:76dfa9657d9d 93
jksoft 0:76dfa9657d9d 94 #endif // BLE_HCI_H__
jksoft 0:76dfa9657d9d 95
jksoft 0:76dfa9657d9d 96 /** @} */