mbed HRM11017を使ってkonashi.jsでナイトライダー

Dependencies:   BLE_API_Native_IRC mbed

Fork of BLE_RCBController by Junichi Katsu

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ble_hci.h Source File

ble_hci.h

00001 /*
00002   Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
00003 
00004   The information contained herein is confidential property of Nordic Semiconductor. The use,
00005   copying, transfer or disclosure of such information is prohibited except by express written
00006   agreement with Nordic Semiconductor.
00007  */
00008 /**
00009   @addtogroup BLE_COMMON 
00010   @{
00011 */
00012 
00013 
00014 #ifndef BLE_HCI_H__
00015 #define BLE_HCI_H__ 
00016 
00017 /** @defgroup BLE_HCI_STATUS_CODES Bluetooth status codes
00018  * @{ */
00019 
00020 #define BLE_HCI_STATUS_CODE_SUCCESS                        0x00
00021 #define BLE_HCI_STATUS_CODE_UNKNOWN_BTLE_COMMAND           0x01
00022 #define BLE_HCI_STATUS_CODE_UNKNOWN_CONNECTION_IDENTIFIER  0x02 
00023 /*0x03 Hardware Failure
00024 0x04 Page Timeout
00025 */
00026 #define BLE_HCI_AUTHENTICATION_FAILURE                     0x05
00027 #define BLE_HCI_STATUS_CODE_PIN_OR_KEY_MISSING             0x06
00028 #define BLE_HCI_MEMORY_CAPACITY_EXCEEDED                   0x07
00029 #define BLE_HCI_CONNECTION_TIMEOUT                         0x08
00030 /*0x09 Connection Limit Exceeded
00031 0x0A Synchronous Connection Limit To A Device Exceeded
00032 0x0B ACL Connection Already Exists*/
00033 #define BLE_HCI_STATUS_CODE_COMMAND_DISALLOWED             0x0C
00034 /*0x0D Connection Rejected due to Limited Resources
00035 0x0E Connection Rejected Due To Security Reasons
00036 0x0F Connection Rejected due to Unacceptable BD_ADDR
00037 0x10 Connection Accept Timeout Exceeded
00038 0x11 Unsupported Feature or Parameter Value*/
00039 #define BLE_HCI_STATUS_CODE_INVALID_BTLE_COMMAND_PARAMETERS 0x12
00040 #define BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION           0x13
00041 #define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_LOW_RESOURCES 0x14
00042 #define BLE_HCI_REMOTE_DEV_TERMINATION_DUE_TO_POWER_OFF     0x15
00043 #define BLE_HCI_LOCAL_HOST_TERMINATED_CONNECTION            0x16
00044 /*
00045 0x17 Repeated Attempts
00046 0x18 Pairing Not Allowed
00047 0x19 Unknown LMP PDU
00048 */
00049 #define BLE_HCI_UNSUPPORTED_REMOTE_FEATURE 0x1A
00050 /*
00051 0x1B SCO Offset Rejected
00052 0x1C SCO Interval Rejected
00053 0x1D SCO Air Mode Rejected*/
00054 #define BLE_HCI_STATUS_CODE_INVALID_LMP_PARAMETERS     0x1E
00055 #define BLE_HCI_STATUS_CODE_UNSPECIFIED_ERROR          0x1F
00056 /*0x20 Unsupported LMP Parameter Value
00057 0x21 Role Change Not Allowed
00058 */
00059 #define BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT       0x22
00060 /*0x23 LMP Error Transaction Collision*/
00061 #define BLE_HCI_STATUS_CODE_LMP_PDU_NOT_ALLOWED        0x24
00062 /*0x25 Encryption Mode Not Acceptable
00063 0x26 Link Key Can Not be Changed
00064 0x27 Requested QoS Not Supported
00065 */
00066 #define BLE_HCI_INSTANT_PASSED                         0x28
00067 #define BLE_HCI_PAIRING_WITH_UNIT_KEY_UNSUPPORTED      0x29
00068 #define BLE_HCI_DIFFERENT_TRANSACTION_COLLISION        0x2A
00069 /*
00070 0x2B Reserved
00071 0x2C QoS Unacceptable Parameter
00072 0x2D QoS Rejected
00073 0x2E Channel Classification Not Supported
00074 0x2F Insufficient Security
00075 0x30 Parameter Out Of Mandatory Range
00076 0x31 Reserved
00077 0x32 Role Switch Pending
00078 0x33 Reserved
00079 0x34 Reserved Slot Violation
00080 0x35 Role Switch Failed
00081 0x36 Extended Inquiry Response Too Large
00082 0x37 Secure Simple Pairing Not Supported By Host.
00083 0x38 Host Busy - Pairing
00084 0x39 Connection Rejected due to No Suitable Channel Found*/
00085 #define BLE_HCI_CONTROLLER_BUSY                        0x3A
00086 #define BLE_HCI_CONN_INTERVAL_UNACCEPTABLE             0x3B
00087 #define BLE_HCI_DIRECTED_ADVERTISER_TIMEOUT            0x3C
00088 #define BLE_HCI_CONN_TERMINATED_DUE_TO_MIC_FAILURE     0x3D
00089 #define BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED          0x3E
00090 
00091 /** @} */
00092 
00093 
00094 #endif // BLE_HCI_H__
00095 
00096 /** @} */