• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  *  Copyright 2014 The Android Open Source Project
4  *  Copyright 2002 - 2004 Open Interface North America, Inc. All rights
5  *                        reserved.
6  *
7  *  Licensed under the Apache License, Version 2.0 (the "License");
8  *  you may not use this file except in compliance with the License.
9  *  You may obtain a copy of the License at:
10  *
11  *  http://www.apache.org/licenses/LICENSE-2.0
12  *
13  *  Unless required by applicable law or agreed to in writing, software
14  *  distributed under the License is distributed on an "AS IS" BASIS,
15  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  *  See the License for the specific language governing permissions and
17  *  limitations under the License.
18  *
19  ******************************************************************************/
20 #ifndef _OI_STATUS_H
21 #define _OI_STATUS_H
22 /**
23  * @file
24  * This file contains status codes for BLUEmagic 3.0 software.
25  */
26 
27 #include "oi_stddefs.h"
28 
29 /** \addtogroup Misc Miscellaneous APIs */
30 /**@{*/
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /** test it **/
37 
38 /**
39  * OI_STATUS is 16 bits, so status codes can range from 0 to 66535, inclusive.
40  */
41 
42 typedef enum {
43   OI_STATUS_SUCCESS = 0, /**< function call succeeded alias for #OI_OK */
44   OI_OK = 0, /**< function call succeeded alias for #OI_STATUS_SUCCESS */
45   OI_STATUS_INVALID_PARAMETERS = 101, /**< invalid function input parameters */
46   OI_STATUS_NOT_IMPLEMENTED =
47       102, /**< attempt to use an unimplemented function */
48   OI_STATUS_NOT_INITIALIZED = 103, /**< data not initialized */
49   OI_STATUS_NO_RESOURCES =
50       104, /**< generic resource allocation failure status */
51   OI_STATUS_INTERNAL_ERROR = 105, /**< internal inconsistency */
52   OI_STATUS_OUT_OF_MEMORY = 106,  /**< generally, OI_Malloc failed */
53   OI_ILLEGAL_REENTRANT_CALL =
54       107, /**< violation of non-reentrant module policy */
55   OI_STATUS_INITIALIZATION_FAILED = 108, /**< module initialization failed */
56   OI_STATUS_INITIALIZATION_PENDING =
57       109, /**< inititialization not yet complete */
58   OI_STATUS_NO_SCO_SUPPORT =
59       110, /**< SCO operation rejected; system not configured for SCO */
60   OI_STATUS_OUT_OF_STATIC_MEMORY = 111, /**< static malloc failed */
61   OI_TIMEOUT = 112,                     /**< generic timeout */
62   OI_OS_ERROR = 113,                    /**< some operating system error */
63   OI_FAIL = 114,                        /**< generic failure */
64   OI_STRING_FORMAT_ERROR = 115,    /**< error in VarString formatting string */
65   OI_STATUS_PENDING = 116,         /**< The operation is pending. */
66   OI_STATUS_INVALID_COMMAND = 117, /**< The command was invalid. */
67   OI_BUSY_FAIL = 118,              /**< command rejected due to busy */
68   OI_STATUS_ALREADY_REGISTERED =
69       119, /**< The registration has already been performed. */
70   OI_STATUS_NOT_FOUND = 120,      /**< The referenced resource was not found. */
71   OI_STATUS_NOT_REGISTERED = 121, /**< not registered */
72   OI_STATUS_NOT_CONNECTED = 122,  /**< not connected */
73   OI_CALLBACK_FUNCTION_REQUIRED =
74       123, /**< A callback function parameter was required. */
75   OI_STATUS_MBUF_OVERFLOW =
76       124, /**< There is no room to add another buffer to an mbuf. */
77   OI_STATUS_MBUF_UNDERFLOW =
78       125, /**< There was an attempt to pull too many bytes from an mbuf. */
79   OI_STATUS_CONNECTION_EXISTS = 126, /**< connection exists */
80   OI_STATUS_NOT_CONFIGURED = 127,    /**< module not configured */
81   OI_LOWER_STACK_ERROR = 128, /**< An error was reported by lower stack API.
82                                  This is used for embedded platforms. */
83   OI_STATUS_RESET_IN_PROGRESS =
84       129, /**< Request failed/rejected because we're busy resetting. */
85   OI_STATUS_ACCESS_DENIED = 130, /**< Generic access denied error. */
86   OI_STATUS_DATA_ERROR = 131,    /**< Generic data error. */
87   OI_STATUS_INVALID_ROLE = 132,  /**< The requested role was invalid. */
88   OI_STATUS_ALREADY_CONNECTED =
89       133, /**< The requested connection is already established. */
90   OI_STATUS_PARSE_ERROR = 134,         /**< Parse error */
91   OI_STATUS_END_OF_FILE = 135,         /**< End of file */
92   OI_STATUS_READ_ERROR = 136,          /**< Generic read error */
93   OI_STATUS_WRITE_ERROR = 137,         /**< Generic write error */
94   OI_STATUS_NEGOTIATION_FAILURE = 138, /**< Error in negotiation */
95   OI_STATUS_READ_IN_PROGRESS = 139,    /**< A read is already in progress */
96   OI_STATUS_ALREADY_INITIALIZED =
97       140,                         /**< Initialization has already been done */
98   OI_STATUS_STILL_CONNECTED = 141, /**< The service cannot be shutdown because
99                                       there are still active connections. */
100   OI_STATUS_MTU_EXCEEDED = 142,    /**< The packet is too big */
101   OI_STATUS_LINK_TERMINATED = 143, /**< The link was terminated */
102   OI_STATUS_PIN_CODE_TOO_LONG =
103       144, /**< Application gave us a pin code that is too long */
104   OI_STATUS_STILL_REGISTERED = 145, /**< The service cannot be shutdown because
105                                        there are still active registrations. */
106   OI_STATUS_SPEC_VIOLATION =
107       146, /**< Some application behavior contrary to BT specifications */
108 
109   OI_STATUS_PSM_ALREADY_REGISTERED =
110       402, /**< L2CAP: The specified PSM has already been registered. */
111   OI_STATUS_INVALID_CID = 403, /**< L2CAP: CID is invalid or no longer valid
112                                   (connection terminated) */
113   OI_STATUS_CID_NOT_FOUND =
114       404, /**< L2CAP: CID does not represent a current connection */
115   OI_STATUS_CHANNEL_NOT_FOUND =
116       406, /**< L2CAP: CID does not represent a current connection */
117   OI_STATUS_PSM_NOT_FOUND = 407,     /**< L2CAP: PSM not found */
118   OI_STATUS_INVALID_STATE = 408,     /**< L2CAP: invalid state */
119   OI_STATUS_WRITE_IN_PROGRESS = 410, /**< L2CAP: write in progress */
120   OI_STATUS_INVALID_PACKET = 411,    /**< L2CAP: invalid packet */
121   OI_STATUS_SEND_COMPLETE = 412,     /**< L2CAP: send is complete */
122   OI_STATUS_INVALID_HANDLE = 414,    /**< L2CAP: handle is invalid */
123   OI_STATUS_GROUP_FULL =
124       418, /**< L2CAP: No more members can be added to the specified group. */
125   OI_STATUS_DEVICE_ALREADY_IN_GROUP =
126       423, /**< L2CAP: The device already exists in the group. */
127   OI_STATUS_DUPLICATE_GROUP =
128       425,                     /**< L2CAP: attempt to add more than one group */
129   OI_STATUS_EMPTY_GROUP = 426, /**< L2CAP: group is empty */
130   OI_STATUS_PACKET_NOT_FOUND = 427, /**< L2CAP: packet not found */
131   OI_STATUS_BUFFER_TOO_SMALL = 428, /**< L2CAP: The buffer size is too small. */
132   OI_STATUS_IDENTIFIER_NOT_FOUND = 429, /**< L2CAP: identifier not found */
133 
134   OI_L2CAP_DISCONNECT_LOWER_LAYER =
135       430, /**< L2CAP: The lower level forced a disconnect. */
136   OI_L2CAP_DISCONNECT_REMOTE_REQUEST =
137       431, /**< L2CAP: The remote device requested a disconnect. */
138   OI_L2CAP_GROUP_ADD_CONNECT_FAIL = 433, /**< L2CAP: Group add connect faiL */
139   OI_L2CAP_GROUP_REMOVE_FAILURE = 434,   /**< L2CAP: Group remove failure */
140   OI_L2CAP_DATA_WRITE_ERROR_LINK_TERM =
141       435, /**< L2CAP: Data write error LINK_TERM */
142   OI_L2CAP_DISCONNECT_LOCAL_REQUEST =
143       436, /**< L2CAP: Disconnect local request */
144 
145   OI_L2CAP_CONNECT_TIMEOUT = 437,    /**< L2CAP: Connect timeout */
146   OI_L2CAP_DISCONNECT_TIMEOUT = 439, /**< L2CAP: Disconnect timeout */
147   OI_L2CAP_PING_TIMEOUT = 440,       /**< L2CAP: Ping timeout */
148   OI_L2CAP_GET_INFO_TIMEOUT = 441,   /**< L2CAP: Get info timeout */
149   OI_L2CAP_INVALID_ADDRESS = 444,    /**< L2CAP: Invalid address */
150   OI_L2CAP_CMD_REJECT_RCVD =
151       445, /**< L2CAP: remote sent us 'command reject' response */
152 
153   OI_L2CAP_CONNECT_BASE = 450,    /**< L2CAP: Connect base */
154   OI_L2CAP_CONNECT_PENDING = 451, /**< L2CAP: Connect pending */
155   OI_L2CAP_CONNECT_REFUSED_INVALID_PSM =
156       452, /**< L2CAP: Connect refused invalid PSM */
157   OI_L2CAP_CONNECT_REFUSED_SECURITY =
158       453, /**< L2CAP: Connect refused security */
159   OI_L2CAP_CONNECT_REFUSED_NO_RESOURCES =
160       454, /**< L2CAP: Connect refused no resources */
161 
162   OI_L2CAP_CONFIG_BASE = 460, /**< L2CAP: Config base */
163   OI_L2CAP_CONFIG_FAIL_INVALID_PARAMETERS =
164       461, /**< L2CAP: Config fail invalid parameters */
165   OI_L2CAP_CONFIG_FAIL_NO_REASON = 462, /**< L2CAP: Config fail no reason */
166   OI_L2CAP_CONFIG_FAIL_UNKNOWN_OPTIONS =
167       463, /**< L2CAP: Config fail unknown options */
168 
169   OI_L2CAP_GET_INFO_BASE = 470,          /**< L2CAP: Get info base */
170   OI_L2CAP_GET_INFO_NOT_SUPPORTED = 471, /**< L2CAP: Get info not supported */
171   OI_L2CAP_MTU_EXCEEDED =
172       472,                    /**< L2CAP: The MTU of the channel was exceeded */
173   OI_L2CAP_INVALID_PSM = 482, /**< L2CAP: Invalid PSM */
174   OI_L2CAP_INVALID_MTU = 483, /**< L2CAP: Invalid MTU */
175   OI_L2CAP_INVALID_FLUSHTO = 484, /**< L2CAP: Invalid flush timeout */
176 
177   OI_HCI_NO_SUCH_CONNECTION =
178       601, /**< HCI: caller specified a non-existent connection handle */
179   OI_HCI_CB_LIST_FULL =
180       603, /**< HCI: callback list is full, cannot attempt to send command */
181   OI_HCI_EVENT_UNDERRUN =
182       605, /**< HCI: parsing event packet, premature end-of-parameters */
183   OI_HCI_UNKNOWN_EVENT_CODE =
184       607, /**< HCI: event received - event code is unknown */
185   OI_HCI_BAD_EVENT_PARM_LEN =
186       608, /**< HCI: event - parameter length is incorrect */
187   OI_HCI_CMD_QUEUE_FULL = 611, /**< HCI: command queue is full */
188   OI_HCI_SHORT_EVENT =
189       612, /**< HCI: event received, missing event code and/or parm len */
190   OI_HCI_TRANSMIT_NOT_READY = 613, /**< HCI: ACL/SCO transmit request failed -
191                                       busy or no buffers available */
192   OI_HCI_ORPHAN_SENT_EVENT =
193       614, /**< HCI: got spurious 'sent' event from transport layer */
194   OI_HCI_CMD_TABLE_ERROR =
195       615, /**< HCI: inconsistency in the internal command table */
196   OI_HCI_UNKNOWN_CMD_ID = 616, /**< HCI: HciApi Command - unknown command id */
197   OI_HCI_UNEXPECTED_EVENT =
198       619, /**< HCI: event received which only occurs in response to our cmd */
199   OI_HCI_EVENT_TABLE_ERROR =
200       620, /**< HCI: inconsistency in the internal event table */
201   OI_HCI_EXPECTED_EVENT_TIMOUT =
202       621, /**< HCI: timed out waiting for an expected event */
203   OI_HCI_NO_CMD_DESC_FOR_OPCODE = 622, /**< HCI: event opcode is not known */
204   OI_HCI_INVALID_OPCODE_ERROR = 623,   /**< HCI: command opcode is invalid */
205   OI_HCI_FLOW_CONTROL_DISABLED = 624,  /**< HCI: can not use host flow control
206                                           APIs if disabled in configuration */
207   OI_HCI_TX_COMPLETE =
208       625,               /**< HCI: packet delivery to Host Controler complete */
209   OI_HCI_TX_ERROR = 626, /**< HCI: failed to deliver packet to Host Controler */
210   OI_HCI_DEVICE_NOT_INITIALIZED = 627, /**< HCI: commands from upper layers
211                                           disallowed until device is up and
212                                           running */
213   OI_HCI_UNSUPPORTED_COMMAND =
214       628, /**< HCI: command requested is not supported by local device */
215   OI_HCI_PASSTHROUGH_ERROR =
216       629, /**< HCI: Error processing passthrough command */
217   OI_HCI_PASSTHROUGH_ALREADY_SET =
218       630,                      /**< HCI: Passthrough mode already enabled */
219   OI_HCI_RESET_FAILURE = 631,   /**< HCI: failed to reset the device/baseband */
220   OI_HCI_TRANSPORT_RESET = 632, /**< HCI: some operation failed because of a
221                                    reset in the transport */
222   OI_HCIERR_HCIIFC_INIT_FAILURE =
223       633, /**< HCI: failed to initialize transport layer interface */
224 
225   OI_HCIERR_FIRST_ERROR_VALUE = 701, /**< marker for first HCI protocol error */
226   OI_HCIERR_UNKNOWN_HCI_COMMAND = 701,        /**< HCI: protocol error 0x01 */
227   OI_HCIERR_NO_CONNECTION = 702,              /**< HCI: protocol error 0x02 */
228   OI_HCIERR_HARDWARE_FAILURE = 703,           /**< HCI: protocol error 0x03 */
229   OI_HCIERR_PAGE_TIMEOUT = 704,               /**< HCI: protocol error 0x04 */
230   OI_HCIERR_AUTHENTICATION_FAILURE = 705,     /**< HCI: protocol error 0x05 */
231   OI_HCIERR_KEY_MISSING = 706,                /**< HCI: protocol error 0x06 */
232   OI_HCIERR_MEMORY_FULL = 707,                /**< HCI: protocol error 0x07 */
233   OI_HCIERR_CONNECTION_TIMEOUT = 708,         /**< HCI: protocol error 0x08 */
234   OI_HCIERR_MAX_NUM_OF_CONNECTIONS = 709,     /**< HCI: protocol error 0x09 */
235   OI_HCIERR_MAX_NUM_OF_SCO_CONNECTIONS = 710, /**< HCI: protocol error 0x0A */
236   OI_HCIERR_ACL_CONNECTION_ALREADY_EXISTS =
237       711,                                 /**< HCI: protocol error 0x0B */
238   OI_HCIERR_COMMAND_DISALLOWED = 712,      /**< HCI: protocol error 0x0C */
239   OI_HCIERR_HOST_REJECTED_RESOURCES = 713, /**< HCI: protocol error 0x0D */
240   OI_HCIERR_HOST_REJECTED_SECURITY = 714,  /**< HCI: protocol error 0x0E */
241   OI_HCIERR_HOST_REJECTED_PERSONAL_DEVICE =
242       715,                                   /**< HCI: protocol error 0x0F */
243   OI_HCIERR_HOST_TIMEOUT = 716,              /**< HCI: protocol error 0x10 */
244   OI_HCIERR_UNSUPPORTED = 717,               /**< HCI: protocol error 0x11 */
245   OI_HCIERR_INVALID_PARAMETERS = 718,        /**< HCI: protocol error 0x12 */
246   OI_HCIERR_OTHER_END_USER_DISCONNECT = 719, /**< HCI: protocol error 0x13 */
247   OI_HCIERR_OTHER_END_LOW_RESOURCES = 720,   /**< HCI: protocol error 0x14 */
248   OI_HCIERR_OTHER_END_POWERING_OFF = 721,    /**< HCI: protocol error 0x15 */
249   OI_HCIERR_CONNECTION_TERMINATED_LOCALLY =
250       722,                                    /**< HCI: protocol error 0x16 */
251   OI_HCIERR_REPEATED_ATTEMPTS = 723,          /**< HCI: protocol error 0x17 */
252   OI_HCIERR_PAIRING_NOT_ALLOWED = 724,        /**< HCI: protocol error 0x18 */
253   OI_HCIERR_UNKNOWN_LMP_PDU = 725,            /**< HCI: protocol error 0x19 */
254   OI_HCIERR_UNSUPPORTED_REMOTE_FEATURE = 726, /**< HCI: protocol error 0x1A */
255   OI_HCIERR_SCO_OFFSET_REJECTED = 727,        /**< HCI: protocol error 0x1B */
256   OI_HCIERR_SCO_INTERVAL_REJECTED = 728,      /**< HCI: protocol error 0x1C */
257   OI_HCIERR_SCO_AIR_MODE_REJECTED = 729,      /**< HCI: protocol error 0x1D */
258   OI_HCIERR_INVALID_LMP_PARMS = 730,          /**< HCI: protocol error 0x1E */
259   OI_HCIERR_UNSPECIFIED_ERROR = 731,          /**< HCI: protocol error 0x1F */
260   OI_HCIERR_UNSUPPORTED_LMP_PARAMETERS = 732, /**< HCI: protocol error 0x20 */
261   OI_HCIERR_ROLE_CHANGE_NOT_ALLOWED = 733,    /**< HCI: protocol error 0x21 */
262   OI_HCIERR_LMP_RESPONSE_TIMEOUT = 734,       /**< HCI: protocol error 0x22 */
263   OI_HCIERR_LMP_ERROR_TRANS_COLLISION = 735,  /**< HCI: protocol error 0x23 */
264   OI_HCIERR_LMP_PDU_NOT_ALLOWED = 736,        /**< HCI: protocol error 0x24 */
265   OI_HCIERR_ENCRYPTION_MODE_NOT_ACCEPTABLE =
266       737,                                      /**< HCI: protocol error 0x25 */
267   OI_HCIERR_UNIT_KEY_USED = 738,                /**< HCI: protocol error 0x26 */
268   OI_HCIERR_QOS_NOT_SUPPORTED = 739,            /**< HCI: protocol error 0x27 */
269   OI_HCIERR_INSTANT_PASSED = 740,               /**< HCI: protocol error 0x28 */
270   OI_HCIERR_UNIT_KEY_PAIRING_UNSUPPORTED = 741, /**< HCI: protocol error 0x29 */
271   OI_HCIERR_DIFFERENT_TRANS_COLLISION = 742,    /**< HCI: protocol error 0x2A */
272   OI_HCIERR_RESERVED_2B = 743,                  /**< HCI: protocol error 0x2B */
273   OI_HCIERR_QOS_UNACCEPTABLE_PARAMETER = 744,   /**< HCI: protocol error 0x2C */
274   OI_HCIERR_QOS_REJECTED = 745,                 /**< HCI: protocol error 0x2D */
275   OI_HCIERR_CHANNEL_CLASSIFICATION_NS = 746,    /**< HCI: protocol error 0x2E */
276   OI_HCIERR_INSUFFICIENT_SECURITY = 747,        /**< HCI: protocol error 0x2F */
277   OI_HCIERR_PARM_OUT_OF_MANDATORY_RANGE = 748,  /**< HCI: protocol error 0x30 */
278   OI_HCIERR_RESERVED_31 = 749,                  /**< HCI: protocol error 0x31 */
279   OI_HCIERR_ROLE_SWITCH_PENDING = 750,          /**< HCI: protocol error 0x32 */
280   OI_HCIERR_RESERVED_33 = 751,                  /**< HCI: protocol error 0x33 */
281   OI_HCIERR_RESERVED_SLOT_VIOLATION = 752,      /**< HCI: protocol error 0x34 */
282   OI_HCIERR_ROLE_SWITCH_FAILED = 753,           /**< HCI: protocol error 0x35 */
283   OI_HCIERR_EIR_TOO_LARGE = 754,                /**< HCI: protocol error 0x36 */
284   OI_HCIERR_SSP_NOT_SUPPORTED_BY_HOST = 755,    /**< HCI: protocol error 0x37 */
285   OI_HCIERR_HOST_BUSY_PAIRING = 756,            /**< HCI: protocol error 0x38 */
286 
287   OI_HCIERR_UNKNOWN_ERROR = 757,    /**< HCI: unknown error code */
288   OI_HCIERR_LAST_ERROR_VALUE = 757, /**< marker for last HCI protocol error */
289 
290   OI_SDP_SPEC_ERROR = 800, /**< SDP: Base error status for mapping OI_STATUS
291                               codes to SDP errors */
292   OI_SDP_INVALID_SERVICE_RECORD_HANDLE =
293       (OI_SDP_SPEC_ERROR +
294        2), /**< SDP: protocol error Invalid Service Record Handle */
295   OI_SDP_INVALID_REQUEST_SYNTAX =
296       (OI_SDP_SPEC_ERROR +
297        3), /**< SDP: protocol error Invalid Request Syntax */
298   OI_SDP_INVALID_PDU_SIZE =
299       (OI_SDP_SPEC_ERROR + 4), /**< SDP: protocol error Invalid PDU Size */
300   OI_SDP_INVALID_CONTINUATION_STATE =
301       (OI_SDP_SPEC_ERROR +
302        5), /**< SDP: protocol error Invalid Continuation State */
303   OI_SDP_INSUFFICIENT_RESOURCES =
304       (OI_SDP_SPEC_ERROR +
305        6),            /**< SDP: protocol error Insufficient Resources */
306   OI_SDP_ERROR = 807, /**< SDP: server returned an error code */
307   OI_SDP_CORRUPT_DATA_ELEMENT =
308       808, /**< SDP: Invalid or corrupt data element representation */
309   OI_SDP_SERVER_NOT_CONNECTED =
310       810, /**< SDP: Attempt to disconnect from an unconnected server */
311   OI_SDP_ACCESS_DENIED = 811, /**< SDP: Server denied access to server */
312   OI_SDP_ATTRIBUTES_OUT_OF_ORDER =
313       812, /**< SDP: Attributes in attribute list not in ascending order */
314   OI_SDP_DEVICE_DOES_NOT_SUPPORT_SDP =
315       813, /**< SDP: Tried to connect to a device that does not support SDP */
316   OI_SDP_NO_MORE_DATA =
317       815, /**< SDP: Server does not have more continuation data */
318   OI_SDP_REQUEST_PARAMS_TOO_LONG =
319       816, /**< SDP: Parameters for a request exceed the L2CAP buffer size */
320   OI_SDP_REQUEST_PENDING = 817, /**< SDP: Cannot make a request when another
321                                    request is being processed */
322   OI_SDP_SERVER_CONNECT_FAILED =
323       819, /**< SDP: Failed attempt to connect to an SDP server */
324   OI_SDP_SERVER_TOO_MANY_CONNECTIONS =
325       821, /**< SDP: Exceeded maximum number of simultaneous server connections
326             */
327   OI_SDP_NO_MATCHING_SERVICE_RECORD =
328       823, /**< SDP: No service record matched the UUID list */
329   OI_SDP_PARTIAL_RESPONSE = 824, /**< SDP: Internal use only */
330   OI_SDP_ILLEGAL_ARGUMENT =
331       825, /**< SDP: Illegal argument passed to an SDP function */
332   OI_SDP_ATTRIBUTE_NOT_FOUND =
333       826, /**< SDP: A requested attribute was not found in a service record */
334   OI_SDP_DATABASE_OUT_OF_RESOURCES =
335       827,                /**< SDP: server database is out of memory */
336   OI_SDP_SHORT_PDU = 829, /**< SDP: Not enough bytes in the packet */
337   OI_SDP_TRANSACTION_ID_MISMATCH =
338       830, /**< SDP: Transaction Id was not as expected */
339   OI_SDP_UNEXPECTED_RESPONSE_PDU_ID =
340       831, /**< SDP: Did not expect this response PDU */
341   OI_SDP_REQUEST_TIMEOUT =
342       832, /**< SDP: Did not get a response within the timeout period */
343   OI_SDP_INVALID_RESPONSE_SYNTAX =
344       833, /**< SDP: Response is not correctly formatted */
345   OI_SDP_CONNECTION_TIMEOUT =
346       834, /**< SDP: Connection attempt timed out at a lower layer */
347   OI_SDP_RESPONSE_DATA_ERROR =
348       835, /**< SDP: Response to a service request appears to be corrupt */
349   OI_SDP_TOO_MANY_ATTRIBUTE_BYTES =
350       836, /**< SDP: Response contained more bytes than requested. */
351   OI_SDP_TOO_MANY_SERVICE_RECORDS =
352       837, /**< SDP: Response contained more service records than requested. */
353   OI_SDP_INVALID_CONNECTION_ID =
354       838, /**< SDP: Invalid connection ID in an SDP request */
355   OI_SDP_CANNOT_SET_ATTRIBUTE =
356       839, /**< SDP: Attempt to set a dynamic attribute value failed */
357   OI_SDP_BADLY_FORMED_ATTRIBUTE_VALUE =
358       840, /**< SDP: An attribute value has the wrong type or structure */
359   OI_SDP_NO_ATTRIBUTE_LIST_TO_REMOVE =
360       841, /**< SDP: Attempt to remove a non-existent attribute list from a
361               service record */
362   OI_SDP_ATTRIBUTE_LIST_ALREADY_ADDED = 842, /**< SDP: An attribute list has
363                                                 already been added to the
364                                                 service record */
365   OI_SDP_DATA_ELEMENT_TRUNCATED =
366       843, /**< SDP: Data element truncated (too few bytes) */
367 
368   OI_RFCOMM_WRITE_IN_PROGRESS = 901,     /**< RFCOMM: Write in progress */
369   OI_RFCOMM_INVALID_BAUDRATE = 903,      /**< RFCOMM: Invalid baudrate */
370   OI_RFCOMM_INVALID_DATABIT = 904,       /**< RFCOMM: Invalid databit */
371   OI_RFCOMM_INVALID_STOPBIT = 905,       /**< RFCOMM: Invalid stopbit */
372   OI_RFCOMM_INVALID_PARITY = 906,        /**< RFCOMM: Invalid parity */
373   OI_RFCOMM_INVALID_PARITYTYPE = 907,    /**< RFCOMM: Invalid paritytype */
374   OI_RFCOMM_INVALID_FLOWCONTROL = 908,   /**< RFCOMM: Invalid flowcontrol */
375   OI_RFCOMM_SESSION_EXISTS = 909,        /**< RFCOMM: Session exists */
376   OI_RFCOMM_INVALID_CHANNEL = 910,       /**< RFCOMM: Invalid channel */
377   OI_RFCOMM_DLCI_EXISTS = 911,           /**< RFCOMM: DLCI exists */
378   OI_RFCOMM_LINK_NOT_FOUND = 912,        /**< RFCOMM: Link not found */
379   OI_RFCOMM_REMOTE_REJECT = 913,         /**< RFCOMM: Remote reject */
380   OI_RFCOMM_TEST_IN_PROGRESS = 915,      /**< RFCOMM: Test in progress */
381   OI_RFCOMM_SESSION_NOT_FOUND = 916,     /**< RFCOMM: Session not found */
382   OI_RFCOMM_INVALID_PACKET = 917,        /**< RFCOMM: Invalid packet */
383   OI_RFCOMM_FRAMESIZE_EXCEEDED = 918,    /**< RFCOMM: Framesize exceeded */
384   OI_RFCOMM_INVALID_DLCI = 920,          /**< RFCOMM: Invalid dlci */
385   OI_RFCOMM_SERVER_NOT_REGISTERED = 921, /**< RFCOMM: Server not registered */
386   OI_RFCOMM_CREDIT_ERROR = 922,          /**< RFCOMM: Credit error */
387   OI_RFCOMM_NO_CHANNEL_NUMBER = 923,     /**< RFCOMM: No channel number */
388   OI_RFCOMM_QUERY_IN_PROGRESS = 924,     /**< RFCOMM: Query in progress */
389   OI_RFCOMM_SESSION_SHUTDOWN = 925,      /**< RFCOMM: Session shutdown */
390   OI_RFCOMM_LOCAL_DEVICE_DISCONNECTED =
391       926, /**< RFCOMM: Local device disconnected */
392   OI_RFCOMM_REMOTE_DEVICE_DISCONNECTED =
393       927, /**< RFCOMM: Remote device disconnected */
394   OI_RFCOMM_OUT_OF_SERVER_CHANNELS = 928, /**< RFCOMM: Out of server channels */
395 
396   OI_DISPATCH_INVALID_CB_HANDLE =
397       1001, /**< Dispatcher was handed an invalid callback handle */
398   OI_DISPATCH_TABLE_OVERFLOW = 1002, /**< Dispatcher table is full */
399 
400   OI_TEST_UNKNOWN_TEST = 1101, /**< TEST: Unknown test */
401   OI_TEST_FAIL = 1102,         /**< TEST: Fail */
402 
403   OI_HCITRANS_CANNOT_CONNECT_TO_DEVICE =
404       1201, /**< TRANSPORT: Cannot connect to device */
405   OI_HCITRANS_BUFFER_TOO_SMALL = 1203,   /**< TRANSPORT: Buffer too small */
406   OI_HCITRANS_NULL_DEVICE_HANDLE = 1204, /**< TRANSPORT: Null device handle */
407   OI_HCITRANS_IO_ERROR = 1205,           /**< TRANSPORT: IO error */
408   OI_HCITRANS_DEVICE_NOT_READY = 1206,   /**< TRANSPORT: Device not ready */
409   OI_HCITRANS_FUNCTION_NOT_SUPPORTED =
410       1207,                            /**< TRANSPORT: Function not supporteD */
411   OI_HCITRANS_ACCESS_DENIED = 1209,    /**< TRANSPORT: win32 */
412   OI_HCITRANS_ACL_DATA_ERROR = 1210,   /**< TRANSPORT: ACL data error */
413   OI_HCITRANS_SCO_DATA_ERROR = 1211,   /**< TRANSPORT: SCO data error */
414   OI_HCITRANS_EVENT_DATA_ERROR = 1212, /**< TRANSPORT: HCI event data error */
415   OI_HCITRANS_INTERNAL_ERROR =
416       1214, /**< TRANSPORT: Internal error in the transport */
417   OI_HCITRANS_LINK_NOT_ACTIVE =
418       1215, /**< TRANSPORT: Link to the device is not currently active */
419   OI_HCITRANS_INITIALIZING = 1216, /**< TRANSPORT: Transport is initializing */
420 
421   OI_DEVMGR_NO_CONNECTION = 1301,  /**< DEVMGR: No connection */
422   OI_DEVMGR_HARDWARE_ERROR = 1305, /**< DEVMGR: error reported by HCI */
423   OI_DEVMGR_PENDING_CONNECT_LIST_FULL =
424       1307, /**< DEVMGR: Pending connect list full */
425   OI_DEVMGR_CONNECTION_LIST_FULL = 1309, /**< DEVMGR: Connection list full */
426   OI_DEVMGR_NO_SUCH_CONNECTION = 1310,   /**< DEVMGR: No such connection */
427   OI_DEVMGR_INQUIRY_IN_PROGRESS = 1311,  /**< DEVMGR: Inquiry in progress */
428   OI_DEVMGR_PERIODIC_INQUIRY_ACTIVE =
429       1312, /**< DEVMGR: Periodic inquiry active */
430   OI_DEVMGR_NO_INQUIRIES_ACTIVE =
431       1313, /**< DEVMGR: can not cancel/exit if not active */
432   OI_DEVMGR_DUPLICATE_CONNECTION = 1314, /**< DEVMGR: internal error */
433   OI_DEVMGR_DUPLICATE_EVENT_CALLBACK =
434       1316, /**< DEVMGR: attempt to register same callback twice */
435   OI_DEVMGR_EVENT_CALLBACK_LIST_FULL =
436       1317, /**< DEVMGR: can not register event callback, list is full */
437   OI_DEVMGR_EVENT_CALLBACK_NOT_FOUND =
438       1318, /**< DEVMGR: attempt to unregister callback failed */
439   OI_DEVMGR_BUSY =
440       1319, /**< DEVMGR: some operations can only execute one at a time */
441   OI_DEVMGR_ENUM_UNEXPECTED_INQ_COMPLETE = 1320, /**< DEVMGR: inquiry complete
442                                                     event in inappropriate
443                                                     enumeration state */
444   OI_DEVMGR_ENUM_UNEXPECTED_INQ_RESULT = 1321, /**< DEVMGR: inquiry result event
445                                                   in inappropriate enumeration
446                                                   state */
447   OI_DEVMGR_ENUM_DATABASE_FULL = 1322, /**< DEVMGR: device enumeration, database
448                                           is full, couldn't add a new device */
449   OI_DEVMGR_ENUM_INQUIRIES_OVERLAP = 1323, /**< DEVMGR: device enumeration,
450                                               periodic inquiries occurring too
451                                               close together */
452   OI_DEVMGR_UNKNOWN_LINK_TYPE =
453       1324, /**< DEVMGR: HCI connect request with unkown link type */
454   OI_DEVMGR_PARAM_IO_ACTIVE = 1325, /**< DEVMGR: request for parameter
455                                        read/write while param read/write active
456                                        */
457   OI_DEVMGR_UNKNOWN_IAC_LAP = 1326, /**< DEVMGR: unrecognized IAC LAP */
458   OI_DEVMGR_SCO_ALREADY_REGISTERED =
459       1327, /**< DEVMGR: only one application can use SCO */
460   OI_DEVMGR_SCO_NOT_REGISTERED =
461       1328, /**< DEVMGR: SCO applications must register before using the API */
462   OI_DEVMGR_SCO_WITHOUT_ACL = 1329, /**< DEVMGR: Got SCO connection but there is
463                                        no underlying ACL connection */
464   OI_DEVMGR_NO_SUPPORT =
465       1330, /**< DEVMGR: Request is not supported by the device */
466   OI_DEVMGR_WRITE_POLICY_FAILED = 1331, /**< DEVMGR: connection attempt failed -
467                                            unable to write link policy */
468   OI_DEVMGR_NOT_IN_MASTER_MODE = 1332,  /**< DEVMGR: OI_DEVMGR EndMasterMode
469                                            without prior
470                                            OI_DEVMGR_BeginMasterMode */
471   OI_DEVMGR_POLICY_VIOLATION = 1333, /**< DEVMGR: low-power request is rejected
472                                         - link policy does not allow it */
473   OI_DEVMGR_BUSY_TIMEOUT = 1334, /**< DEVMGR: queued operation timed out while
474 in the queue; \n
475 timeout configurable via @ref OI_CONFIG_DEVMGR::connectQueueTimeoutSecs
476 "connectQueueTimeoutSecs" */
477   OI_DEVMGR_REENCRYPT_FAILED =
478       1335, /**< DEVMGR: failed to re-encrypt link after role switch */
479   OI_DEVMGR_ROLE_POLICY_CONFLICT =
480       1336, /**< DEVMGR: requested role conflicts with current policy */
481   OI_DEVMGR_BAD_INTERVAL = 1337, /**< DEVMGR: current linkTO outside range of
482                                     requested min/max interval */
483   OI_DEVMGR_INVALID_SCO_HANDLE =
484       1338, /**< DEVMGR: HCI SCO event, invalid handle */
485   OI_DEVMGR_CONNECTION_OVERLAP = 1339, /**< DEVMGR: Connection failed due to
486                                           race condition with remote side */
487   OI_DEVMGR_ORPHAN_SUBRATE_COMPLETE =
488       1340, /**< DEVMGR: sniff subrate complete, but no callback */
489   OI_DEVMGR_EIR_RESPONSE_2_LARGE =
490       1341, /**< DEVMGR: eir builder, response length would exceed spec max */
491 
492   OI_SECMGR_NO_POLICY =
493       1401, /**< SECMGR: no security policy has been established */
494   OI_SECMGR_INTERNAL_ERROR = 1402, /**< SECMGR: internal inconsistency */
495   OI_SECMGR_ORPHANED_CALLBACK =
496       1403, /**< SECMGR: we've been called back, but CB context is gone */
497   OI_SECMGR_BUSY =
498       1404, /**< SECMGR: configure and access request cannot be concurrent */
499   OI_SECMGR_DEVICE_NOT_TRUSTED =
500       1405, /**< SECMGR: l2cap access denied - device is not trusted */
501   OI_SECMGR_DEVICE_ENCRYPT_FAIL =
502       1407, /**< SECMGR: l2cap access denied - failed to start encryption */
503   OI_SECMGR_DISCONNECTED_FAIL =
504       1408, /**< SECMGR: l2cap access denied - disconnected */
505   OI_SECMGR_ACCESS_PENDING =
506       1409, /**< SECMGR: l2cap access request is still pending  */
507   OI_SECMGR_PIN_CODE_TOO_SHORT = 1410, /**< SECMGR: Higher-layer process gave us
508                                           a pin code that is too short */
509   OI_SECMGR_UNKNOWN_ENCRYPT_VALUE = 1411, /**< SECMGR: got EncryptionChange
510                                              event, unknown encryption enable
511                                              value */
512   OI_SECMGR_INVALID_POLICY = 1412, /**< SECMGR: the specified security policy is
513                                       not valid for security mode */
514   OI_SECMGR_AUTHORIZATION_FAILED =
515       1413, /**< SECMGR: device authorization failed */
516   OI_SECMGR_ENCRYPTION_FAILED = 1414, /**< SECMGR: device encryption failed */
517   OI_SECMGR_UNIT_KEY_UNSUPPORTED =
518       1415, /**< SECMGR: authentication failed due to non-support of unit keys
519              */
520   OI_SECMGR_NOT_REGISTERED =
521       1416, /**< SECMGR: required registrations have not yet occurred */
522   OI_SECMGR_ILLEGAL_WRITE_SSP_MODE =
523       1417, /**< SECMGR: 2.1 HCI spec does not allow SSP mode to be disabled */
524   OI_SECMGR_INVALID_SEC_LEVEL =
525       1418, /**< SECMGR: security level for a service is not a valid value */
526   OI_SECMGR_INSUFFICIENT_LINK_KEY = 1419, /**< SECMGR: link key type is not
527                                              sufficient to meet service
528                                              requirements */
529   OI_SECMGR_INVALID_KEY_TYPE =
530       1420, /**< SECMGR: link key type is not a valid value */
531   OI_SECMGR_SSP_NOT_ENCRYPTED =
532       1421, /**< SECMGR: ssp required encryption on incoming link */
533   OI_SECMGR_ORPHAN_EVENT = 1422, /**< SECMGR: some HCI security event unrelated
534                                     to current processes */
535   OI_SECMGR_NOT_BONDABLE = 1423, /**< SECMGR: not in bondable mode */
536 
537   OI_TCS_INVALID_ELEMENT_TYPE = 1602, /**< TCS: element type is invalid */
538   OI_TCS_INVALID_PACKET = 1603,       /**< TCS: packet is invalide */
539   OI_TCS_CALL_IN_PROGRESS = 1604,     /**< TCS: call is in progress */
540   OI_TCS_NO_CALL_IN_PROGRESS = 1605,  /**< TCS: no call in progress */
541 
542   OI_OBEX_CONTINUE = 1701, /**< OBEX: Continue processing OBEX request */
543   OI_OBEX_COMMAND_ERROR =
544       1702, /**< OBEX: An unrecognized OBEX command opcode */
545   OI_OBEX_CONNECTION_TIMEOUT =
546       1703, /**< OBEX: Timeout waiting for a response to a request */
547   OI_OBEX_CONNECT_FAILED =
548       1704, /**< OBEX: An OBEX connection request did not succeed */
549   OI_OBEX_DISCONNECT_FAILED = 1705, /**< OBEX: A disconnect failed probably
550                                        because the connection did not exist */
551   OI_OBEX_ERROR = 1706,             /**< OBEX: Unspecified OBEX error */
552   OI_OBEX_INCOMPLETE_PACKET = 1707, /**< OBEX: Packet too short or corrupt */
553   OI_OBEX_LENGTH_REQUIRED =
554       1708, /**< OBEX: Length header required in OBEX command */
555   OI_OBEX_NOT_CONNECTED = 1709, /**< OBEX: No connection to OBEX server */
556   OI_OBEX_NO_MORE_CONNECTIONS =
557       1710, /**< OBEX: Reached max connections limit */
558   OI_OBEX_OPERATION_IN_PROGRESS =
559       1711, /**< OBEX: Another operation is still in progress on a connection */
560   OI_OBEX_PUT_RESPONSE_ERROR =
561       1712, /**< OBEX: An error in the response to a PUT command */
562   OI_OBEX_GET_RESPONSE_ERROR =
563       1713, /**< OBEX: An error in the response to a GET command */
564   OI_OBEX_REQUIRED_HEADER_NOT_FOUND =
565       1714, /**< OBEX: packet was missing a required header */
566   OI_OBEX_SERVICE_UNAVAILABLE =
567       1715, /**< OBEX: Unown OBEX target or required service */
568   OI_OBEX_TOO_MANY_HEADER_BYTES =
569       1716, /**< OBEX: Headers will not fit in single OBEX packet */
570   OI_OBEX_UNKNOWN_COMMAND = 1717,     /**< OBEX: Unrecognized OBEX command */
571   OI_OBEX_UNSUPPORTED_VERSION = 1718, /**< OBEX: Version mismatch */
572   OI_OBEX_CLIENT_ABORTED_COMMAND =
573       1719,                  /**< OBEX: server received abort command */
574   OI_OBEX_BAD_PACKET = 1720, /**< OBEX: Any malformed OBEX packet */
575   OI_OBEX_BAD_REQUEST =
576       1721, /**< OBEX: Maps to OBEX response of the same name */
577   OI_OBEX_OBJECT_OVERFLOW = 1723, /**< OBEX: Too many bytes received. */
578   OI_OBEX_NOT_FOUND = 1724, /**< OBEX: Maps to obex response of same name */
579   OI_OBEX_ACCESS_DENIED =
580       1735, /**< OBEX: Object could not be read or written. */
581   OI_OBEX_VALUE_NOT_ACCEPTABLE =
582       1736, /**< OBEX: Value in a command was not in the acceptable range. */
583   OI_OBEX_PACKET_OVERFLOW =
584       1737, /**< OBEX: Buffer will not fit in a single OBEX packet. */
585   OI_OBEX_NO_SUCH_FOLDER =
586       1738, /**< OBEX: Error returned by a setpath operation. */
587   OI_OBEX_NAME_REQUIRED =
588       1739, /**< OBEX: Name must be non-null and non-empty. */
589   OI_OBEX_PASSWORD_TOO_LONG =
590       1740, /**< OBEX: Password exceeds implementation imposed length limit. */
591   OI_OBEX_PRECONDITION_FAILED = 1741, /**< OBEX: response Precondition Failed */
592   OI_OBEX_UNAUTHORIZED = 1742, /**< OBEX: authentication was not successful. */
593   OI_OBEX_NOT_IMPLEMENTED = 1743, /**< OBEX: Unimplemented feature. */
594   OI_OBEX_INVALID_AUTH_DIGEST =
595       1744, /**< OBEX: An authentication digest was bad. */
596   OI_OBEX_INVALID_OPERATION =
597       1745, /**< OBEX: Operation not allowed at this time. */
598   OI_OBEX_DATABASE_FULL = 1746,   /**< OBEX: Sync database full. */
599   OI_OBEX_DATABASE_LOCKED = 1747, /**< OBEX: Sync database locked. */
600   OI_OBEX_INTERNAL_SERVER_ERROR =
601       1748, /**< OBEX: response Internal Server Error */
602   OI_OBEX_UNSUPPORTED_MEDIA_TYPE =
603       1749,                       /**< OBEX: response Unsupported Media Type */
604   OI_OBEX_PARTIAL_CONTENT = 1750, /**< OBEX: response Partial Content */
605   OI_OBEX_METHOD_NOT_ALLOWED = 1751, /**< OBEX: response Method Not Allowed */
606   OI_OBEXSRV_INCOMPLETE_GET = 1752,  /**< OBEX: Indicates to a GET handler that
607                                         the request phase is still in progress */
608   OI_OBEX_FOLDER_BROWSING_NOT_ALLOWED = 1753, /**< OBEX: Indicates that an FTP
609                                                  server does not allow folder
610                                                  browsing */
611   OI_OBEX_SERVER_FORCED_DISCONNECT =
612       1754, /**< OBEX: connection was forcibly terminated by the server */
613   OI_OBEX_OFS_ERROR = 1755, /**< OBEX: OPP object file system error occurred */
614   OI_OBEX_FILEOP_ERROR =
615       1756, /**< OBEX: FTP/PBAP file operation system error occurred */
616   OI_OBEX_USERID_TOO_LONG =
617       1757, /**< OBEX: User Id exceeds spec limited length limit. */
618 
619   OI_HANDSFREE_EVENT_REPORTING_DISABLED =
620       1801,                          /**< HANDSFREE: Event reporting disabled */
621   OI_HANDSFREE_NOT_CONNECTED = 1802, /**< HANDSFREE: Not connected */
622   OI_HANDSFREE_SERVICE_NOT_STARTED = 1803, /**< HANDSFREE: Cannot connect to
623                                               handsfree AG if handsfree service
624                                               not started */
625   OI_HANDSFREE_AG_SERVICE_NOT_STARTED =
626       1804, /**< HANDSFREE: Cannot connect to handsfree device if handsfree AG
627                service not started */
628   OI_HANDSFREE_COMMAND_IN_PROGRESS =
629       1805, /**< HANDSFREE: Cannot accept a command at this time */
630   OI_HANDSFREE_AUDIO_ALREADY_CONNECTED =
631       1806, /**< HANDSFREE: Audio is already connected */
632   OI_HANDSFREE_AUDIO_NOT_CONNECTED =
633       1807, /**< HANDSFREE: Audio is not connected */
634   OI_HANDSFREE_FEATURE_NOT_SUPPORTED = 1808, /**< HANDSFREE: Local or remote
635                                                 feature not supported for
636                                                 requested command */
637 
638   OI_HEADSET_SERVICE_NOT_STARTED = 1901, /**< HEADSET: Cannot connect to headset
639                                             AG if headset service not started */
640   OI_HEADSET_AG_SERVICE_NOT_STARTED = 1902, /**< HEADSET: Cannot connect to
641                                                headset device if headset AG
642                                                service not started */
643   OI_HEADSET_COMMAND_IN_PROGRESS =
644       1903, /**< HEADSET: Cannot accept a command at this time */
645 
646   OI_BNEP_INVALID_MTU =
647       2001, /**< BNEP: The remote device cannot support the minimum BNEP MTU */
648   OI_BNEP_SETUP_TIMEOUT = 2002, /**< BNEP: The setup request timed out. */
649   OI_BNEP_SERVICE_NOT_REGISTERED =
650       2003, /**< BNEP: The requested service was not found. */
651   OI_BNEP_INVALID_HANDLE =
652       2004, /**< BNEP: The specified connection handle is not valid. */
653   OI_BNEP_RESPONSE_TIMEOUT =
654       2005, /**< BNEP: The timer for receiving a response has expired. */
655   OI_BNEP_INVALID_CONNECTION = 2006, /**< BNEP: Invalid connection */
656   OI_BNEP_INVALID_FILTER = 2007, /**< BNEP: The supplied filter was invalid. */
657   OI_BNEP_CONNECTION_EXISTS =
658       2008, /**< BNEP: An attempt was made to create a duplicate connection. */
659   OI_BNEP_NOT_INITIALIZED = 2009, /**< BNEP: Init has not been called */
660   OI_BNEP_CONNECT_BASE = 2010,    /**< BNEP: connection response codes */
661   OI_BNEP_CONNECT_FAILED_INVALID_DEST_UUID =
662       2011, /**< BNEP: connect response code Invalid Dest UUID */
663   OI_BNEP_CONNECT_FAILED_INVALID_SOURCE_UUID =
664       2012, /**< BNEP: connect response code Invalid Source UUID */
665   OI_BNEP_CONNECT_FAILED_INVALID_UUID_SIZE =
666       2013, /**< BNEP: connect response code Invalid UUID Size */
667   OI_BNEP_CONNECT_FAILED_NOT_ALLOWED =
668       2014, /**< BNEP: connect response code Not Allowed */
669   OI_BNEP_FILTER_NET_BASE = 2020, /**< BNEP: filter response codes */
670   OI_BNEP_FILTER_NET_UNSUPPORTED_REQUEST =
671       2021, /**< BNEP: filter response code Unsupported Request */
672   OI_BNEP_FILTER_NET_FAILED_INVALID_PROTOCOL_TYPE =
673       2022, /**< BNEP: filter response code Invalid Protocol Type */
674   OI_BNEP_FILTER_NET_FAILED_MAX_LIMIT_REACHED =
675       2023, /**< BNEP: filter response code Max Limit Reached */
676   OI_BNEP_FILTER_NET_FAILED_SECURITY =
677       2024,                         /**< BNEP: filter response code Security */
678   OI_BNEP_FILTER_MULTI_BASE = 2030, /**< BNEP: multicast response codes */
679   OI_BNEP_FILTER_MULTI_UNSUPPORTED_REQUEST =
680       2031, /**< BNEP: multicast response code Unsupported Request */
681   OI_BNEP_FILTER_MULTI_FAILED_INVALID_ADDRESS =
682       2032, /**< BNEP: multicast response code Invalid Address */
683   OI_BNEP_FILTER_MULTI_FAILED_MAX_LIMIT_REACHED =
684       2033, /**< BNEP: multicast response code Max Limit Reached */
685   OI_BNEP_FILTER_MULTI_FAILED_SECURITY =
686       2034, /**< BNEP: multicast response code Security */
687   OI_BNEP_LOCAL_DEVICE_MUST_BE_CENTRAL =
688       2040, /**< BNEP: Device must be central of the piconet for this function
689              */
690   OI_BNEP_PACKET_FILTERED_OUT =
691       2041, /**< BNEP: Packet did not pass current filters */
692 
693   OI_NETIFC_UP_FAILED =
694       2101, /**< NETIFC: Could not bring up network interface */
695   OI_NETIFC_COULD_NOT_CREATE_THREAD =
696       2102, /**< NETIFC: Network interface could not create a read thread */
697   OI_NETIFC_INITIALIZATION_FAILED =
698       2103, /**< NETIFC: Error in network interface initialization */
699   OI_NETIFC_INTERFACE_ALREADY_UP =
700       2104, /**< NETIFC: Network interface is already up */
701   OI_NETIFC_INTERFACE_NOT_UP = 2105, /**< NETIFC: Network interface is not up */
702   OI_NETIFC_PACKET_TOO_BIG = 2106,   /**< NETIFC: The packet is too big */
703 
704   OI_PAN_ROLE_ALREADY_REGISTERED =
705       2201, /**< PAN: This PAN role was already registered */
706   OI_PAN_ROLE_NOT_ALLOWED =
707       2202, /**< PAN: The PAN role is not currently allowed */
708   OI_PAN_INCOMPATIBLE_ROLES = 2203, /**< PAN: Only certain local and remote role
709                                        combinations are permitted */
710   OI_PAN_INVALID_ROLE =
711       2204, /**< PAN: Role specified is not one the defined PAN roles */
712   OI_PAN_CONNECTION_IN_PROGRESS =
713       2205, /**< PAN: A PAN connection is currently being established */
714   OI_PAN_USER_ALREADY_CONNECTED =
715       2206, /**< PAN: PAN user role only allows a single connection */
716   OI_PAN_DEVICE_CONNECTED =
717       2207, /**< PAN: A PAN connection already exists to specified device */
718 
719   OI_CODEC_SBC_NO_SYNCWORD = 2301, /**< CODEC: Couldn't find an SBC SYNCWORD */
720   OI_CODEC_SBC_NOT_ENOUGH_HEADER_DATA =
721       2302, /**< CODEC: Not enough data provided to decode an SBC header */
722   OI_CODEC_SBC_NOT_ENOUGH_BODY_DATA =
723       2303, /**< CODEC: Decoded the header, but not enough data to contain the
724                rest of the frame */
725   OI_CODEC_SBC_NOT_ENOUGH_AUDIO_DATA =
726       2304, /**< CODEC: Not enough audio data for this frame */
727   OI_CODEC_SBC_CHECKSUM_MISMATCH =
728       2305, /**< CODEC: The frame header didn't match the checksum */
729   OI_CODEC_SBC_PARTIAL_DECODE =
730       2306, /**< CODEC: Decoding was successful, but frame data still remains.
731                Next call will provide audio without consuming input data. */
732 
733   OI_FIFOQ_QUEUE_NOT_ALIGNED = 2401, /**< FIFOQ: queue must be 32-bit aligned */
734   OI_FIFOQ_INVALID_Q = 2402, /**< FIFOQ: queue parameter is not a valid queue */
735   OI_FIFOQ_BUF_TOO_LARGE =
736       2403, /**< FIFOQ: attempt to queue a buffer which is too large */
737   OI_FIFOQ_FULL = 2404, /**< FIFOQ: enqueue() failed, queue is full */
738   OI_FIFOQ_NOT_ALLOCATED =
739       2405, /**< FIFOQ: Enqueue QBuf() failed, buffer not allocated */
740   OI_FIFOQ_INVALID_DATA_PTR =
741       2406, /**< FIFOQ: Enqueue QBuf() failed, data pointer does not match */
742 
743   OI_HID_HOST_SERVICE_NOT_STARTED = 2601, /**< HID: Cannot connect to a HID
744                                              device unless HID host is started
745                                              */
746   OI_HID_DEVICE_SERVICE_NOT_STARTED =
747       2602, /**< HID: Cannot connect to a HID host unless HID device is started
748              */
749 
750   OI_AT_ERROR = 2701,        /**< AT: ERROR response */
751   OI_AT_NO_CARRIER = 2702,   /**< AT: NO CARRIER response */
752   OI_AT_BUSY = 2703,         /**< AT: BUSY response */
753   OI_AT_NO_ANSWER = 2704,    /**< AT: NO ANSWER response */
754   OI_AT_DELAYED = 2705,      /**< AT: DELAYED response */
755   OI_AT_REJECTLISTED = 2706, /**< AT: REJECTLISTED response */
756   OI_AT_CME_ERROR = 2707,    /**< AT: +CME ERROR response */
757   OI_AT_CMS_ERROR = 2708,    /**< AT: +CMS ERROR response */
758 
759   OI_BLST_CHARACTER_TIMEOUT = 2801, /**< BLST: Timeout expired while waiting for
760                                        a character from the client. */
761   OI_BLST_ACKNOWLDGE_TIMEOUT =
762       2802, /**< BLST: Timeout expired while waiting for event acknowledgment
763                from the client */
764   OI_BLST_TX_NOT_READY = 2803, /**< BLST: BLST is not ready to send a BHAPI
765                                   message to the client. */
766   OI_BLST_TX_BUSY = 2804,      /**< BLST: BLST transmit buffer is in use. */
767 
768   OI_AVDTP_CONNECTION_SEQ_ERROR =
769       2901, /**< AVDTP: sequencing of signalling/media channel connections
770                broken. */
771   OI_AVDTP_OUT_OF_RESOURCES = 2902, /**< AVDTP: Tried to allocate too many
772                                        endpoints or signalling channels. */
773 
774   OI_PBAP_REPOSITORY_NOT_SET = 3001, /**< PBAP: Phonebook repository must be set
775                                         for operation to complete. */
776   OI_PBAP_PHONEBOOK_NOT_SET =
777       3002, /**< PBAP: Phonebook be set for operation to complete. */
778 
779   OI_AADP_BAD_ENDPOINT = 3101, /**< AADP: Invalid local endpoint specified */
780   OI_AADP_BAD_STATE =
781       3102, /**< AADP: AADP State is not correct for this operation. */
782 
783   OI_UNICODE_INVALID_SOURCE = 3200,   /**< Unicode Conversion: Source string has
784                                          invalid character encoding. */
785   OI_UNICODE_SOURCE_EXHAUSTED = 3201, /**< Unicode Conversion: Incomplete
786                                          Unicode character at end of source
787                                          buffer. */
788   OI_UNICODE_DESTINATION_EXHAUSTED = 3202, /**< Unicode Conversion: Destination
789                                               buffer not large enough to hold
790                                               resulting Unicode string. */
791 
792   OI_AVRCP_TOO_MANY_CONNECTIONS = 3300, /**< AVRCP: Exceeded maximum number of
793                                            simultaneous AVCTP connections. */
794   OI_AVRCP_NOT_IMPLEMENTED =
795       3301, /**< AVRCP: The target does not implement the command specified by
796                the opcode and operand. */
797   OI_AVRCP_REJECTED = 3302, /**< AVRCP: The target cannot respond because of
798                                invalid operands in command packet. */
799   OI_AVRCP_INVALID_RESPONSE = 3303, /**< AVRCP: The controller received the
800                                        response with invalid parameters */
801   OI_AVRCP_RESPONSE_PACKET_OVERFLOW =
802       3304, /**< AVRCP: The response message does not fir in one AVRCP packet
803                (512 bytes), has to be fragmented. */
804   OI_AVRCP_RESPONSE_INVALID_PDU = 3305, /**< AVRCP: Command rejected: target
805                                            received a PDU that it did not
806                                            understand. */
807   OI_AVRCP_RESPONSE_INVALID_PARAMETER = 3306, /**< AVRCP: Command rejected:
808                                                  target received a PDU with a
809                                                  parameter ID that it did not
810                                                  understand. */
811   OI_AVRCP_RESPONSE_PARAMETER_NOT_FOUND =
812       3307, /**< AVRCP: Command rejected: specified parameter not found, sent if
813                the parameter ID is understood, but content is wrong or
814                corrupted.*/
815   OI_AVRCP_RESPONSE_INTERNAL_ERROR =
816       3308, /**< AVRCP: Command rejected: target detected other error
817                conditions. */
818   OI_MAX_BM3_STATUS_VAL, /* Maximum BM3 status code */
819 
820   /* Status code values reserved for BM3 SDK platform-specific implementations
821    */
822   OI_STATUS_RESERVED_FOR_BCOT = 9000,
823 
824   /* Status code values reserved for BHAPI products */
825   OI_STATUS_RESERVED_FOR_BHAPI = 9200,
826 
827   /* Status code values reserved for Soundabout products */
828   OI_STATUS_RESERVED_FOR_SOUNDABOUT = 9400,
829 
830   /*
831    * Status code values greater than or equal to this value are reserved for use
832    * by applications.
833    * However, because of differences between compilers, and differences between
834    * 16-bit and 32-bit
835    * platforms custom status codes should be in the 16-bit range, so status
836    * codes can range from 0
837    * to 65534, inclusive (65535 is reserved)
838    */
839   OI_STATUS_RESERVED_FOR_APPS = 10000,
840 
841   OI_STATUS_NONE = 0xffff /**< Special status code to indicate that there is no
842                              status. (Only to be used for special cases
843                              involving OI_SLOG_ERROR() and OI_SLOG_WARNING().)
844                              */
845 
846 } OI_STATUS;
847 
848 /* Remeber to update the #define below when new reserved blocks are added to
849  * the list above. */
850 #define OI_NUM_RESERVED_STATUS_BLOCKS \
851   4 /**< Number of status code blocks reserved, including user apps */
852 
853 /**
854  * Test for success
855  */
856 #define OI_SUCCESS(x) ((x) == OI_OK)
857 
858 /*****************************************************************************/
859 #ifdef __cplusplus
860 }
861 #endif
862 
863 /**@}*/
864 
865 #endif /* _OI_STATUS_H */
866