2 * Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
3 * All rights reserved. Distributed under the terms of the MIT License.
5 #ifndef _BLUETOOTH_ERROR_H
6 #define _BLUETOOTH_ERROR_H
12 #define BT_ERROR BT_UNSPECIFIED_ERROR
14 /* Official error code for Bluetooth V2.1 + EDR */
15 #define BT_UNKNOWN_COMMAND 0x01
16 #define BT_NO_CONNECTION 0x02
17 #define BT_HARDWARE_FAILURE 0x03
18 #define BT_PAGE_TIMEOUT 0x04
19 #define BT_AUTHENTICATION_FAILURE 0x05
20 #define BT_PIN_OR_KEY_MISSING 0x06
21 #define BT_MEMORY_FULL 0x07
22 #define BT_CONNECTION_TIMEOUT 0x08
23 #define BT_MAX_NUMBER_OF_CONNECTIONS 0x09
24 #define BT_MAX_NUMBER_OF_SCO_CONNECTIONS 0x0a
25 #define BT_ACL_CONNECTION_EXISTS 0x0b
26 #define BT_COMMAND_DISALLOWED 0x0c
27 #define BT_REJECTED_LIMITED_RESOURCES 0x0d
28 #define BT_REJECTED_SECURITY 0x0e
29 #define BT_REJECTED_PERSONAL 0x0f
30 #define BT_HOST_TIMEOUT 0x10
31 #define BT_UNSUPPORTED_FEATURE 0x11
32 #define BT_INVALID_PARAMETERS 0x12
33 #define BT_REMOTE_USER_ENDED_CONNECTION 0x13
34 #define BT_REMOTE_LOW_RESOURCES 0x14
35 #define BT_REMOTE_POWER_OFF 0x15
36 #define BT_CONNECTION_TERMINATED 0x16
37 #define BT_REPEATED_ATTEMPTS 0x17
38 #define BT_PAIRING_NOT_ALLOWED 0x18
39 #define BT_UNKNOWN_LMP_PDU 0x19
40 #define BT_UNSUPPORTED_REMOTE_FEATURE 0x1a
41 #define BT_SCO_OFFSET_REJECTED 0x1b
42 #define BT_SCO_INTERVAL_REJECTED 0x1c
43 #define BT_AIR_MODE_REJECTED 0x1d
44 #define BT_INVALID_LMP_PARAMETERS 0x1e
45 #define BT_UNSPECIFIED_ERROR 0x1f
46 #define BT_UNSUPPORTED_LMP_PARAMETER_VALUE 0x20
47 #define BT_ROLE_CHANGE_NOT_ALLOWED 0x21
48 #define BT_LMP_RESPONSE_TIMEOUT 0x22
49 #define BT_LMP_ERROR_TRANSACTION_COLLISION 0x23
50 #define BT_LMP_PDU_NOT_ALLOWED 0x24
51 #define BT_ENCRYPTION_MODE_NOT_ACCEPTED 0x25
52 #define BT_UNIT_LINK_KEY_USED 0x26
53 #define BT_QOS_NOT_SUPPORTED 0x27
54 #define BT_INSTANT_PASSED 0x28
55 #define BT_PAIRING_NOT_SUPPORTED 0x29
56 #define BT_TRANSACTION_COLLISION 0x2a
57 #define BT_QOS_UNACCEPTABLE_PARAMETER 0x2c
58 #define BT_QOS_REJECTED 0x2d
59 #define BT_CLASSIFICATION_NOT_SUPPORTED 0x2e
60 #define BT_INSUFFICIENT_SECURITY 0x2f
61 #define BT_PARAMETER_OUT_OF_RANGE 0x30
62 #define BT_ROLE_SWITCH_PENDING 0x32
63 #define BT_SLOT_VIOLATION 0x34
64 #define BT_ROLE_SWITCH_FAILED 0x35
66 #define EXTENDED_INQUIRY_RESPONSE_TOO_LARGE 0x36
67 #define SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST 0x37
68 #define HOST_BUSY_PAIRING 0x38
71 #endif // _BLUETOOTH_ERROR_H