BLE temperature profile using digital DS1820 or analog LM35 sensors

Dependencies:   DS1820

Committer:
gkroussos
Date:
Sat Mar 07 16:23:41 2015 +0000
Revision:
0:637031152314
Working version 1.0

Who changed what in which revision?

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