1 /** @file 2 * @brief Bluetooth Host Control Interface status codes. 3 */ 4 5 /* 6 * Copyright (c) 2019 Nordic Semiconductor ASA 7 * 8 * SPDX-License-Identifier: Apache-2.0 9 */ 10 #ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_STATUS_H_ 11 #define ZEPHYR_INCLUDE_BLUETOOTH_HCI_STATUS_H_ 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 /** HCI Error Codes, BT Core Spec v5.2 [Vol 1, Part F]. */ 18 #define BT_HCI_ERR_SUCCESS 0x00 19 #define BT_HCI_ERR_UNKNOWN_CMD 0x01 20 #define BT_HCI_ERR_UNKNOWN_CONN_ID 0x02 21 #define BT_HCI_ERR_HW_FAILURE 0x03 22 #define BT_HCI_ERR_PAGE_TIMEOUT 0x04 23 #define BT_HCI_ERR_AUTH_FAIL 0x05 24 #define BT_HCI_ERR_PIN_OR_KEY_MISSING 0x06 25 #define BT_HCI_ERR_MEM_CAPACITY_EXCEEDED 0x07 26 #define BT_HCI_ERR_CONN_TIMEOUT 0x08 27 #define BT_HCI_ERR_CONN_LIMIT_EXCEEDED 0x09 28 #define BT_HCI_ERR_SYNC_CONN_LIMIT_EXCEEDED 0x0a 29 #define BT_HCI_ERR_CONN_ALREADY_EXISTS 0x0b 30 #define BT_HCI_ERR_CMD_DISALLOWED 0x0c 31 #define BT_HCI_ERR_INSUFFICIENT_RESOURCES 0x0d 32 #define BT_HCI_ERR_INSUFFICIENT_SECURITY 0x0e 33 #define BT_HCI_ERR_BD_ADDR_UNACCEPTABLE 0x0f 34 #define BT_HCI_ERR_CONN_ACCEPT_TIMEOUT 0x10 35 #define BT_HCI_ERR_UNSUPP_FEATURE_PARAM_VAL 0x11 36 #define BT_HCI_ERR_INVALID_PARAM 0x12 37 #define BT_HCI_ERR_REMOTE_USER_TERM_CONN 0x13 38 #define BT_HCI_ERR_REMOTE_LOW_RESOURCES 0x14 39 #define BT_HCI_ERR_REMOTE_POWER_OFF 0x15 40 #define BT_HCI_ERR_LOCALHOST_TERM_CONN 0x16 41 #define BT_HCI_ERR_REPEATED_ATTEMPTS 0x17 42 #define BT_HCI_ERR_PAIRING_NOT_ALLOWED 0x18 43 #define BT_HCI_ERR_UNKNOWN_LMP_PDU 0x19 44 #define BT_HCI_ERR_UNSUPP_REMOTE_FEATURE 0x1a 45 #define BT_HCI_ERR_SCO_OFFSET_REJECTED 0x1b 46 #define BT_HCI_ERR_SCO_INTERVAL_REJECTED 0x1c 47 #define BT_HCI_ERR_SCO_AIR_MODE_REJECTED 0x1d 48 #define BT_HCI_ERR_INVALID_LL_PARAM 0x1e 49 #define BT_HCI_ERR_UNSPECIFIED 0x1f 50 #define BT_HCI_ERR_UNSUPP_LL_PARAM_VAL 0x20 51 #define BT_HCI_ERR_ROLE_CHANGE_NOT_ALLOWED 0x21 52 #define BT_HCI_ERR_LL_RESP_TIMEOUT 0x22 53 #define BT_HCI_ERR_LL_PROC_COLLISION 0x23 54 #define BT_HCI_ERR_LMP_PDU_NOT_ALLOWED 0x24 55 #define BT_HCI_ERR_ENC_MODE_NOT_ACCEPTABLE 0x25 56 #define BT_HCI_ERR_LINK_KEY_CANNOT_BE_CHANGED 0x26 57 #define BT_HCI_ERR_REQUESTED_QOS_NOT_SUPPORTED 0x27 58 #define BT_HCI_ERR_INSTANT_PASSED 0x28 59 #define BT_HCI_ERR_PAIRING_NOT_SUPPORTED 0x29 60 #define BT_HCI_ERR_DIFF_TRANS_COLLISION 0x2a 61 #define BT_HCI_ERR_QOS_UNACCEPTABLE_PARAM 0x2c 62 #define BT_HCI_ERR_QOS_REJECTED 0x2d 63 #define BT_HCI_ERR_CHAN_ASSESS_NOT_SUPPORTED 0x2e 64 #define BT_HCI_ERR_INSUFF_SECURITY 0x2f 65 #define BT_HCI_ERR_PARAM_OUT_OF_MANDATORY_RANGE 0x30 66 #define BT_HCI_ERR_ROLE_SWITCH_PENDING 0x32 67 #define BT_HCI_ERR_RESERVED_SLOT_VIOLATION 0x34 68 #define BT_HCI_ERR_ROLE_SWITCH_FAILED 0x35 69 #define BT_HCI_ERR_EXT_INQ_RESP_TOO_LARGE 0x36 70 #define BT_HCI_ERR_SIMPLE_PAIR_NOT_SUPP_BY_HOST 0x37 71 #define BT_HCI_ERR_HOST_BUSY_PAIRING 0x38 72 #define BT_HCI_ERR_CONN_REJECTED_DUE_TO_NO_CHAN 0x39 73 #define BT_HCI_ERR_CONTROLLER_BUSY 0x3a 74 #define BT_HCI_ERR_UNACCEPT_CONN_PARAM 0x3b 75 #define BT_HCI_ERR_ADV_TIMEOUT 0x3c 76 #define BT_HCI_ERR_TERM_DUE_TO_MIC_FAIL 0x3d 77 #define BT_HCI_ERR_CONN_FAIL_TO_ESTAB 0x3e 78 #define BT_HCI_ERR_MAC_CONN_FAILED 0x3f 79 #define BT_HCI_ERR_CLOCK_ADJUST_REJECTED 0x40 80 #define BT_HCI_ERR_SUBMAP_NOT_DEFINED 0x41 81 #define BT_HCI_ERR_UNKNOWN_ADV_IDENTIFIER 0x42 82 #define BT_HCI_ERR_LIMIT_REACHED 0x43 83 #define BT_HCI_ERR_OP_CANCELLED_BY_HOST 0x44 84 #define BT_HCI_ERR_PACKET_TOO_LONG 0x45 85 86 #define BT_HCI_ERR_AUTHENTICATION_FAIL __DEPRECATED_MACRO BT_HCI_ERR_AUTH_FAIL 87 88 #ifdef __cplusplus 89 } 90 #endif 91 92 #endif /* ZEPHYR_INCLUDE_BLUETOOTH_HCI_STATUS_H_ */ 93