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.

Committer:
emilmont
Date:
Fri Feb 21 12:21:39 2014 +0000
Revision:
80:8e73be2a2ac1
First alpha release for the NRF51822 target (to be tested in the online IDE)

Who changed what in which revision?

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