| CE Gobi SDK 2.14 GobiApi

- Main Page
- Modules
- Classes
- Files

- File List

GobiErrorCodes.h
1 //
3 // Name : GobiErrorCodes.h
4 //
5 // Author : Mike O'Dwyer
6 //
7 // Created : 2009/08/06 Copyright Sierra Wireless, Inc.
8 //
9 // Description: GOBI error code definitions.
10 //
12
13 #ifndef __GOBI_ERROR_CODES_H__
14 #define __GOBI_ERROR_CODES_H__
15
16 static const ULONG QCWWAN_ERR_NONE = 0;
17 static const ULONG QCWWAN_ERR_GENERAL = 1;
18 static const ULONG QCWWAN_ERR_INTERNAL = 2;
19 static const ULONG QCWWAN_ERR_MEMORY_ERROR = 3;
20 static const ULONG QCWWAN_ERR_INVALID_ARGUMENT = 4;
21 static const ULONG QCWWAN_ERR_BUFFER_TOO_SMALL = 5;
22 static const ULONG QCWWAN_ERR_UNABLE_TO_DETECT_DEVICE = 6;
23 static const ULONG QCWWAN_ERR_NO_CONNECTION_TO_WWAN_DEVICE = 8;
24 static const ULONG QCWWAN_ERR_UNABLE_TO_CONNECT_TO_QMI_INTERFACE = 10;
25 static const ULONG QCWWAN_ERR_SENDING_QMI_REQUEST = 12;
26 static const ULONG QCWWAN_ERR_RECEIVING_QMI_RESPONSE = 13;
27 static const ULONG QCWWAN_ERR_TIMEOUT_WHILE_SENDING_QMI_REQUEST = 14;
28 static const ULONG QCWWAN_ERR_TIMEOUT_WHILE_RECEIVING_QMI_RESPONSE = 15;
29 static const ULONG QCWWAN_ERR_MALFORMED_QMI_RESPONSE_RECEIVED = 16;
30 static const ULONG QCWWAN_ERR_QMI_RESPONSE_RECEIVED_DOES_NOT_CONTAIN_SUFFICIENT_OR_VALID_INFORMATION = 17;
31 static const ULONG QCWWAN_ERR_INVALID_FILE_PATH = 18;
32 static const ULONG QCWWAN_ERR_UNABLE_TO_OPEN_FILE = 19;
33 static const ULONG QCWWAN_ERR_REQUEST_CANCELED = 33;
34
35 // Sierra Wireless specific error codes
36 static const ULONG SWI_ERR_API_INVOKED_FROM_CALLBACK_THREAD_NOT_ALLOWED = 899;
37 static const ULONG SWI_ERR_API_INVALID_MESSAGE_FORMAT = 897;
38 static const ULONG SWI_ERR_API_IMPOSSIBLE_ENCODING = 896;
39 static const ULONG SWI_ERR_API_RESTRICTED_FIRMWARE = 895;
40 //static const ULONG SWI_ERR_API_WDS2_NOT_AVAILABLE = 894;
41 //static const ULONG SWI_ERR_API_NOTIFICATION_NOT_SUPPORTED = 893;
42 static const ULONG SWI_ERR_API_DEVICE_NOT_SUPPORTED = 892;
43 static const ULONG SWI_ERR_API_INVALID_CWE_HEADER_VERSION_STRING = 891;
44
45
46 // --------------------------------------------------------------------------
47 // Value which must be added to device errors to convert them to Gobi
48 // SDK error codes.
49 // --------------------------------------------------------------------------
50 static const ULONG DEVICE_ERROR_CONVERSION_OFFSET = 1000;
51
52
53 #endif //__GOBI_ERROR_CODES_H__