1*c2c66affSColin Finck #ifndef _FBT_HCI_ERROR_H
2*c2c66affSColin Finck #define _FBT_HCI_ERROR_H
3*c2c66affSColin Finck 
4*c2c66affSColin Finck #define FBT_HCI_ERROR_SUCCESS                               				0x00
5*c2c66affSColin Finck #define FBT_HCI_UNKNOWN_HCI_COMMAND											0x01
6*c2c66affSColin Finck #define FBT_HCI_UNKNOWN_CONNECTION_IDENTIFIER								0x02
7*c2c66affSColin Finck #define FBT_HCI_HARDWARE_FAILURE											0x03
8*c2c66affSColin Finck #define FBT_HCI_PAGE_TIMEOUT												0x04
9*c2c66affSColin Finck #define FBT_HCI_AUTHENTICATION_FAILURE										0x05
10*c2c66affSColin Finck #define FBT_HCI_PIN_MISSING													0x06
11*c2c66affSColin Finck #define FBT_HCI_MEMORY_CAPACITY_EXCEEDED									0x07
12*c2c66affSColin Finck #define FBT_HCI_CONNECTION_TIMEOUT											0x08
13*c2c66affSColin Finck #define FBT_HCI_CONNECTION_LIMIT EXCEEDED									0x09
14*c2c66affSColin Finck #define FBT_HCI_SYNCHRONOUS_CONNECTION_LIMIT_TO_A_DEVICE EXCEEDED			0x0a
15*c2c66affSColin Finck #define FBT_HCI_ACL_CONNECTION_ALREADY_EXISTS								0x0b
16*c2c66affSColin Finck #define FBT_HCI_COMMAND_DISALLOWED											0x0c
17*c2c66affSColin Finck #define FBT_HCI_CONNECTION_REJECTED_DUE_TO_LIMITED RESOURCES				0x0d
18*c2c66affSColin Finck #define FBT_HCI_CONNECTION_REJECTED_DUE_TO_SECURITY REASONS					0x0e
19*c2c66affSColin Finck #define FBT_HCI_CONNECTION_REJECTED_DUE_TO_UNACCEPTABLE BD_ADDR				0x0f
20*c2c66affSColin Finck #define FBT_HCI_CONNECTION_ACCEPT_TIMEOUT_EXCEEDED							0x10
21*c2c66affSColin Finck #define FBT_HCI_UNSUPPORTED_FEATURE_OR_PARAMETER VALUE						0x11
22*c2c66affSColin Finck #define FBT_HCI_INVALID_HCI_COMMAND_PARAMETERS								0x12
23*c2c66affSColin Finck #define FBT_HCI_REMOTE_USER_TERMINATED_CONNECTION							0x13
24*c2c66affSColin Finck #define FBT_HCI_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_LOW_RESOURCES	0x14
25*c2c66affSColin Finck #define FBT_HCI_REMOTE_DEVICE_TERMINATED_CONNECTION_DUE_TO_POWER OFF		0x15
26*c2c66affSColin Finck #define FBT_HCI_CONNECTION_TERMINATED_BY_LOCAL_HOST							0x16
27*c2c66affSColin Finck #define FBT_HCI_REPEATED_ATTEMPTS											0x17
28*c2c66affSColin Finck #define FBT_HCI_PAIRING_NOT ALLOWED											0x18
29*c2c66affSColin Finck #define FBT_HCI_UNKNOWN_LMP_PDU												0x19
30*c2c66affSColin Finck #define FBT_HCI_UNSUPPORTED_REMOTE_FEATURE									0x1a
31*c2c66affSColin Finck #define FBT_HCI_SCO_OFFSET_REJECTED											0x1b
32*c2c66affSColin Finck #define FBT_HCI_SCO_INTERVAL_REJECTED										0x1c
33*c2c66affSColin Finck #define FBT_HCI_SCO_AIR_MODE_REJECTED										0x1d
34*c2c66affSColin Finck #define FBT_HCI_INVALID_LMP_PARAMETERS										0x1e
35*c2c66affSColin Finck #define FBT_HCI_UNSPECIFIED_ERROR											0x1f
36*c2c66affSColin Finck #define FBT_HCI_UNSUPPORTED_LMP_PARAMETER_VALUE								0x20
37*c2c66affSColin Finck #define FBT_HCI_ROLE_CHANGE_NOT_ALLOWED										0x21
38*c2c66affSColin Finck #define FBT_HCI_LMP_RESPONSE_TIMEOUT										0x22
39*c2c66affSColin Finck #define FBT_HCI_LMP_ERROR_TRANSACTION_COLLISION								0x23
40*c2c66affSColin Finck #define FBT_HCI_LMP_PDU_NOT_ALLOWED											0x24
41*c2c66affSColin Finck #define FBT_HCI_ENCRYPTION_MODE_NOT_ACCEPTABLE								0x25
42*c2c66affSColin Finck #define FBT_HCI_LINK_KEY_CAN_NOT_BE_CHANGED									0x26
43*c2c66affSColin Finck #define FBT_HCI_REQUESTED_QOS_NOT_SUPPORTED									0x27
44*c2c66affSColin Finck #define FBT_HCI_INSTANT_PASSED												0x28
45*c2c66affSColin Finck #define FBT_HCI_PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED							0x29
46*c2c66affSColin Finck #define FBT_HCI_DIFFERENT_TRANSACTION_COLLISION								0x2a
47*c2c66affSColin Finck #define FBT_HCI_QOS_UNACCEPTABLE PARAMETER									0x2c
48*c2c66affSColin Finck #define FBT_HCI_QOS_REJECTED												0x2d
49*c2c66affSColin Finck #define FBT_HCI_CHANNEL_CLASSIFICATION_NOT_SUPPORTED						0x2e
50*c2c66affSColin Finck #define FBT_HCI_INSUFFICIENT_SECURITY										0x2f
51*c2c66affSColin Finck #define FBT_HCI_PARAMETER_OUT_OF_MANDATORY_RANGE							0x30
52*c2c66affSColin Finck #define FBT_HCI_ROLE_SWITCH_PENDING											0x32
53*c2c66affSColin Finck #define FBT_HCI_RESERVED_SLOT_VIOLATION										0x34
54*c2c66affSColin Finck #define FBT_HCI_ROLE_SWITCH_FAILED											0x35
55*c2c66affSColin Finck 
56*c2c66affSColin Finck #define FBT_HCI_SUCCESS(x) (x==FBT_HCI_ERROR_SUCCESS)
57*c2c66affSColin Finck 
58*c2c66affSColin Finck #endif // _FBT_HCI_ERROR_H
59