////////////////////////////////////////////////////////////////////////////////
//
//   Name       : GobiErrorCodes.h
//
//   Author     : Mike O'Dwyer
//
//   Created    : 2009/08/06    Copyright Sierra Wireless, Inc. 
//
//   Description: GOBI error code definitions.
//
////////////////////////////////////////////////////////////////////////////////

#ifndef __GOBI_ERROR_CODES_H__
#define __GOBI_ERROR_CODES_H__

static const ULONG QCWWAN_ERR_NONE = 0;
static const ULONG QCWWAN_ERR_GENERAL = 1;
static const ULONG QCWWAN_ERR_INTERNAL = 2;
static const ULONG QCWWAN_ERR_MEMORY_ERROR = 3;
static const ULONG QCWWAN_ERR_INVALID_ARGUMENT = 4;
static const ULONG QCWWAN_ERR_BUFFER_TOO_SMALL = 5;
static const ULONG QCWWAN_ERR_UNABLE_TO_DETECT_DEVICE = 6;
static const ULONG QCWWAN_ERR_NO_CONNECTION_TO_WWAN_DEVICE = 8;
static const ULONG QCWWAN_ERR_UNABLE_TO_CONNECT_TO_QMI_INTERFACE = 10;
static const ULONG QCWWAN_ERR_SENDING_QMI_REQUEST = 12;
static const ULONG QCWWAN_ERR_RECEIVING_QMI_RESPONSE = 13;
static const ULONG QCWWAN_ERR_TIMEOUT_WHILE_SENDING_QMI_REQUEST = 14;
static const ULONG QCWWAN_ERR_TIMEOUT_WHILE_RECEIVING_QMI_RESPONSE = 15;
static const ULONG QCWWAN_ERR_MALFORMED_QMI_RESPONSE_RECEIVED = 16;
static const ULONG QCWWAN_ERR_QMI_RESPONSE_RECEIVED_DOES_NOT_CONTAIN_SUFFICIENT_OR_VALID_INFORMATION = 17;
static const ULONG QCWWAN_ERR_INVALID_FILE_PATH = 18;
static const ULONG QCWWAN_ERR_UNABLE_TO_OPEN_FILE = 19;
static const ULONG QCWWAN_ERR_REQUEST_CANCELED = 33;

// Sierra Wireless specific error codes
static const ULONG SWI_ERR_API_INVOKED_FROM_CALLBACK_THREAD_NOT_ALLOWED = 899;
static const ULONG SWI_ERR_API_INVALID_MESSAGE_FORMAT = 897;
static const ULONG SWI_ERR_API_IMPOSSIBLE_ENCODING = 896;
static const ULONG SWI_ERR_API_RESTRICTED_FIRMWARE = 895;
//static const ULONG SWI_ERR_API_WDS2_NOT_AVAILABLE = 894;
//static const ULONG SWI_ERR_API_NOTIFICATION_NOT_SUPPORTED = 893;
static const ULONG SWI_ERR_API_DEVICE_NOT_SUPPORTED = 892;
static const ULONG SWI_ERR_API_INVALID_CWE_HEADER_VERSION_STRING = 891;


// --------------------------------------------------------------------------
// Value which must be added to device errors to convert them to Gobi 
// SDK error codes.
// --------------------------------------------------------------------------
static const ULONG DEVICE_ERROR_CONVERSION_OFFSET = 1000;


#endif //__GOBI_ERROR_CODES_H__
