| 1 |
/*=========================================================================== |
| 2 |
FILE: |
| 3 |
QMIEnum.h |
| 4 |
|
| 5 |
DESCRIPTION: |
| 6 |
QMI protocol enumerations and related methods |
| 7 |
|
| 8 |
PUBLIC ENUMERATIONS AND METHODS: |
| 9 |
eQMIService |
| 10 |
eQMIMessageCTL |
| 11 |
eQMIMessageWDS |
| 12 |
eQMIMessageDMS |
| 13 |
eQMIMessageNAS |
| 14 |
eQMIMessageWMS |
| 15 |
eQMIMessagePDS |
| 16 |
eQMIMessageAUTH |
| 17 |
eQMIMessageAT |
| 18 |
eQMIMessageVoice |
| 19 |
eQMIMessageUIM |
| 20 |
eQMIMessagePBM |
| 21 |
eQMIMessageSAR |
| 22 |
eQMIMessageRMTFS |
| 23 |
eQMIMessageCAT |
| 24 |
eQMIMessageRMS |
| 25 |
eQMIMessageOMA |
| 26 |
eQMIResultCode |
| 27 |
eQMIErrorCode |
| 28 |
eQMICallEndReason |
| 29 |
eIPAddressType |
| 30 |
eSMSMessageMode |
| 31 |
|
| 32 |
Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 33 |
|
| 34 |
Redistribution and use in source and binary forms, with or without |
| 35 |
modification, are permitted provided that the following conditions are met: |
| 36 |
* Redistributions of source code must retain the above copyright |
| 37 |
notice, this list of conditions and the following disclaimer. |
| 38 |
* Redistributions in binary form must reproduce the above copyright |
| 39 |
notice, this list of conditions and the following disclaimer in the |
| 40 |
documentation and/or other materials provided with the distribution. |
| 41 |
* Neither the name of Code Aurora Forum nor |
| 42 |
the names of its contributors may be used to endorse or promote |
| 43 |
products derived from this software without specific prior written |
| 44 |
permission. |
| 45 |
|
| 46 |
|
| 47 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 48 |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 49 |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 50 |
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 51 |
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 52 |
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 53 |
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 54 |
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 55 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 56 |
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 57 |
POSSIBILITY OF SUCH DAMAGE. |
| 58 |
===========================================================================*/ |
| 59 |
|
| 60 |
//--------------------------------------------------------------------------- |
| 61 |
// Pragmas |
| 62 |
//--------------------------------------------------------------------------- |
| 63 |
#pragma once |
| 64 |
|
| 65 |
//--------------------------------------------------------------------------- |
| 66 |
// Definitions |
| 67 |
//--------------------------------------------------------------------------- |
| 68 |
|
| 69 |
// Invalid QMI transaction ID |
| 70 |
const ULONG INVALID_QMI_TRANSACTION_ID = 0; |
| 71 |
|
| 72 |
// QMI DMS PRL size constants |
| 73 |
const ULONG QMI_DMS_MAX_PRL_SIZE = 16384; |
| 74 |
const ULONG QMI_DMS_MAX_PRL_BLOCK = 256; |
| 75 |
|
| 76 |
/*=========================================================================*/ |
| 77 |
// eQMIService Enumeration |
| 78 |
// QMI Service Type Enumeration |
| 79 |
/*=========================================================================*/ |
| 80 |
enum eQMIService |
| 81 |
{ |
| 82 |
eQMI_SVC_ENUM_BEGIN = -1, |
| 83 |
|
| 84 |
eQMI_SVC_CONTROL, // 000 Control service |
| 85 |
eQMI_SVC_WDS, // 001 Wireless data service |
| 86 |
eQMI_SVC_DMS, // 002 Device management service |
| 87 |
eQMI_SVC_NAS, // 003 Network access service |
| 88 |
eQMI_SVC_QOS, // 004 Quality of service, err, service |
| 89 |
eQMI_SVC_WMS, // 005 Wireless messaging service |
| 90 |
eQMI_SVC_PDS, // 006 Position determination service |
| 91 |
eQMI_SVC_AUTH, // 007 Authentication service |
| 92 |
eQMI_SVC_AT, // 008 AT command processor service |
| 93 |
eQMI_SVC_VOICE, // 009 Voice service |
| 94 |
eQMI_SVC_CAT2, // 010 Card application toolkit service (new) |
| 95 |
eQMI_SVC_UIM, // 011 UIM service |
| 96 |
eQMI_SVC_PBM, // 012 Phonebook service |
| 97 |
eQMI_SVC_RESERVED_13, // 013 Reserved |
| 98 |
eQMI_SVC_RESERVED_14, // 014 Reserved |
| 99 |
eQMI_SVC_RESERVED_15, // 015 Reserved |
| 100 |
eQMI_SVC_LOC, // 016 Location service |
| 101 |
eQMI_SVC_SAR, // 017 Specific absorption rate service |
| 102 |
eQMI_SVC_RESERVED_18, // 018 Reserved |
| 103 |
eQMI_SVC_RESERVED_19, // 019 Reserved |
| 104 |
eQMI_SVC_RMTFS, // 020 Remote file system service |
| 105 |
eQMI_SVC_RESERVED_21, // 021 Reserved |
| 106 |
eQMI_SVC_RESERVED_22, // 022 Reserved |
| 107 |
eQMI_SVC_RESERVED_23, // 023 Reserved |
| 108 |
eQMI_SVC_RESERVED_24, // 024 Reserved |
| 109 |
|
| 110 |
eQMI_SVC_CAT = 224, // 224 Card application toolkit service |
| 111 |
eQMI_SVC_RMS, // 225 Remote management service |
| 112 |
eQMI_SVC_OMA, // 226 Open mobile alliance dev mgmt service |
| 113 |
|
| 114 |
eQMI_SVC_ENUM_END |
| 115 |
}; |
| 116 |
|
| 117 |
/*=========================================================================== |
| 118 |
METHOD: |
| 119 |
IsValid (Inline Method) |
| 120 |
|
| 121 |
DESCRIPTION: |
| 122 |
eQMIService validity check |
| 123 |
|
| 124 |
PARAMETERS: |
| 125 |
svc [ I ] - Enum value being verified |
| 126 |
|
| 127 |
RETURN VALUE: |
| 128 |
bool |
| 129 |
===========================================================================*/ |
| 130 |
inline bool IsValid( eQMIService svc ) |
| 131 |
{ |
| 132 |
bool retVal = false; |
| 133 |
if ( (svc > eQMI_SVC_ENUM_BEGIN && svc <= eQMI_SVC_RESERVED_24) |
| 134 |
|| (svc >= eQMI_SVC_CAT && svc < eQMI_SVC_ENUM_END) ) |
| 135 |
{ |
| 136 |
retVal = true; |
| 137 |
} |
| 138 |
|
| 139 |
return retVal; |
| 140 |
}; |
| 141 |
|
| 142 |
/*=========================================================================*/ |
| 143 |
// eQMIMessageCTL Enumeration |
| 144 |
// QMI Control Service Type Message ID Enumeration |
| 145 |
/*=========================================================================*/ |
| 146 |
enum eQMIMessageCTL |
| 147 |
{ |
| 148 |
eQMI_CTL_ENUM_BEGIN = -1, |
| 149 |
|
| 150 |
eQMI_CTL_SET_INSTANCE_ID = 32, // 32 Set the unique link instance ID |
| 151 |
eQMI_CTL_GET_VERSION_INFO, // 33 Get supported service version info |
| 152 |
eQMI_CTL_GET_CLIENT_ID, // 34 Get a unique client ID |
| 153 |
eQMI_CTL_RELEASE_CLIENT_ID, // 35 Release the unique client ID |
| 154 |
eQMI_CTL_REVOKE_CLIENT_ID_IND, // 36 Indication of client ID revocation |
| 155 |
eQMI_CTL_INVALID_CLIENT_ID, // 37 Indication of invalid client ID |
| 156 |
eQMI_CTL_SET_DATA_FORMAT, // 38 Set host driver data format |
| 157 |
eQMI_CTL_SYNC, // 39 Synchronize client/server |
| 158 |
eQMI_CTL_SYNC_IND = 39, // 39 Synchronize indication |
| 159 |
eQMI_CTL_SET_EVENT, // 40 Set event report conditions |
| 160 |
eQMI_CTL_EVENT_IND = 40, // 40 Event report indication |
| 161 |
eQMI_CTL_SET_POWER_SAVE_CFG, // 41 Set power save config |
| 162 |
eQMI_CTL_SET_POWER_SAVE_MODE, // 42 Set power save mode |
| 163 |
eQMI_CTL_GET_POWER_SAVE_MODE, // 43 Get power save mode |
| 164 |
|
| 165 |
eQMI_CTL_ENUM_END |
| 166 |
}; |
| 167 |
|
| 168 |
/*=========================================================================== |
| 169 |
METHOD: |
| 170 |
IsValid (Inline Method) |
| 171 |
|
| 172 |
DESCRIPTION: |
| 173 |
eQMIMessageCTL validity check |
| 174 |
|
| 175 |
PARAMETERS: |
| 176 |
msgID [ I ] - Enum value being verified |
| 177 |
|
| 178 |
RETURN VALUE: |
| 179 |
bool |
| 180 |
===========================================================================*/ |
| 181 |
inline bool IsValid( eQMIMessageCTL msgID ) |
| 182 |
{ |
| 183 |
bool retVal = false; |
| 184 |
if (msgID >= eQMI_CTL_SET_INSTANCE_ID && msgID < eQMI_CTL_ENUM_END) |
| 185 |
{ |
| 186 |
retVal = true; |
| 187 |
} |
| 188 |
|
| 189 |
return retVal; |
| 190 |
}; |
| 191 |
|
| 192 |
/*=========================================================================*/ |
| 193 |
// eQMIMessageWDS Enumeration |
| 194 |
// QMI WDS Service Type Message ID Enumeration |
| 195 |
/*=========================================================================*/ |
| 196 |
enum eQMIMessageWDS |
| 197 |
{ |
| 198 |
eQMI_WDS_ENUM_BEGIN = -1, |
| 199 |
|
| 200 |
eQMI_WDS_RESET, // 000 Reset WDS service state variables |
| 201 |
eQMI_WDS_SET_EVENT, // 001 Set connection state report conditions |
| 202 |
eQMI_WDS_EVENT_IND = 1, // 001 Connection state report indication |
| 203 |
eQMI_WDS_ABORT, // 002 Abort previously issued WDS command |
| 204 |
|
| 205 |
eQMI_WDS_START_NET = 32, // 032 Start WDS network interface |
| 206 |
eQMI_WDS_STOP_NET, // 033 Stop WDS network interface |
| 207 |
eQMI_WDS_GET_PKT_STATUS, // 034 Get packet data connection status |
| 208 |
eQMI_WDS_PKT_STATUS_IND = 34, // 034 Packet data connection status indication |
| 209 |
eQMI_WDS_GET_RATES, // 035 Get current bit rates of the connection |
| 210 |
eQMI_WDS_GET_STATISTICS, // 036 Get the packet data transfer statistics |
| 211 |
eQMI_WDS_G0_DORMANT, // 037 Go dormant |
| 212 |
eQMI_WDS_G0_ACTIVE, // 038 Go active |
| 213 |
eQMI_WDS_CREATE_PROFILE, // 039 Create profile with specified settings |
| 214 |
eQMI_WDS_MODIFY_PROFILE, // 040 Modify profile with specified settings |
| 215 |
eQMI_WDS_DELETE_PROFILE, // 041 Delete the specified profile |
| 216 |
eQMI_WDS_GET_PROFILE_LIST, // 042 Get all profiles |
| 217 |
eQMI_WDS_GET_PROFILE, // 043 Get the specified profile |
| 218 |
eQMI_WDS_GET_DEFAULTS, // 044 Get the default data session settings |
| 219 |
eQMI_WDS_GET_SETTINGS, // 045 Get the runtime data session settings |
| 220 |
eQMI_WDS_SET_MIP, // 046 Get the mobile IP setting |
| 221 |
eQMI_WDS_GET_MIP, // 047 Set the mobile IP setting |
| 222 |
eQMI_WDS_GET_DORMANCY, // 048 Get the dormancy status |
| 223 |
|
| 224 |
eQMI_WDS_GET_AUTOCONNECT = 52, // 052 Get the NDIS autoconnect setting |
| 225 |
eQMI_WDS_GET_DURATION, // 053 Get the duration of data session |
| 226 |
eQMI_WDS_GET_MODEM_STATUS, // 054 Get the modem status |
| 227 |
eQMI_WDS_MODEM_IND = 54, // 054 Modem status indication |
| 228 |
eQMI_WDS_GET_DATA_BEARER, // 055 Get the data bearer type |
| 229 |
eQMI_WDS_GET_MODEM_INFO, // 056 Get the modem info |
| 230 |
eQMI_WDS_MODEM_INFO_IND = 56, // 056 Modem info indication |
| 231 |
|
| 232 |
eQMI_WDS_GET_ACTIVE_MIP = 60, // 060 Get the active mobile IP profile |
| 233 |
eQMI_WDS_SET_ACTIVE_MIP, // 061 Set the active mobile IP profile |
| 234 |
eQMI_WDS_GET_MIP_PROFILE, // 062 Get mobile IP profile settings |
| 235 |
eQMI_WDS_SET_MIP_PROFILE, // 063 Set mobile IP profile settings |
| 236 |
eQMI_WDS_GET_MIP_PARAMS, // 064 Get mobile IP parameters |
| 237 |
eQMI_WDS_SET_MIP_PARAMS, // 065 Set mobile IP parameters |
| 238 |
eQMI_WDS_GET_LAST_MIP_STATUS, // 066 Get last mobile IP status |
| 239 |
eQMI_WDS_GET_AAA_AUTH_STATUS, // 067 Get AN-AAA authentication status |
| 240 |
eQMI_WDS_GET_CUR_DATA_BEARER, // 068 Get current data bearer |
| 241 |
eQMI_WDS_GET_CALL_LIST, // 069 Get the call history list |
| 242 |
eQMI_WDS_GET_CALL_ENTRY, // 070 Get an entry from the call history list |
| 243 |
eQMI_WDS_CLEAR_CALL_LIST, // 071 Clear the call history list |
| 244 |
eQMI_WDS_GET_CALL_LIST_MAX, // 072 Get maximum size of call history list |
| 245 |
eQMI_WDS_GET_DEFAULT_PROF_NUM, // 073 Get default profile number |
| 246 |
eQMI_WDS_SET_DEFAULT_PROF_NUM, // 074 Set default profile number |
| 247 |
eQMI_WDS_RESET_PROFILE, // 075 Reset profile |
| 248 |
eQMI_WDS_RESET_PROF_PARAM, // 076 Reset profile param to invalid |
| 249 |
eQMI_WDS_SET_IP_FAMILY, // 077 Set the client IP family preference |
| 250 |
|
| 251 |
eQMI_WDS_SET_AUTOCONNECT = 81, // 081 Set the NDIS autoconnect setting |
| 252 |
eQMI_WDS_GET_DNS, // 082 Get the DNS setting |
| 253 |
eQMI_WDS_SET_DNS, // 083 Set the DNS setting |
| 254 |
eQMI_WDS_GET_PRE_DORMANCY, // 084 Get the CDMA pre-dormancy settings |
| 255 |
eQMI_WDS_SET_CAM_TIMER, // 085 Set the CAM timer |
| 256 |
eQMI_WDS_GET_CAM_TIMER, // 086 Get the CAM timer |
| 257 |
eQMI_WDS_SET_SCRM, // 087 Set SCRM status |
| 258 |
eQMI_WDS_GET_SCRM, // 088 Get SCRM status |
| 259 |
eQMI_WDS_SET_RDUD, // 089 Set RDUD status |
| 260 |
eQMI_WDS_GET_RDUD, // 090 Get RDUD status |
| 261 |
eQMI_WDS_GET_SIPMIP_CALL_TYPE, // 091 Set SIP/MIP call type |
| 262 |
eQMI_WDS_SET_PM_PERIOD, // 092 Set EV-DO page monitor period |
| 263 |
eQMI_WDS_PM_PERIOD_IND = 92, // 092 EV-DO page monitor period indication |
| 264 |
eQMI_WDS_SET_FORCE_LONG_SLEEP, // 093 Set EV-DO force long sleep feature |
| 265 |
eQMI_WDS_GET_PM_PERIOD, // 094 Get EV-DO page monitor period |
| 266 |
eQMI_WDS_GET_CALL_THROTTLE, // 095 Get call throttle info |
| 267 |
eQMI_WDS_GET_NSAPI, // 096 Get NSAPI |
| 268 |
eQMI_WDS_SET_DUN_CTRL_PREF, // 097 Set DUN control preference |
| 269 |
eQMI_WDS_GET_DUN_CTRL_INFO, // 098 Set DUN control info |
| 270 |
eQMI_WDS_SET_DUN_CTRL_EVENT, // 099 Set DUN control event preference |
| 271 |
eQMI_WDS_DUN_CTRL_IND = 99, // 099 DUN control event report indication |
| 272 |
eQMI_WDS_PENDING_DUN_CTRL, // 100 Control pending DUN call |
| 273 |
|
| 274 |
eQMI_WDS_GET_DATA_SYS = 105, // 105 Get preferred data system |
| 275 |
eQMI_WDS_GET_LAST_DATA_STATUS, // 106 Get last data call status |
| 276 |
|
| 277 |
eQMI_WDS_ENUM_END |
| 278 |
}; |
| 279 |
|
| 280 |
/*=========================================================================== |
| 281 |
METHOD: |
| 282 |
IsValid (Inline Method) |
| 283 |
|
| 284 |
DESCRIPTION: |
| 285 |
eQMIMessageWDS validity check |
| 286 |
|
| 287 |
PARAMETERS: |
| 288 |
msgID [ I ] - Enum value being verified |
| 289 |
|
| 290 |
RETURN VALUE: |
| 291 |
bool |
| 292 |
===========================================================================*/ |
| 293 |
inline bool IsValid( eQMIMessageWDS msgID ) |
| 294 |
{ |
| 295 |
bool retVal = false; |
| 296 |
if ( (msgID > eQMI_WDS_ENUM_BEGIN && msgID <= eQMI_WDS_ABORT) |
| 297 |
|| (msgID >= eQMI_WDS_START_NET && msgID <= eQMI_WDS_GET_DORMANCY) |
| 298 |
|| (msgID >= eQMI_WDS_GET_AUTOCONNECT && msgID <= eQMI_WDS_MODEM_INFO_IND) |
| 299 |
|| (msgID >= eQMI_WDS_GET_ACTIVE_MIP && msgID <= eQMI_WDS_SET_IP_FAMILY) |
| 300 |
|| (msgID >= eQMI_WDS_SET_AUTOCONNECT && msgID <= eQMI_WDS_PENDING_DUN_CTRL) |
| 301 |
|| (msgID >= eQMI_WDS_GET_DATA_SYS && msgID < eQMI_WDS_ENUM_END) ) |
| 302 |
{ |
| 303 |
retVal = true; |
| 304 |
} |
| 305 |
|
| 306 |
return retVal; |
| 307 |
}; |
| 308 |
|
| 309 |
/*=========================================================================*/ |
| 310 |
// eQMIMessageDMS Enumeration |
| 311 |
// QMI DMS Service Type Message ID Enumeration |
| 312 |
/*=========================================================================*/ |
| 313 |
enum eQMIMessageDMS |
| 314 |
{ |
| 315 |
eQMI_DMS_ENUM_BEGIN = -1, |
| 316 |
|
| 317 |
eQMI_DMS_RESET, // 00 Reset DMS service state variables |
| 318 |
eQMI_DMS_SET_EVENT, // 01 Set connection state report conditions |
| 319 |
eQMI_DMS_EVENT_IND = 1, // 01 Connection state report indication |
| 320 |
|
| 321 |
eQMI_DMS_GET_CAPS = 32, // 32 Get the device capabilities |
| 322 |
eQMI_DMS_GET_MANUFACTURER, // 33 Get the device manfacturer |
| 323 |
eQMI_DMS_GET_MODEL_ID, // 34 Get the device model ID |
| 324 |
eQMI_DMS_GET_REV_ID, // 35 Get the device revision ID |
| 325 |
eQMI_DMS_GET_NUMBER, // 36 Get the assigned voice number |
| 326 |
eQMI_DMS_GET_IDS, // 37 Get the ESN/IMEI/MEID |
| 327 |
eQMI_DMS_GET_POWER_STATE, // 38 Get the get power state |
| 328 |
eQMI_DMS_UIM_SET_PIN_PROT, // 39 UIM - Set PIN protection |
| 329 |
eQMI_DMS_UIM_PIN_VERIFY, // 40 UIM - Verify PIN |
| 330 |
eQMI_DMS_UIM_PIN_UNBLOCK, // 41 UIM - Unblock PIN |
| 331 |
eQMI_DMS_UIM_PIN_CHANGE, // 42 UIM - Change PIN |
| 332 |
eQMI_DMS_UIM_GET_PIN_STATUS, // 43 UIM - Get PIN status |
| 333 |
eQMI_DMS_GET_MSM_ID = 44, // 44 Get MSM ID |
| 334 |
eQMI_DMS_GET_OPERATING_MODE, // 45 Get the operating mode |
| 335 |
eQMI_DMS_SET_OPERATING_MODE, // 46 Set the operating mode |
| 336 |
eQMI_DMS_GET_TIME, // 47 Get timestamp from the device |
| 337 |
eQMI_DMS_GET_PRL_VERSION, // 48 Get the PRL version |
| 338 |
eQMI_DMS_GET_ACTIVATED_STATE, // 49 Get the activation state |
| 339 |
eQMI_DMS_ACTIVATE_AUTOMATIC, // 50 Perform an automatic activation |
| 340 |
eQMI_DMS_ACTIVATE_MANUAL, // 51 Perform a manual activation |
| 341 |
eQMI_DMS_GET_USER_LOCK_STATE, // 52 Get the lock state |
| 342 |
eQMI_DMS_SET_USER_LOCK_STATE, // 53 Set the lock state |
| 343 |
eQMI_DMS_SET_USER_LOCK_CODE, // 54 Set the lock PIN |
| 344 |
eQMI_DMS_READ_USER_DATA, // 55 Read user data |
| 345 |
eQMI_DMS_WRITE_USER_DATA, // 56 Write user data |
| 346 |
eQMI_DMS_READ_ERI_FILE, // 57 Read the enhanced roaming indicator file |
| 347 |
eQMI_DMS_FACTORY_DEFAULTS, // 58 Reset to factory defaults |
| 348 |
eQMI_DMS_VALIDATE_SPC, // 59 Validate service programming code |
| 349 |
eQMI_DMS_UIM_GET_ICCID, // 60 Get UIM ICCID |
| 350 |
eQMI_DMS_GET_FIRWARE_ID, // 61 Get firmware ID |
| 351 |
eQMI_DMS_SET_FIRMWARE_ID, // 62 Set firmware ID |
| 352 |
eQMI_DMS_GET_HOST_LOCK_ID, // 63 Get host lock ID |
| 353 |
eQMI_DMS_UIM_GET_CK_STATUS, // 64 UIM - Get control key status |
| 354 |
eQMI_DMS_UIM_SET_CK_PROT, // 65 UIM - Set control key protection |
| 355 |
eQMI_DMS_UIM_UNBLOCK_CK, // 66 UIM - Unblock facility control key |
| 356 |
eQMI_DMS_GET_IMSI, // 67 Get the IMSI |
| 357 |
eQMI_DMS_UIM_GET_STATE, // 68 UIM - Get the UIM state |
| 358 |
eQMI_DMS_GET_BAND_CAPS, // 69 Get the device band capabilities |
| 359 |
eQMI_DMS_GET_FACTORY_ID, // 70 Get the device factory ID |
| 360 |
eQMI_DMS_GET_FIRMWARE_PREF, // 71 Get firmware preference |
| 361 |
eQMI_DMS_SET_FIRMWARE_PREF, // 72 Set firmware preference |
| 362 |
eQMI_DMS_LIST_FIRMWARE, // 73 List all stored firmware |
| 363 |
eQMI_DMS_DELETE_FIRMWARE, // 74 Delete specified stored firmware |
| 364 |
eQMI_DMS_SET_TIME, // 75 Set device time |
| 365 |
eQMI_DMS_GET_FIRMWARE_INFO, // 76 Get stored firmware info |
| 366 |
eQMI_DMS_GET_ALT_NET_CFG, // 77 Get alternate network config |
| 367 |
eQMI_DMS_SET_ALT_NET_CFG, // 78 Set alternate network config |
| 368 |
eQMI_DMS_GET_IMG_DLOAD_MODE, // 79 Get next image download mode |
| 369 |
eQMI_DMS_SET_IMG_DLOAD_MODE, // 80 Set next image download mode |
| 370 |
eQMI_DMS_GET_SW_VERSION, // 81 Get software version |
| 371 |
eQMI_DMS_SET_SPC, // 82 Set SPC |
| 372 |
|
| 373 |
eQMI_DMS_ENUM_END |
| 374 |
}; |
| 375 |
|
| 376 |
/*=========================================================================== |
| 377 |
METHOD: |
| 378 |
IsValid (Inline Method) |
| 379 |
|
| 380 |
DESCRIPTION: |
| 381 |
eQMIMessageDMS validity check |
| 382 |
|
| 383 |
PARAMETERS: |
| 384 |
msgID [ I ] - Enum value being verified |
| 385 |
|
| 386 |
RETURN VALUE: |
| 387 |
bool |
| 388 |
===========================================================================*/ |
| 389 |
inline bool IsValid( eQMIMessageDMS msgID ) |
| 390 |
{ |
| 391 |
bool retVal = false; |
| 392 |
if ( (msgID > eQMI_DMS_ENUM_BEGIN && msgID <= eQMI_DMS_EVENT_IND) |
| 393 |
|| (msgID >= eQMI_DMS_GET_CAPS && msgID < eQMI_DMS_ENUM_END) ) |
| 394 |
{ |
| 395 |
retVal = true; |
| 396 |
} |
| 397 |
|
| 398 |
return retVal; |
| 399 |
}; |
| 400 |
|
| 401 |
/*=========================================================================*/ |
| 402 |
// eQMIMessageNAS Enumeration |
| 403 |
// QMI NAS Service Type Message ID Enumeration |
| 404 |
/*=========================================================================*/ |
| 405 |
enum eQMIMessageNAS |
| 406 |
{ |
| 407 |
eQMI_NAS_ENUM_BEGIN = -1, |
| 408 |
|
| 409 |
eQMI_NAS_RESET, // 00 Reset NAS service state variables |
| 410 |
eQMI_NAS_ABORT, // 01 Abort previously issued NAS command |
| 411 |
eQMI_NAS_SET_EVENT, // 02 Set NAS state report conditions |
| 412 |
eQMI_NAS_EVENT_IND = 2, // 02 Connection state report indication |
| 413 |
eQMI_NAS_SET_REG_EVENT, // 03 Set NAS registration report conditions |
| 414 |
|
| 415 |
eQMI_NAS_GET_RSSI = 32, // 32 Get the signal strength |
| 416 |
eQMI_NAS_SCAN_NETS, // 33 Scan for visible network |
| 417 |
eQMI_NAS_REGISTER_NET, // 34 Initiate a network registration |
| 418 |
eQMI_NAS_ATTACH_DETACH, // 35 Initiate an attach or detach action |
| 419 |
eQMI_NAS_GET_SS_INFO, // 36 Get info about current serving system |
| 420 |
eQMI_NAS_SS_INFO_IND = 36, // 36 Current serving system info indication |
| 421 |
eQMI_NAS_GET_HOME_INFO, // 37 Get info about home network |
| 422 |
eQMI_NAS_GET_NET_PREF_LIST, // 38 Get the list of preferred networks |
| 423 |
eQMI_NAS_SET_NET_PREF_LIST, // 39 Set the list of preferred networks |
| 424 |
eQMI_NAS_GET_NET_BAN_LIST, // 40 Get the list of forbidden networks |
| 425 |
eQMI_NAS_SET_NET_BAN_LIST, // 41 Set the list of forbidden networks |
| 426 |
eQMI_NAS_SET_TECH_PREF, // 42 Set the technology preference |
| 427 |
eQMI_NAS_GET_TECH_PREF, // 43 Get the technology preference |
| 428 |
eQMI_NAS_GET_ACCOLC, // 44 Get the Access Overload Class |
| 429 |
eQMI_NAS_SET_ACCOLC, // 45 Set the Access Overload Class |
| 430 |
eQMI_NAS_GET_SYSPREF, // 46 Get the CDMA system preference |
| 431 |
eQMI_NAS_GET_NET_PARAMS, // 47 Get various network parameters |
| 432 |
eQMI_NAS_SET_NET_PARAMS, // 48 Set various network parameters |
| 433 |
eQMI_NAS_GET_RF_INFO, // 49 Get the SS radio/band channel info |
| 434 |
eQMI_NAS_GET_AAA_AUTH_STATUS, // 50 Get AN-AAA authentication status |
| 435 |
eQMI_NAS_SET_SYS_SELECT_PREF, // 51 Set system selection preference |
| 436 |
eQMI_NAS_GET_SYS_SELECT_PREF, // 52 Get system selection preference |
| 437 |
eQMI_NAS_SYS_SELECT_IND = 52, // 52 System selection pref indication |
| 438 |
|
| 439 |
eQMI_NAS_SET_DDTM_PREF = 55, // 55 Set DDTM preference |
| 440 |
eQMI_NAS_GET_DDTM_PREF, // 56 Get DDTM preference |
| 441 |
eQMI_NAS_DDTM_IND = 56, // 56 DDTM preference indication |
| 442 |
eQMI_NAS_GET_OPERATER_NAME, // 57 Get operator name data |
| 443 |
eQMI_NAS_OPERATER_NAME_IND, // 58 Operator name data indication |
| 444 |
eQMI_NAS_GET_PLMN_MODE, // 59 Get PLMN mode bit from CSP |
| 445 |
eQMI_NAS_PLMN_MODE_IND, // 60 CSP PLMN mode bit indication |
| 446 |
eQMI_NAS_UPDATE_AKEY, // 61 Update the A-KEY |
| 447 |
eQMI_NAS_GET_3GPP2_SUBS_INFO, // 62 Get 3GPP2 subscription info |
| 448 |
eQMI_NAS_SET_3GPP2_SUBS_INFO, // 63 Set 3GPP2 subscription info |
| 449 |
eQMI_NAS_MOB_CAI_REV, // 64 Get mobile CAI revision information |
| 450 |
eQMI_NAS_GET_RTRE_CONFIG, // 65 Get RTRE configuration information |
| 451 |
eQMI_NAS_SET_RTRE_CONFIG, // 66 Set RTRE configuration information |
| 452 |
eQMI_NAS_GET_CELL_LOC_INFO, // 67 Get cell location information |
| 453 |
eQMI_NAS_GET_PLMN_NAME, // 68 Get operator name for specified network |
| 454 |
eQMI_NAS_BIND_SUBS, // 69 Bind client to a specific subscription |
| 455 |
eQMI_NAS_MANAGED_ROAMING_IND, // 70 Managed roaming indication |
| 456 |
eQMI_NAS_DSB_PREF_IND, // 71 Dual standby preference indication |
| 457 |
eQMI_NAS_SUBS_INFO_IND, // 72 Subscription info indication |
| 458 |
eQMI_NAS_GET_MODE_PREF, // 73 Get mode preference |
| 459 |
|
| 460 |
eQMI_NAS_SET_DSB_PREF = 75, // 75 Set dual standby preference |
| 461 |
eQMI_NAS_NETWORK_TIME_IND, // 76 Network time indication |
| 462 |
eQMI_NAS_GET_SYSTEM_INFO, // 77 Get system info |
| 463 |
eQMI_NAS_SYSTEM_INFO_IND, // 78 System info indication |
| 464 |
eQMI_NAS_GET_SIGNAL_INFO, // 79 Get signal info |
| 465 |
eQMI_NAS_CFG_SIGNAL_INFO, // 80 Configure signal info report |
| 466 |
eQMI_NAS_SIGNAL_INFO_IND, // 81 Signal info indication |
| 467 |
eQMI_NAS_GET_ERROR_RATE, // 82 Get error rate info |
| 468 |
eQMI_NAS_ERROR_RATE_IND, // 83 Error rate indication |
| 469 |
eQMI_NAS_EVDO_SESSION_IND, // 84 CDMA 1xEV-DO session close indication |
| 470 |
eQMI_NAS_EVDO_UATI_IND, // 85 CDMA 1xEV-DO UATI update indication |
| 471 |
eQMI_NAS_GET_EVDO_SUBTYPE, // 86 Get CDMA 1xEV-DO protocol subtype |
| 472 |
eQMI_NAS_GET_EVDO_COLOR_CODE, // 87 Get CDMA 1xEV-DO color code |
| 473 |
eQMI_NAS_GET_ACQ_SYS_MODE, // 88 Get current acquisition system mode |
| 474 |
eQMI_NAS_SET_RX_DIVERSITY, // 89 Set the RX diversity |
| 475 |
eQMI_NAS_GET_RX_TX_INFO, // 90 Get detailed RX/TX information |
| 476 |
eQMI_NAS_UPDATE_AKEY_EXT, // 91 Update the A-KEY (extended) |
| 477 |
eQMI_NAS_GET_DSB_PREF, // 92 Get dual standby preference |
| 478 |
|
| 479 |
eQMI_NAS_ENUM_END |
| 480 |
}; |
| 481 |
|
| 482 |
/*=========================================================================== |
| 483 |
METHOD: |
| 484 |
IsValid (Inline Method) |
| 485 |
|
| 486 |
DESCRIPTION: |
| 487 |
eQMIMessageNAS validity check |
| 488 |
|
| 489 |
PARAMETERS: |
| 490 |
msgID [ I ] - Enum value being verified |
| 491 |
|
| 492 |
RETURN VALUE: |
| 493 |
bool |
| 494 |
===========================================================================*/ |
| 495 |
inline bool IsValid( eQMIMessageNAS msgID ) |
| 496 |
{ |
| 497 |
bool retVal = false; |
| 498 |
if ( (msgID > eQMI_NAS_ENUM_BEGIN && msgID <= eQMI_NAS_SET_REG_EVENT) |
| 499 |
|| (msgID >= eQMI_NAS_GET_RSSI && msgID <= eQMI_NAS_SYS_SELECT_IND) |
| 500 |
|| (msgID >= eQMI_NAS_SET_DDTM_PREF && msgID <= eQMI_NAS_GET_MODE_PREF) |
| 501 |
|| (msgID >= eQMI_NAS_SET_DSB_PREF && msgID < eQMI_NAS_ENUM_END) ) |
| 502 |
{ |
| 503 |
retVal = true; |
| 504 |
} |
| 505 |
|
| 506 |
return retVal; |
| 507 |
}; |
| 508 |
|
| 509 |
/*=========================================================================*/ |
| 510 |
// eQMIMessageWMS Enumeration |
| 511 |
// QMI WMS Service Type Message ID Enumeration |
| 512 |
/*=========================================================================*/ |
| 513 |
enum eQMIMessageWMS |
| 514 |
{ |
| 515 |
eQMI_WMS_ENUM_BEGIN = -1, |
| 516 |
|
| 517 |
eQMI_WMS_RESET, // 00 Reset WMS service state variables |
| 518 |
eQMI_WMS_SET_EVENT, // 01 Set new message report conditions |
| 519 |
eQMI_WMS_EVENT_IND = 1, // 01 New message report indication |
| 520 |
|
| 521 |
eQMI_WMS_RAW_SEND = 32, // 32 Send a raw message |
| 522 |
eQMI_WMS_RAW_WRITE, // 33 Write a raw message to the device |
| 523 |
eQMI_WMS_RAW_READ, // 34 Read a raw message from the device |
| 524 |
eQMI_WMS_MODIFY_TAG, // 35 Modify message tag on the device |
| 525 |
eQMI_WMS_DELETE, // 36 Delete message by index/tag/memory |
| 526 |
|
| 527 |
eQMI_WMS_GET_MSG_PROTOCOL = 48, // 48 Get the current message protocol |
| 528 |
eQMI_WMS_GET_MSG_LIST, // 49 Get list of messages from the device |
| 529 |
eQMI_WMS_SET_ROUTES, // 50 Set routes for message memory storage |
| 530 |
eQMI_WMS_GET_ROUTES, // 51 Get routes for message memory storage |
| 531 |
eQMI_WMS_GET_SMSC_ADDR, // 52 Get SMSC address |
| 532 |
eQMI_WMS_SET_SMSC_ADDR, // 53 Set SMSC address |
| 533 |
eQMI_WMS_GET_MSG_LIST_MAX, // 54 Get maximum size of SMS storage |
| 534 |
eQMI_WMS_SEND_ACK, // 55 Send ACK |
| 535 |
eQMI_WMS_SET_RETRY_PERIOD, // 56 Set retry period |
| 536 |
eQMI_WMS_SET_RETRY_INTERVAL, // 57 Set retry interval |
| 537 |
eQMI_WMS_SET_DC_DISCO_TIMER, // 58 Set DC auto-disconnect timer |
| 538 |
eQMI_WMS_SET_MEMORY_STATUS, // 59 Set memory storage status |
| 539 |
eQMI_WMS_SET_BC_ACTIVATION, // 60 Set broadcast activation |
| 540 |
eQMI_WMS_SET_BC_CONFIG, // 61 Set broadcast config |
| 541 |
eQMI_WMS_GET_BC_CONFIG, // 62 Get broadcast config |
| 542 |
eQMI_WMS_MEMORY_FULL_IND, // 63 Memory full indication |
| 543 |
eQMI_WMS_GET_DOMAIN_PREF, // 64 Get domain preference |
| 544 |
eQMI_WMS_SET_DOMAIN_PREF, // 65 Set domain preference |
| 545 |
eQMI_WMS_MEMORY_SEND, // 66 Send message from memory store |
| 546 |
eQMI_WMS_GET_MSG_WAITING, // 67 Get message waiting info |
| 547 |
eQMI_WMS_MSG_WAITING_IND, // 68 Message waiting indication |
| 548 |
eQMI_WMS_SET_PRIMARY_CLIENT, // 69 Set client as primary client |
| 549 |
eQMI_WMS_SMSC_ADDR_IND, // 70 SMSC address indication |
| 550 |
eQMI_WMS_INDICATOR_REG, // 71 Register for indicators |
| 551 |
eQMI_WMS_GET_TRANSPORT_INFO, // 72 Get transport layer info |
| 552 |
eQMI_WMS_TRANSPORT_INFO_IND, // 73 Transport layer info indication |
| 553 |
eQMI_WMS_GET_NW_REG_INFO, // 74 Get network registration info |
| 554 |
eQMI_WMS_NW_REG_INFO_IND, // 75 Network registration info indication |
| 555 |
eQMI_WMS_BIND_SUBSCRIPTION, // 76 Bind client to a subscription |
| 556 |
eQMI_WMS_GET_INDICATOR_REG, // 77 Get indicator registration |
| 557 |
eQMI_WMS_GET_SMS_PARAMETERS, // 78 Get SMS EF-SMSP parameters |
| 558 |
eQMI_WMS_SET_SMS_PARAMETERS, // 79 Set SMS EF-SMSP parameters |
| 559 |
eQMI_WMS_CALL_STATUS_IND, // 80 Call status indication |
| 560 |
|
| 561 |
eQMI_WMS_ENUM_END |
| 562 |
}; |
| 563 |
|
| 564 |
/*=========================================================================== |
| 565 |
METHOD: |
| 566 |
IsValid (Inline Method) |
| 567 |
|
| 568 |
DESCRIPTION: |
| 569 |
eQMIMessageWMS validity check |
| 570 |
|
| 571 |
PARAMETERS: |
| 572 |
msgID [ I ] - Enum value being verified |
| 573 |
|
| 574 |
RETURN VALUE: |
| 575 |
bool |
| 576 |
===========================================================================*/ |
| 577 |
inline bool IsValid( eQMIMessageWMS msgID ) |
| 578 |
{ |
| 579 |
bool retVal = false; |
| 580 |
if ( (msgID > eQMI_WMS_ENUM_BEGIN && msgID <= eQMI_WMS_EVENT_IND) |
| 581 |
|| (msgID >= eQMI_WMS_RAW_SEND && msgID <= eQMI_WMS_DELETE) |
| 582 |
|| (msgID >= eQMI_WMS_GET_MSG_PROTOCOL && msgID < eQMI_WMS_ENUM_END) ) |
| 583 |
{ |
| 584 |
retVal = true; |
| 585 |
} |
| 586 |
|
| 587 |
return retVal; |
| 588 |
}; |
| 589 |
|
| 590 |
/*=========================================================================*/ |
| 591 |
// eQMIMessagePDS Enumeration |
| 592 |
// QMI PDS Service Type Message ID Enumeration |
| 593 |
/*=========================================================================*/ |
| 594 |
enum eQMIMessagePDS |
| 595 |
{ |
| 596 |
eQMI_PDS_ENUM_BEGIN = -1, |
| 597 |
|
| 598 |
eQMI_PDS_RESET, // 00 Reset PDS service state variables |
| 599 |
eQMI_PDS_SET_EVENT, // 01 Set PDS report conditions |
| 600 |
eQMI_PDS_EVENT_IND = 1, // 01 PDS report indication |
| 601 |
|
| 602 |
eQMI_PDS_GET_STATE = 32, // 32 Return PDS service state |
| 603 |
eQMI_PDS_STATE_IND = 32, // 32 PDS service state indication |
| 604 |
eQMI_PDS_SET_STATE, // 33 Set PDS service state |
| 605 |
eQMI_PDS_START_SESSION, // 34 Start a PDS tracking session |
| 606 |
eQMI_PDS_GET_SESSION_INFO, // 35 Get PDS tracking session info |
| 607 |
eQMI_PDS_FIX_POSITION, // 36 Manual tracking session position |
| 608 |
eQMI_PDS_END_SESSION, // 37 End a PDS tracking session |
| 609 |
eQMI_PDS_GET_NMEA_CFG, // 38 Get NMEA sentence config |
| 610 |
eQMI_PDS_SET_NMEA_CFG, // 39 Set NMEA sentence config |
| 611 |
eQMI_PDS_INJECT_TIME, // 40 Inject a time reference |
| 612 |
eQMI_PDS_GET_DEFAULTS, // 41 Get default tracking session config |
| 613 |
eQMI_PDS_SET_DEFAULTS, // 42 Set default tracking session config |
| 614 |
eQMI_PDS_GET_XTRA_PARAMS, // 43 Get the GPS XTRA parameters |
| 615 |
eQMI_PDS_SET_XTRA_PARAMS, // 44 Set the GPS XTRA parameters |
| 616 |
eQMI_PDS_FORCE_XTRA_DL, // 45 Force a GPS XTRA database download |
| 617 |
eQMI_PDS_GET_AGPS_CONFIG, // 46 Get the AGPS mode configuration |
| 618 |
eQMI_PDS_SET_AGPS_CONFIG, // 47 Set the AGPS mode configuration |
| 619 |
eQMI_PDS_GET_SVC_AUTOTRACK, // 48 Get the service auto-tracking state |
| 620 |
eQMI_PDS_SET_SVC_AUTOTRACK, // 49 Set the service auto-tracking state |
| 621 |
eQMI_PDS_GET_COM_AUTOTRACK, // 50 Get COM port auto-tracking config |
| 622 |
eQMI_PDS_SET_COM_AUTOTRACK, // 51 Set COM port auto-tracking config |
| 623 |
eQMI_PDS_RESET_DATA, // 52 Reset PDS service data |
| 624 |
eQMI_PDS_SINGLE_FIX, // 53 Request single position fix |
| 625 |
eQMI_PDS_GET_VERSION, // 54 Get PDS service version |
| 626 |
eQMI_PDS_INJECT_XTRA, // 55 Inject XTRA data |
| 627 |
eQMI_PDS_INJECT_POSITION, // 56 Inject position data |
| 628 |
eQMI_PDS_INJECT_WIFI, // 57 Inject Wi-Fi obtained data |
| 629 |
eQMI_PDS_GET_SBAS_CONFIG, // 58 Get SBAS config |
| 630 |
eQMI_PDS_SET_SBAS_CONFIG, // 59 Set SBAS config |
| 631 |
eQMI_PDS_SEND_NI_RESPONSE, // 60 Send network initiated response |
| 632 |
eQMI_PDS_INJECT_ABS_TIME, // 61 Inject absolute time |
| 633 |
eQMI_PDS_INJECT_EFS, // 62 Inject EFS data |
| 634 |
eQMI_PDS_GET_DPO_CONFIG, // 63 Get DPO config |
| 635 |
eQMI_PDS_SET_DPO_CONFIG, // 64 Set DPO config |
| 636 |
eQMI_PDS_GET_ODP_CONFIG, // 65 Get ODP config |
| 637 |
eQMI_PDS_SET_ODP_CONFIG, // 66 Set ODP config |
| 638 |
eQMI_PDS_CANCEL_SINGLE_FIX, // 67 Cancel single position fix |
| 639 |
eQMI_PDS_GET_GPS_STATE, // 68 Get GPS state |
| 640 |
eQMI_PDS_SET_PPM_EVT_REPORT, // 69 Set PPM event report |
| 641 |
eQMI_PDS_SET_SPI_REPORT, // 70 Set SPI streaming reporting |
| 642 |
eQMI_PDS_SET_SPI_RPT_IND = 70, // 70 Set SPI streaming indication |
| 643 |
eQMI_PDS_SET_SPI_STATUS, // 71 Set SPI status |
| 644 |
eQMI_PDS_SET_PPM_REPORT, // 72 Set PPM reporting state |
| 645 |
eQMI_PDS_SET_PPM_RPT_IND = 72, // 72 Set PPM reporting state indication |
| 646 |
eQMI_PDS_FORCE_RECEIVER_OFF, // 73 Force receiver off |
| 647 |
|
| 648 |
eQMI_PDS_GET_METHODS = 80, // 80 Get GPS position methods state |
| 649 |
eQMI_PDS_SET_METHODS, // 81 Set GPS position methods state |
| 650 |
eQMI_PDS_INJECT_SENSOR, // 82 Inject sensor data |
| 651 |
eQMI_PDS_INJECT_TIME_SYNC, // 83 Inject time sync data |
| 652 |
eQMI_PDS_GET_SENSOR_CFG, // 84 Get sensor config |
| 653 |
eQMI_PDS_SET_SENSOR_CFG, // 85 Set sensor config |
| 654 |
eQMI_PDS_GET_NAV_CFG, // 86 Get navigation config |
| 655 |
eQMI_PDS_SET_NAV_CFG, // 87 Set navigation config |
| 656 |
|
| 657 |
eQMI_PDS_SET_WLAN_BLANK = 90, // 90 Set WLAN blanking |
| 658 |
eQMI_PDS_SET_LBS_SC_RPT, // 91 Set LBS security challenge reporting |
| 659 |
eQMI_PDS_LBS_SC_IND = 91, // 91 LBS security challenge indication |
| 660 |
eQMI_PDS_SET_LBS_SC, // 92 Set LBS security challenge |
| 661 |
eQMI_PDS_GET_LBS_ENCRYPT_CFG, // 93 Get LBS security encryption config |
| 662 |
eQMI_PDS_SET_LBS_UPDATE_RATE, // 94 Set LBS security update rate |
| 663 |
eQMI_PDS_SET_CELLDB_CONTROL, // 95 Set cell database control |
| 664 |
eQMI_PDS_READY_IND, // 96 Ready indication |
| 665 |
|
| 666 |
eQMI_PDS_ENUM_END |
| 667 |
}; |
| 668 |
|
| 669 |
/*=========================================================================== |
| 670 |
METHOD: |
| 671 |
IsValid (Inline Method) |
| 672 |
|
| 673 |
DESCRIPTION: |
| 674 |
eQMIMessagePDS validity check |
| 675 |
|
| 676 |
PARAMETERS: |
| 677 |
msgID [ I ] - Enum value being verified |
| 678 |
|
| 679 |
RETURN VALUE: |
| 680 |
bool |
| 681 |
===========================================================================*/ |
| 682 |
inline bool IsValid( eQMIMessagePDS msgID ) |
| 683 |
{ |
| 684 |
bool retVal = false; |
| 685 |
if ( (msgID > eQMI_PDS_ENUM_BEGIN && msgID <= eQMI_PDS_EVENT_IND) |
| 686 |
|| (msgID >= eQMI_PDS_GET_STATE && msgID <= eQMI_PDS_FORCE_RECEIVER_OFF) |
| 687 |
|| (msgID >= eQMI_PDS_GET_METHODS && msgID <= eQMI_PDS_SET_NAV_CFG) |
| 688 |
|| (msgID >= eQMI_PDS_SET_WLAN_BLANK && msgID < eQMI_PDS_ENUM_END) ) |
| 689 |
{ |
| 690 |
retVal = true; |
| 691 |
} |
| 692 |
|
| 693 |
return retVal; |
| 694 |
}; |
| 695 |
|
| 696 |
/*=========================================================================*/ |
| 697 |
// eQMIMessageAUTH Enumeration |
| 698 |
// QMI Authentication Service Type Message ID Enumeration |
| 699 |
/*=========================================================================*/ |
| 700 |
enum eQMIMessageAUTH |
| 701 |
{ |
| 702 |
eQMI_AUTH_ENUM_BEGIN = -1, |
| 703 |
|
| 704 |
eQMI_AUTH_START_EAP = 32, // 32 Start the EAP session |
| 705 |
eQMI_AUTH_SEND_EAP, // 33 Send and receive EAP packets |
| 706 |
eQMI_AUTH_EAP_RESULT_IND, // 34 EAP session result indication |
| 707 |
eQMI_AUTH_GET_EAP_KEYS, // 35 Get the EAP session keys |
| 708 |
eQMI_AUTH_END_EAP, // 36 End the EAP session |
| 709 |
eQMI_AUTH_RUN_AKA, // 37 Runs the AKA algorithm |
| 710 |
eQMI_AUTH_AKA_RESULT_IND, // 38 AKA algorithm result indication |
| 711 |
|
| 712 |
eQMI_AUTH_ENUM_END |
| 713 |
}; |
| 714 |
|
| 715 |
/*=========================================================================== |
| 716 |
METHOD: |
| 717 |
IsValid (Inline Method) |
| 718 |
|
| 719 |
DESCRIPTION: |
| 720 |
eQMIMessageAUTH validity check |
| 721 |
|
| 722 |
PARAMETERS: |
| 723 |
msgID [ I ] - Enum value being verified |
| 724 |
|
| 725 |
RETURN VALUE: |
| 726 |
bool |
| 727 |
===========================================================================*/ |
| 728 |
inline bool IsValid( eQMIMessageAUTH msgID ) |
| 729 |
{ |
| 730 |
bool retVal = false; |
| 731 |
if (msgID >= eQMI_AUTH_START_EAP && msgID < eQMI_AUTH_ENUM_END) |
| 732 |
{ |
| 733 |
retVal = true; |
| 734 |
} |
| 735 |
|
| 736 |
return retVal; |
| 737 |
}; |
| 738 |
|
| 739 |
/*=========================================================================*/ |
| 740 |
// eQMIMessageAT Enumeration |
| 741 |
// QMI AT Command Processor Service Type Message ID Enumeration |
| 742 |
/*=========================================================================*/ |
| 743 |
enum eQMIMessageAT |
| 744 |
{ |
| 745 |
eQMI_AT_ENUM_BEGIN = -1, |
| 746 |
|
| 747 |
eQMI_AT_RESET, // 00 Reset AT service state variables |
| 748 |
|
| 749 |
eQMI_AT_REG_COMMANDS = 32, // 32 Register AT commands to be forwarded |
| 750 |
eQMI_AT_COMMAND_IND, // 33 AT command indication |
| 751 |
eQMI_AT_SEND_RESPONSE, // 34 Send the response to an AT command |
| 752 |
eQMI_AT_ABORT_IND, // 35 AT command abort indication |
| 753 |
|
| 754 |
eQMI_AT_ENUM_END |
| 755 |
}; |
| 756 |
|
| 757 |
/*=========================================================================== |
| 758 |
METHOD: |
| 759 |
IsValid (Inline Method) |
| 760 |
|
| 761 |
DESCRIPTION: |
| 762 |
eQMIMessageAT validity check |
| 763 |
|
| 764 |
PARAMETERS: |
| 765 |
msgID [ I ] - Enum value being verified |
| 766 |
|
| 767 |
RETURN VALUE: |
| 768 |
bool |
| 769 |
===========================================================================*/ |
| 770 |
inline bool IsValid( eQMIMessageAT msgID ) |
| 771 |
{ |
| 772 |
bool retVal = false; |
| 773 |
if ( (msgID == eQMI_AT_RESET) |
| 774 |
|| (msgID >= eQMI_AT_REG_COMMANDS && msgID < eQMI_AT_ENUM_END) ) |
| 775 |
{ |
| 776 |
retVal = true; |
| 777 |
} |
| 778 |
|
| 779 |
return retVal; |
| 780 |
}; |
| 781 |
|
| 782 |
|
| 783 |
/*=========================================================================*/ |
| 784 |
// eQMIMessageVoice Enumeration |
| 785 |
// QMI Voice Service Type Message ID Enumeration |
| 786 |
/*=========================================================================*/ |
| 787 |
enum eQMIMessageVoice |
| 788 |
{ |
| 789 |
eQMI_VOICE_ENUM_BEGIN = -1, |
| 790 |
|
| 791 |
eQMI_VOICE_INDICATION_REG = 3, // 03 Set indication registration state |
| 792 |
|
| 793 |
eQMI_VOICE_CALL_ORIGINATE = 32, // 32 Originate a voice call |
| 794 |
eQMI_VOICE_CALL_END, // 33 End a voice call |
| 795 |
eQMI_VOICE_CALL_ANSWER, // 34 Answer incoming voice call |
| 796 |
|
| 797 |
eQMI_VOICE_GET_CALL_INFO = 36, // 36 Get call information |
| 798 |
eQMI_VOICE_OTASP_STATUS_IND, // 37 OTASP/OTAPA event indication |
| 799 |
eQMI_VOICE_INFO_REC_IND, // 38 New info record indication |
| 800 |
eQMI_VOICE_SEND_FLASH, // 39 Send a simple flash |
| 801 |
eQMI_VOICE_BURST_DTMF, // 40 Send a burst DTMF |
| 802 |
eQMI_VOICE_START_CONT_DTMF, // 41 Starts a continuous DTMF |
| 803 |
eQMI_VOICE_STOP_CONT_DTMF, // 42 Stops a continuous DTMF |
| 804 |
eQMI_VOICE_DTMF_IND, // 43 DTMF event indication |
| 805 |
eQMI_VOICE_SET_PRIVACY_PREF, // 44 Set privacy preference |
| 806 |
eQMI_VOICE_PRIVACY_IND, // 45 Privacy change indication |
| 807 |
eQMI_VOICE_ALL_STATUS_IND, // 46 Voice all call status indication |
| 808 |
eQMI_VOICE_GET_ALL_STATUS, // 47 Get voice all call status |
| 809 |
|
| 810 |
eQMI_VOICE_MANAGE_CALLS = 49, // 49 Manage calls |
| 811 |
eQMI_VOICE_SUPS_NOTIFICATION_IND, // 50 Supplementary service notifications |
| 812 |
eQMI_VOICE_SET_SUPS_SERVICE, // 51 Manage supplementary service |
| 813 |
eQMI_VOICE_GET_CALL_WAITING, // 52 Query sup service call waiting |
| 814 |
eQMI_VOICE_GET_CALL_BARRING, // 53 Query sup service call barring |
| 815 |
eQMI_VOICE_GET_CLIP, // 54 Query sup service CLIP |
| 816 |
eQMI_VOICE_GET_CLIR, // 55 Query sup service CLIR |
| 817 |
eQMI_VOICE_GET_CALL_FWDING, // 56 Query sup service call forwarding |
| 818 |
eQMI_VOICE_SET_CALL_BARRING_PWD, // 57 Set call barring password |
| 819 |
eQMI_VOICE_ORIG_USSD, // 58 Initiate USSD operation then wait |
| 820 |
eQMI_VOICE_ANSWER_USSD, // 59 Answer USSD request |
| 821 |
eQMI_VOICE_CANCEL_USSD, // 60 Cancel USSD operation |
| 822 |
eQMI_VOICE_USSD_RELEASE_IND, // 61 USSD release indication |
| 823 |
eQMI_VOICE_USSD_IND, // 62 USSD request/notification indication |
| 824 |
eQMI_VOICE_UUS_IND, // 63 UUS information indication |
| 825 |
eQMI_VOICE_SET_CONFIG, // 64 Set config |
| 826 |
eQMI_VOICE_GET_CONFIG, // 65 Get config |
| 827 |
eQMI_VOICE_SUPS_IND, // 66 Sup service request indication |
| 828 |
eQMI_VOICE_ASYNC_ORIG_USSD, // 67 Initiate USSD operation |
| 829 |
eQMI_VOICE_ASYNC_USSD_IND = 67, // 67 USSD request/notification indication |
| 830 |
|
| 831 |
eQMI_VOICE_BIND_SUBSCRIPTION, // 68 Bind subscription |
| 832 |
eQMI_VOICE_ALS_SET_LINE_SW, // 69 ALS set line switching |
| 833 |
eQMI_VOICE_ALS_SELECT_LINE, // 70 ALS select line |
| 834 |
eQMI_VOICE_AOC_RESET_ACM, // 71 AOC reset ACM |
| 835 |
eQMI_VOICE_AOC_SET_ACM_MAX, // 72 ACM set ACM maximum |
| 836 |
eQMI_VOICE_AOC_GET_CM_INFO, // 73 AOC get call meter info |
| 837 |
eQMI_VOICE_AOC_LOW_FUNDS_IND, // 74 AOC low funds indication |
| 838 |
eQMI_VOICE_GET_COLP, // 75 Get COLP info |
| 839 |
eQMI_VOICE_GET_COLR, // 76 Get COLR info |
| 840 |
eQMI_VOICE_GET_CNAP, // 77 Get CNAP info |
| 841 |
eQMI_VOICE_MANAGE_IP_CALLS, // 78 Manage VoIP calls |
| 842 |
|
| 843 |
eQMI_VOICE_ENUM_END |
| 844 |
}; |
| 845 |
|
| 846 |
/*=========================================================================== |
| 847 |
METHOD: |
| 848 |
IsValid (Inline Method) |
| 849 |
|
| 850 |
DESCRIPTION: |
| 851 |
eQMIMessageVoice validity check |
| 852 |
|
| 853 |
PARAMETERS: |
| 854 |
msgID [ I ] - Enum value being verified |
| 855 |
|
| 856 |
RETURN VALUE: |
| 857 |
bool |
| 858 |
===========================================================================*/ |
| 859 |
inline bool IsValid( eQMIMessageVoice msgID ) |
| 860 |
{ |
| 861 |
bool retVal = false; |
| 862 |
if ( (msgID == eQMI_VOICE_INDICATION_REG) |
| 863 |
|| (msgID >= eQMI_VOICE_CALL_ORIGINATE && msgID <= eQMI_VOICE_CALL_ANSWER) |
| 864 |
|| (msgID >= eQMI_VOICE_GET_CALL_INFO && msgID <= eQMI_VOICE_GET_ALL_STATUS) |
| 865 |
|| (msgID >= eQMI_VOICE_MANAGE_CALLS && msgID < eQMI_VOICE_ENUM_END) ) |
| 866 |
{ |
| 867 |
retVal = true; |
| 868 |
} |
| 869 |
|
| 870 |
return retVal; |
| 871 |
}; |
| 872 |
|
| 873 |
/*=========================================================================*/ |
| 874 |
// eQMIMessageUIM Enumeration |
| 875 |
// QMI UIM Service Type Message ID Enumeration |
| 876 |
/*=========================================================================*/ |
| 877 |
enum eQMIMessageUIM |
| 878 |
{ |
| 879 |
eQMI_UIM_ENUM_BEGIN = -1, |
| 880 |
|
| 881 |
eQMI_UIM_RESET, // 00 Reset |
| 882 |
|
| 883 |
eQMI_UIM_READ_TRANSPARENT = 32, // 32 Read data |
| 884 |
eQMI_UIM_READ_TRANSPARENT_IND = 32, // 32 Read data indication |
| 885 |
eQMI_UIM_READ_RECORD, // 33 Read one or more records |
| 886 |
eQMI_UIM_READ_RECORD_IND = 33, // 33 Read records indication |
| 887 |
eQMI_UIM_WRITE_TRANSPARENT, // 34 Write data |
| 888 |
eQMI_UIM_WRITE_TRANSPARENT_IND = 34, // 34 Write data indication |
| 889 |
eQMI_UIM_WRITE_RECORD, // 35 Write a record |
| 890 |
eQMI_UIM_WRITE_RECORD_IND = 35, // 35 Write a record indication |
| 891 |
eQMI_UIM_GET_FILE_ATTRIBUTES, // 36 Get file attributes |
| 892 |
eQMI_UIM_GET_FILE_ATTRIBUTES_IND = 36, // 36 Get file attributes indication |
| 893 |
eQMI_UIM_SET_PIN_PROTECTION, // 37 Set PIN protection |
| 894 |
eQMI_UIM_SET_PIN_PROTECTION_IND = 37, // 37 Set PIN protection indication |
| 895 |
eQMI_UIM_VERITFY_PIN, // 38 Verify PIN |
| 896 |
eQMI_UIM_VERITFY_PIN_IND = 38, // 38 Verify PIN indication |
| 897 |
eQMI_UIM_UNBLOCK_PIN, // 39 Unblock PIN |
| 898 |
eQMI_UIM_UNBLOCK_PIN_IND = 39, // 39 Unblock PIN indication |
| 899 |
eQMI_UIM_CHANGE_PIN, // 40 Change PIN |
| 900 |
eQMI_UIM_CHANGE_PIN_IND = 40, // 40 Change PIN indication |
| 901 |
eQMI_UIM_DEPERSONALIZATION, // 41 Depersonalization |
| 902 |
eQMI_UIM_REFRESH_REGISTER, // 42 Refresh register |
| 903 |
eQMI_UIM_REFRESH_OK, // 43 Validate refresh |
| 904 |
eQMI_UIM_REFRESH_COMPLETE, // 44 Complete refresh |
| 905 |
eQMI_UIM_GET_LAST_REFRESH_EVENT, // 45 Get last refresh event |
| 906 |
eQMI_UIM_EVENT_REGISTRATION, // 46 Register for indications |
| 907 |
eQMI_UIM_GET_CARD_STATUS, // 47 Get card status |
| 908 |
eQMI_UIM_POWER_DOWN, // 48 Power down |
| 909 |
eQMI_UIM_POWER_UP, // 49 Power up |
| 910 |
eQMI_UIM_CARD_STATUS_IND, // 50 Card status indication |
| 911 |
eQMI_UIM_REFRESH_IND, // 51 Refresh indication |
| 912 |
eQMI_UIM_AUTHENTICATE, // 52 Authenticate |
| 913 |
eQMI_UIM_AUTHENTICATE_IND = 52, // 52 Authenticate indication |
| 914 |
eQMI_UIM_CLOSE_SESSION, // 53 Close session |
| 915 |
eQMI_UIM_GET_SERVICE_STATUS, // 54 Get service status |
| 916 |
eQMI_UIM_SET_SERVICE_STATUS, // 55 Set service status |
| 917 |
eQMI_UIM_CHANGE_PROVISIONING, // 56 Change provisioning |
| 918 |
eQMI_UIM_GET_LABEL, // 57 Get label |
| 919 |
eQMI_UIM_GET_CONFIG, // 58 Get configuration |
| 920 |
eQMI_UIM_SEND_ADPU, // 59 Send ADPU |
| 921 |
eQMI_UIM_SAP_CONNECTION, // 60 SAP connection |
| 922 |
eQMI_UIM_SAP_REQUEST, // 61 SAP request |
| 923 |
eQMI_UIM_SAP_CONNECTION_IND, // 62 SAP connection indication |
| 924 |
eQMI_UIM_LOGICAL_CHANNEL, // 63 Logical channel |
| 925 |
eQMI_UIM_SUBSCRIPTION_OK, // 64 OK to publish subscription? |
| 926 |
eQMI_UIM_GET_ATR, // 65 Get ATR |
| 927 |
|
| 928 |
eQMI_UIM_ENUM_END |
| 929 |
}; |
| 930 |
|
| 931 |
/*=========================================================================== |
| 932 |
METHOD: |
| 933 |
IsValid (Inline Method) |
| 934 |
|
| 935 |
DESCRIPTION: |
| 936 |
eQMIMessageUIM validity check |
| 937 |
|
| 938 |
PARAMETERS: |
| 939 |
msgID [ I ] - Enum value being verified |
| 940 |
|
| 941 |
RETURN VALUE: |
| 942 |
bool |
| 943 |
===========================================================================*/ |
| 944 |
inline bool IsValid( eQMIMessageUIM msgID ) |
| 945 |
{ |
| 946 |
bool retVal = false; |
| 947 |
if ( (msgID == eQMI_UIM_RESET) |
| 948 |
|| (msgID >= eQMI_UIM_READ_TRANSPARENT && msgID < eQMI_UIM_ENUM_END) ) |
| 949 |
{ |
| 950 |
retVal = true; |
| 951 |
} |
| 952 |
|
| 953 |
return retVal; |
| 954 |
}; |
| 955 |
|
| 956 |
/*=========================================================================*/ |
| 957 |
// eQMIMessagePBM Enumeration |
| 958 |
// QMI PBM Service Type Message ID Enumeration |
| 959 |
/*=========================================================================*/ |
| 960 |
enum eQMIMessagePBM |
| 961 |
{ |
| 962 |
eQMI_PBM_ENUM_BEGIN = -1, |
| 963 |
|
| 964 |
eQMI_PBM_INDICATION_REG = 1, // 01 Set indication registration state |
| 965 |
eQMI_PBM_GET_CAPABILITIES, // 02 Get phonebook capabilities by type |
| 966 |
eQMI_PBM_GET_ALL_CAPABILITIES, // 03 Get all phonebook capabilities |
| 967 |
eQMI_PBM_READ_RECORDS, // 04 Read phonebook records |
| 968 |
eQMI_PBM_READ_RECORD_IND = 4, // 04 Read phonebook record indication |
| 969 |
eQMI_PBM_WRITE_RECORD, // 05 Add/modify a phonebook record |
| 970 |
eQMI_PBM_DELETE_RECORD, // 06 Delete a phonebook record |
| 971 |
eQMI_PBM_DELETE_ALL_RECORDS, // 07 Delete all phonebook records |
| 972 |
eQMI_PBM_SEARCH_RECORDS, // 08 Search phonebook records |
| 973 |
eQMI_PBM_RECORD_UPDATE_IND, // 09 Phonebook record update indication |
| 974 |
eQMI_PBM_REFRESH_IND, // 10 Phonebook refresh indication |
| 975 |
eQMI_PBM_READY_IND, // 11 Phonebook ready indication |
| 976 |
eQMI_PBM_EMERGENCY_LIST_IND, // 12 Phonebook emergency list indication |
| 977 |
eQMI_PBM_ALL_READY_IND, // 13 All phonebooks ready indication |
| 978 |
eQMI_PBM_GET_EMERGENCY_LIST, // 14 Get phonebook emergency list |
| 979 |
eQMI_PBM_GET_ALL_GROUPS, // 15 Get all phonebook groups |
| 980 |
eQMI_PBM_SET_GROUP_INFO, // 16 Set phonebook group info |
| 981 |
eQMI_PBM_GET_STATE, // 17 Get phonebook state |
| 982 |
eQMI_PBM_READ_ALL_HIDDEN_RECS, // 18 Read all hidden phonebook records |
| 983 |
eQMI_PBM_HIDDEN_REC_STATUS_IND, // 19 Hidden record status indication |
| 984 |
eQMI_PBM_GET_NEXT_EMPTY_REC_ID, // 20 Get next empty record ID |
| 985 |
eQMI_PBM_GET_NEXT_REC_ID, // 21 Get next non-empty record ID |
| 986 |
eQMI_PBM_GET_AAS_LIST, // 22 Get AAS list |
| 987 |
eQMI_PBM_SET_AAS, // 23 Add/modify/delete AAS entry |
| 988 |
eQMI_PBM_UPDATE_AAS_IND, // 24 AAS change indication |
| 989 |
eQMI_PBM_UPDATE_GAS_IND, // 25 GAS change indication |
| 990 |
eQMI_PBM_BIND_SUBSCRIPTION, // 26 Bind client to specific subscription |
| 991 |
|
| 992 |
eQMI_PBM_ENUM_END |
| 993 |
}; |
| 994 |
|
| 995 |
/*=========================================================================== |
| 996 |
METHOD: |
| 997 |
IsValid (Inline Method) |
| 998 |
|
| 999 |
DESCRIPTION: |
| 1000 |
eQMIMessagePBM validity check |
| 1001 |
|
| 1002 |
PARAMETERS: |
| 1003 |
msgID [ I ] - Enum value being verified |
| 1004 |
|
| 1005 |
RETURN VALUE: |
| 1006 |
bool |
| 1007 |
===========================================================================*/ |
| 1008 |
inline bool IsValid( eQMIMessagePBM msgID ) |
| 1009 |
{ |
| 1010 |
bool retVal = false; |
| 1011 |
if (msgID >= eQMI_PBM_INDICATION_REG && msgID < eQMI_PBM_ENUM_END) |
| 1012 |
{ |
| 1013 |
retVal = true; |
| 1014 |
} |
| 1015 |
|
| 1016 |
return retVal; |
| 1017 |
}; |
| 1018 |
|
| 1019 |
/*=========================================================================*/ |
| 1020 |
// eQMIMessageLOC Enumeration |
| 1021 |
// QMI LOC Service Type Message ID Enumeration |
| 1022 |
/*=========================================================================*/ |
| 1023 |
enum eQMIMessageLOC |
| 1024 |
{ |
| 1025 |
eQMI_LOC_ENUM_BEGIN = -1, |
| 1026 |
|
| 1027 |
eQMI_LOC_CLIENT_REVISION = 32, // 32 Send client revision to service |
| 1028 |
eQMI_LOC_REGISTER_EVENTS, // 33 Register for events/indications |
| 1029 |
eQMI_LOC_START, // 34 Start GPS session |
| 1030 |
eQMI_LOC_STOP, // 35 Start GPS session |
| 1031 |
eQMI_LOC_POSITION_REPORT_IND, // 36 Position report indication |
| 1032 |
eQMI_LOC_GNSS_SAT_INFO_IND, // 37 GNSS satellite info indication |
| 1033 |
eQMI_LOC_NMEA_IND, // 38 NMEA sentence indication |
| 1034 |
eQMI_LOC_NETWORK_REQ_IND, // 39 Network initiated request indication |
| 1035 |
eQMI_LOC_INJECT_TIME_REQ_IND, // 40 Inject time request indication |
| 1036 |
eQMI_LOC_INJECT_ORBITS_REQ_IND, // 41 Inject predicted orbits req ind |
| 1037 |
eQMI_LOC_INJECT_POS_REQ_IND, // 42 Inject position request indication |
| 1038 |
eQMI_LOC_ENGINE_STATE_IND, // 43 Engine state indication |
| 1039 |
eQMI_LOC_FIX_SESSION_STATE_IND, // 44 Fi session state indication |
| 1040 |
eQMI_LOC_WIFI_REQ_IND, // 45 Wi-Fi request indication |
| 1041 |
eQMI_LOC_SENSOR_DATA_IND, // 46 Sensor streaming ready status ind |
| 1042 |
eQMI_LOC_INJECT_TIME_SYNC_IND, // 47 Inject time sync data indication |
| 1043 |
eQMI_LOC_SPI_STREAM_REQ_IND, // 48 SPI streaming reports req indication |
| 1044 |
eQMI_LOC_SVR_CONNECTION_REQ_IND, // 49 Server connection req indication |
| 1045 |
eQMI_LOC_GET_REV_REQ, // 50 Get service revision |
| 1046 |
eQMI_LOC_GET_REV_REQ_IND = 50, // 50 Get service revision indication |
| 1047 |
eQMI_LOC_GET_FIX_CRIT, // 51 Get fix criteria |
| 1048 |
eQMI_LOC_GET_FIX_CRIT_IND = 51, // 51 Get fix criteria indication |
| 1049 |
eQMI_LOC_NI_USER_RSP, // 52 Network initiated user response |
| 1050 |
eQMI_LOC_NI_USER_RSP_IND = 52, // 52 Network initiated user response ind |
| 1051 |
eQMI_LOC_INJECT_ORBITS, // 53 Inject predicted orbits data |
| 1052 |
eQMI_LOC_INJECT_ORBITS_IND = 53, // 53 Inject predicted orbits indication |
| 1053 |
eQMI_LOC_GET_ORBIT_SRC, // 54 Get predicted orbits data source |
| 1054 |
eQMI_LOC_GET_ORBIT_SRC_IND = 54, // 54 Get predicted orbits data source ind |
| 1055 |
eQMI_LOC_GET_ORBIT_VLD, // 55 Get predicted orbits data validity |
| 1056 |
eQMI_LOC_GET_ORBIT_VLD_IND = 55, // 55 Get predicted orbits validity ind |
| 1057 |
eQMI_LOC_INJECT_UTC, // 56 Inject UTC time |
| 1058 |
eQMI_LOC_INJECT_UTC_IND = 56, // 56 Inject UTC time indication |
| 1059 |
eQMI_LOC_INJECT_POS, // 57 Inject position |
| 1060 |
eQMI_LOC_INJECT_POS_IND = 57, // 57 Inject position indication |
| 1061 |
eQMI_LOC_SET_ENG_LOCK, // 58 Set engine lock |
| 1062 |
eQMI_LOC_SET_ENG_LOCK_IND = 58, // 58 Set engine lock indication |
| 1063 |
eQMI_LOC_GET_ENG_LOCK, // 59 Get engine lock |
| 1064 |
eQMI_LOC_GET_ENG_LOCK_IND = 59, // 59 Get engine lock indication |
| 1065 |
eQMI_LOC_SET_SBAS_CFG, // 60 Set SBAS config |
| 1066 |
eQMI_LOC_SET_SBAS_CFG_IND = 60, // 60 Set SBAS config indication |
| 1067 |
eQMI_LOC_GET_SBAS_CFG, // 61 Get SBAS config |
| 1068 |
eQMI_LOC_GET_SBAS_CFG_IND = 61, // 61 Get SBAS config indication |
| 1069 |
eQMI_LOC_SET_NMEA_TYPS, // 62 Set NMEA sentence types |
| 1070 |
eQMI_LOC_SET_NMEA_TYPS_IND = 62, // 62 Set NMEA sentence types indication |
| 1071 |
eQMI_LOC_GET_NMEA_TYPS, // 63 Get NMEA sentence types |
| 1072 |
eQMI_LOC_GET_NMEA_TYPS_IND = 63, // 63 Get NMEA sentence types indication |
| 1073 |
eQMI_LOC_SET_LPM_CFG, // 64 Set low power mode config |
| 1074 |
eQMI_LOC_SET_LPM_CFG_IND = 64, // 64 Set low power mode config indication |
| 1075 |
eQMI_LOC_GET_LPM_CFG, // 65 Get low power mode config |
| 1076 |
eQMI_LOC_GET_LPM_CFG_IND = 65, // 65 Get low power mode config indication |
| 1077 |
eQMI_LOC_SET_SERVER, // 66 Set A-GPS server |
| 1078 |
eQMI_LOC_SET_SERVER_IND = 66, // 66 Set A-GPS server indication |
| 1079 |
eQMI_LOC_GET_SERVER, // 67 Set A-GPS server |
| 1080 |
eQMI_LOC_GET_SERVER_IND = 67, // 67 Set A-GPS server indication |
| 1081 |
eQMI_LOC_DEL_ASST_DATA, // 68 Delete assistance data |
| 1082 |
eQMI_LOC_DEL_ASST_DATA_IND = 68, // 68 Delete assistance data indication |
| 1083 |
eQMI_LOC_SET_XTRA_T, // 69 Set XTRA_T session control |
| 1084 |
eQMI_LOC_SET_XTRA_T_IND = 69, // 69 Set XTRA_T session control indication |
| 1085 |
eQMI_LOC_GET_XTRA_T, // 70 Get XTRA_T session control |
| 1086 |
eQMI_LOC_GET_XTRA_T_IND = 70, // 70 Get XTRA_T session control indication |
| 1087 |
eQMI_LOC_INJECT_WIFI, // 71 Inject Wi-Fi info |
| 1088 |
eQMI_LOC_INJECT_WIFI_IND = 71, // 71 Inject Wi-Fi info indication |
| 1089 |
eQMI_LOC_NOTIFY_WIFI, // 72 Notify server of Wi-Fi status |
| 1090 |
eQMI_LOC_NOTIFY_WIFI_IND = 72, // 72 Notify server of Wi-Fi status ind |
| 1091 |
eQMI_LOC_GET_REG_EVENTS, // 73 Get registered event status |
| 1092 |
eQMI_LOC_GET_REG_EVENTS_IND = 73,// 73 Get registered event status ind |
| 1093 |
eQMI_LOC_SET_OP_MODE, // 74 Set operation mode |
| 1094 |
eQMI_LOC_SET_OP_MODE_IND = 74, // 74 Set operation mode indication |
| 1095 |
eQMI_LOC_GET_OP_MODE, // 75 Get operation mode |
| 1096 |
eQMI_LOC_GET_OP_MODE_IND = 75, // 75 Get operation mode indication |
| 1097 |
eQMI_LOC_SET_SPI_STATUS, // 76 Set SPI status |
| 1098 |
eQMI_LOC_SET_SPI_STATUS_IND = 76,// 76 Set SPI status indication |
| 1099 |
eQMI_LOC_INJECT_SENSOR, // 77 Inject sensor data |
| 1100 |
eQMI_LOC_INJECT_SENSOR_IND = 77, // 77 Inject sensor data indication |
| 1101 |
eQMI_LOC_INJ_TIME_SYNC, // 78 Inject time sync data |
| 1102 |
eQMI_LOC_INJ_TIME_SYNC_IND = 78, // 78 Inject time sync data indication |
| 1103 |
eQMI_LOC_SET_CRADLE, // 79 Set cradle mount config |
| 1104 |
eQMI_LOC_SET_CRADLE_IND = 79, // 79 Set cradle mount config indication |
| 1105 |
eQMI_LOC_GET_CRADLE, // 80 Get cradle mount config |
| 1106 |
eQMI_LOC_GET_CRADLE_IND = 80, // 80 Get cradle mount config indication |
| 1107 |
eQMI_LOC_SET_EXT_POWER, // 81 Set external power config |
| 1108 |
eQMI_LOC_SET_EXT_POWER_IND = 81, // 81 Set external power config indication |
| 1109 |
eQMI_LOC_GET_EXT_POWER, // 82 Get external power config |
| 1110 |
eQMI_LOC_GET_EXT_POWER_IND = 82, // 82 Get external power config indication |
| 1111 |
eQMI_LOC_INFORM_CONN, // 83 Inform service of connection status |
| 1112 |
eQMI_LOC_INFORM_CONN_IND = 83, // 83 Inform connection status indication |
| 1113 |
eQMI_LOC_SET_PROTO_CFG, // 84 Set protocol config |
| 1114 |
eQMI_LOC_SET_PROTO_CFG_IND = 84, // 84 Set protocol config indication |
| 1115 |
eQMI_LOC_GET_PROTO_CFG, // 85 Get protocol config |
| 1116 |
eQMI_LOC_GET_PROTO_CFG_IND = 85, // 85 Get protocol config indication |
| 1117 |
eQMI_LOC_SET_SENSOR_CFG, // 86 Set sensor control config |
| 1118 |
eQMI_LOC_SET_SENSOR_CFG_IND = 86,// 86 Set sensor control config indication |
| 1119 |
eQMI_LOC_GET_SENSOR_CFG, // 87 Get sensor control config |
| 1120 |
eQMI_LOC_GET_SENSOR_CFG_IND = 87,// 87 Get sensor control config indication |
| 1121 |
eQMI_LOC_SET_SENSOR_PRP, // 88 Set sensor properties |
| 1122 |
eQMI_LOC_SET_SENSOR_PRP_IND = 88,// 88 Set sensor properties indication |
| 1123 |
eQMI_LOC_GET_SENSOR_PRP, // 89 Get sensor properties |
| 1124 |
eQMI_LOC_GET_SENSOR_PRP_IND = 89,// 89 Get sensor properties indication |
| 1125 |
eQMI_LOC_SET_SENSOR_PRF, // 90 Set sensor performance control |
| 1126 |
eQMI_LOC_SET_SENSOR_PRF_IND = 90,// 90 Set sensor performance control ind |
| 1127 |
eQMI_LOC_GET_SENSOR_PRF, // 91 Get sensor performance control |
| 1128 |
eQMI_LOC_GET_SENSOR_PRF_IND = 91,// 91 Get sensor performance control ind |
| 1129 |
|
| 1130 |
eQMI_LOC_ENUM_END |
| 1131 |
}; |
| 1132 |
|
| 1133 |
/*=========================================================================== |
| 1134 |
METHOD: |
| 1135 |
IsValid (Inline Method) |
| 1136 |
|
| 1137 |
DESCRIPTION: |
| 1138 |
eQMIMessageLOC validity check |
| 1139 |
|
| 1140 |
PARAMETERS: |
| 1141 |
msgID [ I ] - Enum value being verified |
| 1142 |
|
| 1143 |
RETURN VALUE: |
| 1144 |
bool |
| 1145 |
===========================================================================*/ |
| 1146 |
inline bool IsValid( eQMIMessageLOC msgID ) |
| 1147 |
{ |
| 1148 |
bool retVal = false; |
| 1149 |
if (msgID >= eQMI_LOC_CLIENT_REVISION && msgID < eQMI_LOC_ENUM_END) |
| 1150 |
{ |
| 1151 |
retVal = true; |
| 1152 |
} |
| 1153 |
|
| 1154 |
return retVal; |
| 1155 |
}; |
| 1156 |
|
| 1157 |
/*=========================================================================*/ |
| 1158 |
// eQMIMessageSAR Enumeration |
| 1159 |
// QMI SAR Service Type Message ID Enumeration |
| 1160 |
/*=========================================================================*/ |
| 1161 |
enum eQMIMessageSAR |
| 1162 |
{ |
| 1163 |
eQMI_SAR_ENUM_BEGIN = -1, |
| 1164 |
|
| 1165 |
eQMI_SAR_SET_RF_SAR_STATE = 1, // 01 Set the RF SAR state |
| 1166 |
eQMI_SAR_GET_RF_SAR_STATE, // 02 Get the RF SAR state |
| 1167 |
|
| 1168 |
eQMI_SAR_ENUM_END |
| 1169 |
}; |
| 1170 |
|
| 1171 |
/*=========================================================================== |
| 1172 |
METHOD: |
| 1173 |
IsValid (Inline Method) |
| 1174 |
|
| 1175 |
DESCRIPTION: |
| 1176 |
eQMIMessageSAR validity check |
| 1177 |
|
| 1178 |
PARAMETERS: |
| 1179 |
msgID [ I ] - Enum value being verified |
| 1180 |
|
| 1181 |
RETURN VALUE: |
| 1182 |
bool |
| 1183 |
===========================================================================*/ |
| 1184 |
inline bool IsValid( eQMIMessageSAR msgID ) |
| 1185 |
{ |
| 1186 |
bool retVal = false; |
| 1187 |
if (msgID >= eQMI_SAR_SET_RF_SAR_STATE && msgID < eQMI_SAR_ENUM_END) |
| 1188 |
{ |
| 1189 |
retVal = true; |
| 1190 |
} |
| 1191 |
|
| 1192 |
return retVal; |
| 1193 |
}; |
| 1194 |
|
| 1195 |
/*=========================================================================*/ |
| 1196 |
// eQMIMessageRMTFS Enumeration |
| 1197 |
// QMI Remote Filesystem Service Type Message ID Enumeration |
| 1198 |
/*=========================================================================*/ |
| 1199 |
enum eQMIMessageRMTFS |
| 1200 |
{ |
| 1201 |
eQMI_RMTFS_ENUM_BEGIN = -1, |
| 1202 |
|
| 1203 |
eQMI_RMTFS_OPEN = 1, // 01 Request an open |
| 1204 |
eQMI_RMTFS_CLOSE, // 02 Request a close |
| 1205 |
eQMI_RMTFS_IO_VECTOR, // 03 Request an I/O vector operation |
| 1206 |
eQMI_RMTFS_ALLOC_BUFFER, // 04 Allocate a buffer |
| 1207 |
eQMI_RMTFS_GET_DEV_ERROR, // 05 Return device error for last request |
| 1208 |
eQMI_RMTFS_FORCE_SYNC_IND, // 06 Force sync indication |
| 1209 |
|
| 1210 |
eQMI_RMTFS_ENUM_END |
| 1211 |
}; |
| 1212 |
|
| 1213 |
/*=========================================================================== |
| 1214 |
METHOD: |
| 1215 |
IsValid (Inline Method) |
| 1216 |
|
| 1217 |
DESCRIPTION: |
| 1218 |
eQMIMessageRMTFS validity check |
| 1219 |
|
| 1220 |
PARAMETERS: |
| 1221 |
msgID [ I ] - Enum value being verified |
| 1222 |
|
| 1223 |
RETURN VALUE: |
| 1224 |
bool |
| 1225 |
===========================================================================*/ |
| 1226 |
inline bool IsValid( eQMIMessageRMTFS msgID ) |
| 1227 |
{ |
| 1228 |
bool retVal = false; |
| 1229 |
if (msgID >= eQMI_RMTFS_OPEN && msgID < eQMI_RMTFS_ENUM_END) |
| 1230 |
{ |
| 1231 |
retVal = true; |
| 1232 |
} |
| 1233 |
|
| 1234 |
return retVal; |
| 1235 |
}; |
| 1236 |
|
| 1237 |
/*=========================================================================*/ |
| 1238 |
// eQMIMessageCAT Enumeration |
| 1239 |
// QMI CAT Service Type Message ID Enumeration |
| 1240 |
/*=========================================================================*/ |
| 1241 |
enum eQMIMessageCAT |
| 1242 |
{ |
| 1243 |
eQMI_CAT_ENUM_BEGIN = -1, |
| 1244 |
|
| 1245 |
eQMI_CAT_RESET, // 00 Reset CAT service state variables |
| 1246 |
eQMI_CAT_SET_EVENT, // 01 Set new message report conditions |
| 1247 |
eQMI_CAT_EVENT_IND = 1, // 01 New message report indication |
| 1248 |
|
| 1249 |
eQMI_CAT_GET_STATE = 32, // 32 Get service state information |
| 1250 |
eQMI_CAT_SEND_TERMINAL, // 33 Send a terminal response |
| 1251 |
eQMI_CAT_SEND_ENVELOPE, // 34 Send an envelope command |
| 1252 |
eQMI_CAT_GET_EVENT, // 35 Get last message report |
| 1253 |
eQMI_CAT_SEND_DECODED_TERMINAL, // 36 Send a decoded terminal response |
| 1254 |
eQMI_CAT_SEND_DECODED_ENVELOPE, // 37 Send a decoded envelope command |
| 1255 |
eQMI_CAT_EVENT_CONFIRMATION, // 38 Event confirmation |
| 1256 |
eQMI_CAT_SCWS_OPEN_CHANNEL, // 39 Open a channel to a SCWS |
| 1257 |
eQMI_CAT_SCWS_OPEN_IND = 39, // 39 SCWS open channel indication |
| 1258 |
eQMI_CAT_SCWS_CLOSE_CHANNEL, // 40 Close a channel to a SCWS |
| 1259 |
eQMI_CAT_SCWS_CLOSE_IND = 40, // 40 SCWS close channel indication |
| 1260 |
eQMI_CAT_SCWS_SEND_DATA, // 41 Send data to a SCWS |
| 1261 |
eQMI_CAT_SCWS_SEND_IND = 41, // 41 SCWS send data indication |
| 1262 |
eQMI_CAT_SCWS_DATA_AVAILABLE, // 42 Indicate that data is available |
| 1263 |
eQMI_CAT_SCWS_CHANNEL_STATUS, // 43 Provide channel status |
| 1264 |
|
| 1265 |
eQMI_CAT_ENUM_END |
| 1266 |
}; |
| 1267 |
|
| 1268 |
/*=========================================================================== |
| 1269 |
METHOD: |
| 1270 |
IsValid (Inline Method) |
| 1271 |
|
| 1272 |
DESCRIPTION: |
| 1273 |
eQMIMessageCAT validity check |
| 1274 |
|
| 1275 |
PARAMETERS: |
| 1276 |
msgID [ I ] - Enum value being verified |
| 1277 |
|
| 1278 |
RETURN VALUE: |
| 1279 |
bool |
| 1280 |
===========================================================================*/ |
| 1281 |
inline bool IsValid( eQMIMessageCAT msgID ) |
| 1282 |
{ |
| 1283 |
bool retVal = false; |
| 1284 |
if ( (msgID > eQMI_CAT_ENUM_BEGIN && msgID <= eQMI_CAT_EVENT_IND) |
| 1285 |
|| (msgID >= eQMI_CAT_GET_STATE && msgID < eQMI_CAT_ENUM_END) ) |
| 1286 |
{ |
| 1287 |
retVal = true; |
| 1288 |
} |
| 1289 |
|
| 1290 |
return retVal; |
| 1291 |
}; |
| 1292 |
|
| 1293 |
/*=========================================================================*/ |
| 1294 |
// eQMIMessageRMS Enumeration |
| 1295 |
// QMI RMS Service Type Message ID Enumeration |
| 1296 |
/*=========================================================================*/ |
| 1297 |
enum eQMIMessageRMS |
| 1298 |
{ |
| 1299 |
eQMI_RMS_ENUM_BEGIN = -1, |
| 1300 |
|
| 1301 |
eQMI_RMS_RESET, // 00 Reset RMS service state variables |
| 1302 |
|
| 1303 |
eQMI_RMS_GET_SMS_WAKE = 32, // 32 Get SMS wake settings |
| 1304 |
eQMI_RMS_SET_SMS_WAKE, // 33 Set SMS wake settings |
| 1305 |
|
| 1306 |
eQMI_RMS_ENUM_END |
| 1307 |
}; |
| 1308 |
|
| 1309 |
/*=========================================================================== |
| 1310 |
METHOD: |
| 1311 |
IsValid (Inline Method) |
| 1312 |
|
| 1313 |
DESCRIPTION: |
| 1314 |
eQMIMessageRMS validity check |
| 1315 |
|
| 1316 |
PARAMETERS: |
| 1317 |
msgID [ I ] - Enum value being verified |
| 1318 |
|
| 1319 |
RETURN VALUE: |
| 1320 |
bool |
| 1321 |
===========================================================================*/ |
| 1322 |
inline bool IsValid( eQMIMessageRMS msgID ) |
| 1323 |
{ |
| 1324 |
bool retVal = false; |
| 1325 |
if ( (msgID == eQMI_RMS_RESET) |
| 1326 |
|| (msgID >= eQMI_RMS_GET_SMS_WAKE && msgID < eQMI_RMS_ENUM_END) ) |
| 1327 |
{ |
| 1328 |
retVal = true; |
| 1329 |
} |
| 1330 |
|
| 1331 |
return retVal; |
| 1332 |
}; |
| 1333 |
|
| 1334 |
/*=========================================================================*/ |
| 1335 |
// eQMIMessageOMA Enumeration |
| 1336 |
// QMI OMA-DM Service Type Message ID Enumeration |
| 1337 |
/*=========================================================================*/ |
| 1338 |
enum eQMIMessageOMA |
| 1339 |
{ |
| 1340 |
eQMI_OMA_ENUM_BEGIN = -1, |
| 1341 |
|
| 1342 |
eQMI_OMA_RESET, // 00 Reset OMA service state variables |
| 1343 |
eQMI_OMA_SET_EVENT, // 01 Set OMA report conditions |
| 1344 |
eQMI_OMA_EVENT_IND = 1, // 01 OMA report indication |
| 1345 |
|
| 1346 |
eQMI_OMA_START_SESSION = 32, // 32 Start client inititated session |
| 1347 |
eQMI_OMA_CANCEL_SESSION, // 33 Cancel session |
| 1348 |
eQMI_OMA_GET_SESSION_INFO, // 34 Get session information |
| 1349 |
eQMI_OMA_SEND_SELECTION, // 35 Send selection for net inititated msg |
| 1350 |
eQMI_OMA_GET_FEATURES, // 36 Get feature settings |
| 1351 |
eQMI_OMA_SET_FEATURES, // 37 Set feature settings |
| 1352 |
|
| 1353 |
eQMI_OMA_ENUM_END |
| 1354 |
}; |
| 1355 |
|
| 1356 |
/*=========================================================================== |
| 1357 |
METHOD: |
| 1358 |
IsValid (Inline Method) |
| 1359 |
|
| 1360 |
DESCRIPTION: |
| 1361 |
eQMIMessageOMA validity check |
| 1362 |
|
| 1363 |
PARAMETERS: |
| 1364 |
msgID [ I ] - Enum value being verified |
| 1365 |
|
| 1366 |
RETURN VALUE: |
| 1367 |
bool |
| 1368 |
===========================================================================*/ |
| 1369 |
inline bool IsValid( eQMIMessageOMA msgID ) |
| 1370 |
{ |
| 1371 |
bool retVal = false; |
| 1372 |
if ( (msgID > eQMI_OMA_ENUM_BEGIN && msgID <= eQMI_OMA_EVENT_IND) |
| 1373 |
|| (msgID >= eQMI_OMA_START_SESSION && msgID < eQMI_OMA_ENUM_END) ) |
| 1374 |
{ |
| 1375 |
retVal = true; |
| 1376 |
} |
| 1377 |
|
| 1378 |
return retVal; |
| 1379 |
}; |
| 1380 |
|
| 1381 |
/*=========================================================================*/ |
| 1382 |
// eQMIResultCode Enumeration |
| 1383 |
// QMI Result Code Enumeration |
| 1384 |
/*=========================================================================*/ |
| 1385 |
enum eQMIResultCode |
| 1386 |
{ |
| 1387 |
eQMI_RC_ENUM_BEGIN = -1, |
| 1388 |
|
| 1389 |
eQMI_RC_SUCCESS, // 00 Success |
| 1390 |
eQMI_RC_ERROR, // 01 Error |
| 1391 |
|
| 1392 |
eQMI_RC_ENUM_END |
| 1393 |
}; |
| 1394 |
|
| 1395 |
/*=========================================================================== |
| 1396 |
METHOD: |
| 1397 |
IsValid (Inline Method) |
| 1398 |
|
| 1399 |
DESCRIPTION: |
| 1400 |
eQMIResultCode validity check |
| 1401 |
|
| 1402 |
PARAMETERS: |
| 1403 |
rc [ I ] - Enum value being verified |
| 1404 |
|
| 1405 |
RETURN VALUE: |
| 1406 |
bool |
| 1407 |
===========================================================================*/ |
| 1408 |
inline bool IsValid( eQMIResultCode rc ) |
| 1409 |
{ |
| 1410 |
bool retVal = false; |
| 1411 |
if (rc > eQMI_RC_ENUM_BEGIN && rc < eQMI_RC_ENUM_END) |
| 1412 |
{ |
| 1413 |
retVal = true; |
| 1414 |
} |
| 1415 |
|
| 1416 |
return retVal; |
| 1417 |
}; |
| 1418 |
|
| 1419 |
/*=========================================================================*/ |
| 1420 |
// eQMIErrorCode Enumeration |
| 1421 |
// QMI Error Code Enumeration |
| 1422 |
/*=========================================================================*/ |
| 1423 |
enum eQMIErrorCode |
| 1424 |
{ |
| 1425 |
eQMI_ERR_ENUM_BEGIN = -1, |
| 1426 |
|
| 1427 |
eQMI_ERR_NONE, // 00 |
| 1428 |
eQMI_ERR_MALFORMED_MSG, // 01 |
| 1429 |
eQMI_ERR_NO_MEMORY, // 02 |
| 1430 |
eQMI_ERR_INTERNAL, // 03 |
| 1431 |
eQMI_ERR_ABORTED, // 04 |
| 1432 |
eQMI_ERR_CLIENT_IDS_EXHAUSTED, // 05 |
| 1433 |
eQMI_ERR_UNABORTABLE_TRANSACTION, // 06 |
| 1434 |
eQMI_ERR_INVALID_CLIENT_ID, // 07 |
| 1435 |
eQMI_ERR_NO_THRESHOLDS, // 08 |
| 1436 |
eQMI_ERR_INVALID_HANDLE, // 09 |
| 1437 |
eQMI_ERR_INVALID_PROFILE, // 10 |
| 1438 |
eQMI_ERR_INVALID_PIN_ID, // 11 |
| 1439 |
eQMI_ERR_INCORRECT_PIN, // 12 |
| 1440 |
eQMI_ERR_NO_NETWORK_FOUND, // 13 |
| 1441 |
eQMI_ERR_CALL_FAILED, // 14 |
| 1442 |
eQMI_ERR_OUT_OF_CALL, // 15 |
| 1443 |
eQMI_ERR_NOT_PROVISIONED, // 16 |
| 1444 |
eQMI_ERR_MISSING_ARG, // 17 |
| 1445 |
eQMI_ERR_18, // 18 |
| 1446 |
eQMI_ERR_ARG_TOO_LONG, // 19 |
| 1447 |
eQMI_ERR_20, // 20 |
| 1448 |
eQMI_ERR_21, // 21 |
| 1449 |
eQMI_ERR_INVALID_TX_ID, // 22 |
| 1450 |
eQMI_ERR_DEVICE_IN_USE, // 23 |
| 1451 |
eQMI_ERR_OP_NETWORK_UNSUPPORTED, // 24 |
| 1452 |
eQMI_ERR_OP_DEVICE_UNSUPPORTED, // 25 |
| 1453 |
eQMI_ERR_NO_EFFECT, // 26 |
| 1454 |
eQMI_ERR_NO_FREE_PROFILE, // 27 |
| 1455 |
eQMI_ERR_INVALID_PDP_TYPE, // 28 |
| 1456 |
eQMI_ERR_INVALID_TECH_PREF, // 29 |
| 1457 |
eQMI_ERR_INVALID_PROFILE_TYPE, // 30 |
| 1458 |
eQMI_ERR_INVALID_SERVICE_TYPE, // 31 |
| 1459 |
eQMI_ERR_INVALID_REGISTER_ACTION, // 32 |
| 1460 |
eQMI_ERR_INVALID_PS_ATTACH_ACTION, // 33 |
| 1461 |
eQMI_ERR_AUTHENTICATION_FAILED, // 34 |
| 1462 |
eQMI_ERR_PIN_BLOCKED, // 35 |
| 1463 |
eQMI_ERR_PIN_ALWAYS_BLOCKED, // 36 |
| 1464 |
eQMI_ERR_UIM_UNINITIALIZED, // 37 |
| 1465 |
eQMI_ERR_MAX_QOS_REQUESTS_IN_USE, // 38 |
| 1466 |
eQMI_ERR_INCORRECT_FLOW_FILTER, // 39 |
| 1467 |
eQMI_ERR_NETWORK_QOS_UNAWARE, // 40 |
| 1468 |
eQMI_ERR_INVALID_QOS_ID, // 41 |
| 1469 |
eQMI_ERR_REQUESTED_NUM_UNSUPPORTED, // 42 |
| 1470 |
eQMI_ERR_INTERFACE_NOT_FOUND, // 43 |
| 1471 |
eQMI_ERR_FLOW_SUSPENDED, // 44 |
| 1472 |
eQMI_ERR_INVALID_DATA_FORMAT, // 45 |
| 1473 |
eQMI_ERR_GENERAL, // 46 |
| 1474 |
eQMI_ERR_UNKNOWN, // 47 |
| 1475 |
eQMI_ERR_INVALID_ARG, // 48 |
| 1476 |
eQMI_ERR_INVALID_INDEX, // 49 |
| 1477 |
eQMI_ERR_NO_ENTRY, // 50 |
| 1478 |
eQMI_ERR_DEVICE_STORAGE_FULL, // 51 |
| 1479 |
eQMI_ERR_DEVICE_NOT_READY, // 52 |
| 1480 |
eQMI_ERR_NETWORK_NOT_READY, // 53 |
| 1481 |
eQMI_ERR_WMS_CAUSE_CODE, // 54 |
| 1482 |
eQMI_ERR_WMS_MESSAGE_NOT_SENT, // 55 |
| 1483 |
eQMI_ERR_WMS_MESSAGE_DELIVERY_FAILURE, // 56 |
| 1484 |
eQMI_ERR_WMS_INVALID_MESSAGE_ID, // 57 |
| 1485 |
eQMI_ERR_WMS_ENCODING, // 58 |
| 1486 |
eQMI_ERR_AUTHENTICATION_LOCK, // 59 |
| 1487 |
eQMI_ERR_INVALID_TRANSITION, // 60 |
| 1488 |
eQMI_ERR_61, // 61 |
| 1489 |
eQMI_ERR_62, // 62 |
| 1490 |
eQMI_ERR_63, // 63 |
| 1491 |
eQMI_ERR_64, // 64 |
| 1492 |
eQMI_ERR_SESSION_INACTIVE, // 65 |
| 1493 |
eQMI_ERR_SESSION_INVALID, // 66 |
| 1494 |
eQMI_ERR_SESSION_OWNERSHIP, // 67 |
| 1495 |
eQMI_ERR_INSUFFICIENT_RESOURCES, // 68 |
| 1496 |
eQMI_ERR_DISABLED, // 69 |
| 1497 |
eQMI_ERR_INVALID_OPERATION, // 70 |
| 1498 |
eQMI_ERR_INVALID_QMI_CMD, // 71 |
| 1499 |
eQMI_ERR_WMS_TPDU_TYPE, // 72 |
| 1500 |
eQMI_ERR_WMS_SMSC_ADDR, // 73 |
| 1501 |
eQMI_ERR_INFO_UNAVAILABLE, // 74 |
| 1502 |
eQMI_ERR_SEGMENT_TOO_LONG, // 75 |
| 1503 |
eQMI_ERR_SEGMENT_ORDER, // 76 |
| 1504 |
eQMI_ERR_BUNDLING_NOT_SUPPORTED, // 77 |
| 1505 |
eQMI_ERR_78, // 78 |
| 1506 |
eQMI_ERR_POLICY_MISMATCH, // 79 |
| 1507 |
eQMI_ERR_SIM_FILE_NOT_FOUND, // 80 |
| 1508 |
eQMI_ERR_EXTENDED_EXTERNAL, // 81 |
| 1509 |
eQMI_ERR_ACCESS_DENIED, // 82 |
| 1510 |
eQMI_ERR_HARDWARE_RESTRICTED, // 83 |
| 1511 |
eQMI_ERR_ACK_NOT_SENT, // 84 |
| 1512 |
|
| 1513 |
eQMI_ERR_INCOMPATIBLE_STATE = 90, // 90 |
| 1514 |
eQMI_ERR_FDN_RESTRICT, // 91 |
| 1515 |
eQMI_ERR_SUPS_FAILURE_CAUSE, // 92 |
| 1516 |
eQMI_ERR_NO_RADIO, // 93 |
| 1517 |
eQMI_ERR_NOT_SUPPORTED, // 94 |
| 1518 |
|
| 1519 |
eQMI_ERR_CARD_CALL_CONTROL_FAILED = 96, // 96 |
| 1520 |
eQMI_ERR_NETWORK_ABORTED, // 97 |
| 1521 |
|
| 1522 |
eQMI_ERR_CAT_EVT_REG_FAILED, // 61441 |
| 1523 |
eQMI_ERR_CAT_INVALID_TR, // 61442 |
| 1524 |
eQMI_ERR_CAT_INVALID_ENV_CMD, // 61443 |
| 1525 |
eQMI_ERR_CAT_ENV_CMD_BUSY, // 61444 |
| 1526 |
eQMI_ERR_CAT_ENV_CMD_FAIL, // 61445 |
| 1527 |
|
| 1528 |
eQMI_ERR_ENUM_END |
| 1529 |
}; |
| 1530 |
|
| 1531 |
/*=========================================================================== |
| 1532 |
METHOD: |
| 1533 |
IsValid (Inline Method) |
| 1534 |
|
| 1535 |
DESCRIPTION: |
| 1536 |
eQMIErrorCode validity check |
| 1537 |
|
| 1538 |
PARAMETERS: |
| 1539 |
ec [ I ] - Enum value being verified |
| 1540 |
|
| 1541 |
RETURN VALUE: |
| 1542 |
bool |
| 1543 |
===========================================================================*/ |
| 1544 |
inline bool IsValid( eQMIErrorCode ec ) |
| 1545 |
{ |
| 1546 |
bool retVal = false; |
| 1547 |
if ( (ec > eQMI_ERR_ENUM_BEGIN && ec <= eQMI_ERR_ACK_NOT_SENT) |
| 1548 |
|| (ec >= eQMI_ERR_INCOMPATIBLE_STATE && ec <= eQMI_ERR_NOT_SUPPORTED) |
| 1549 |
|| (ec == eQMI_ERR_CARD_CALL_CONTROL_FAILED) |
| 1550 |
|| (ec == eQMI_ERR_NETWORK_ABORTED) |
| 1551 |
|| (ec >= eQMI_ERR_CAT_EVT_REG_FAILED && ec < eQMI_ERR_ENUM_END) ) |
| 1552 |
{ |
| 1553 |
retVal = true; |
| 1554 |
} |
| 1555 |
|
| 1556 |
return retVal; |
| 1557 |
}; |
| 1558 |
|
| 1559 |
/*=========================================================================*/ |
| 1560 |
// eQMICallEndReason Enumeration |
| 1561 |
// QMI Call End Reason Enumeration |
| 1562 |
/*=========================================================================*/ |
| 1563 |
enum eQMICallEndReason |
| 1564 |
{ |
| 1565 |
eQMI_CALL_END_REASON_BEGIN = -1, |
| 1566 |
|
| 1567 |
// General |
| 1568 |
eQMI_CALL_END_REASON_UNSPECIFIED = 1, // 1 |
| 1569 |
eQMI_CALL_END_REASON_CLIENT_END, // 2 |
| 1570 |
eQMI_CALL_END_REASON_NO_SRV, // 3 |
| 1571 |
eQMI_CALL_END_REASON_FADE, // 4 |
| 1572 |
eQMI_CALL_END_REASON_REL_NORMAL, // 5 |
| 1573 |
eQMI_CALL_END_REASON_ACC_IN_PROG, // 6 |
| 1574 |
eQMI_CALL_END_REASON_ACC_FAIL, // 7 |
| 1575 |
eQMI_CALL_END_REASON_REDIR_OR_HANDOFF, // 8 |
| 1576 |
eQMI_CALL_END_REASON_CLOSE_IN_PROGRESS, // 9 |
| 1577 |
eQMI_CALL_END_REASON_AUTH_FAILED, // 10 |
| 1578 |
eQMI_CALL_END_REASON_INTERNAL, // 11 |
| 1579 |
|
| 1580 |
// CDMA |
| 1581 |
eQMI_CALL_END_REASON_CDMA_LOCK = 500, // 500 |
| 1582 |
eQMI_CALL_END_REASON_INTERCEPT, // 501 |
| 1583 |
eQMI_CALL_END_REASON_REORDER, // 502 |
| 1584 |
eQMI_CALL_END_REASON_REL_SO_REJ, // 503 |
| 1585 |
eQMI_CALL_END_REASON_INCOM_CALL, // 504 |
| 1586 |
eQMI_CALL_END_REASON_ALERT_STOP, // 505 |
| 1587 |
eQMI_CALL_END_REASON_ACTIVATION, // 506 |
| 1588 |
eQMI_CALL_END_REASON_MAX_ACCESS_PROBE, // 507 |
| 1589 |
eQMI_CALL_END_REASON_CCS_NOT_SUPPORTED_BY_BS, // 508 |
| 1590 |
eQMI_CALL_END_REASON_NO_RESPONSE_FROM_BS, // 509 |
| 1591 |
eQMI_CALL_END_REASON_REJECTED_BY_BS, // 510 |
| 1592 |
eQMI_CALL_END_REASON_INCOMPATIBLE, // 511 |
| 1593 |
eQMI_CALL_END_REASON_ALREADY_IN_TC, // 512 |
| 1594 |
eQMI_CALL_END_REASON_USER_CALL_ORIG_DURING_GPS, // 513 |
| 1595 |
eQMI_CALL_END_REASON_USER_CALL_ORIG_DURING_SMS, // 514 |
| 1596 |
eQMI_CALL_END_REASON_NO_CDMA_SRV, // 515 |
| 1597 |
|
| 1598 |
// GSM/WCDMA |
| 1599 |
eQMI_CALL_END_REASON_CONF_FAILED = 1000, // 1000 |
| 1600 |
eQMI_CALL_END_REASON_INCOM_REJ, // 1001 |
| 1601 |
eQMI_CALL_END_REASON_NO_GW_SRV, // 1002 |
| 1602 |
eQMI_CALL_END_REASON_NETWORK_END, // 1003 |
| 1603 |
eQMI_CALL_END_REASON_LLC_SNDCP_FAILURE, // 1004 |
| 1604 |
eQMI_CALL_END_REASON_INSUFFICIENT_RESOURCES, // 1005 |
| 1605 |
eQMI_CALL_END_REASON_OPTION_TEMP_OOO, // 1006 |
| 1606 |
eQMI_CALL_END_REASON_NSAPI_ALREADY_USED, // 1007 |
| 1607 |
eQMI_CALL_END_REASON_REGULAR_DEACTIVATION, // 1008 |
| 1608 |
eQMI_CALL_END_REASON_NETWORK_FAILURE, // 1009 |
| 1609 |
eQMI_CALL_END_REASON_UMTS_REATTACH_REQ, // 1010 |
| 1610 |
eQMI_CALL_END_REASON_UMTS_PROTOCOL_ERROR, // 1011 |
| 1611 |
eQMI_CALL_END_REASON_OPERATOR_BARRING, // 1012 |
| 1612 |
eQMI_CALL_END_REASON_UNKNOWN_APN, // 1013 |
| 1613 |
eQMI_CALL_END_REASON_UNKNOWN_PDP, // 1014 |
| 1614 |
eQMI_CALL_END_REASON_GGSN_REJECT, // 1015 |
| 1615 |
eQMI_CALL_END_REASON_ACTIVATION_REJECT, // 1016 |
| 1616 |
eQMI_CALL_END_REASON_OPTION_NOT_SUPPORTED, // 1017 |
| 1617 |
eQMI_CALL_END_REASON_OPTION_UNSUBSCRIBED, // 1018 |
| 1618 |
eQMI_CALL_END_REASON_QOS_NOT_ACCEPTED, // 1019 |
| 1619 |
eQMI_CALL_END_REASON_TFT_SEMANTIC_ERROR, // 1020 |
| 1620 |
eQMI_CALL_END_REASON_TFT_SYNTAX_ERROR, // 1021 |
| 1621 |
eQMI_CALL_END_REASON_UNKNOWN_PDP_CONTEXT, // 1022 |
| 1622 |
eQMI_CALL_END_REASON_FILTER_SEMANTIC_ERROR, // 1023 |
| 1623 |
eQMI_CALL_END_REASON_FILTER_SYNTAX_ERROR, // 1024 |
| 1624 |
eQMI_CALL_END_REASON_PDP_WITHOUT_ACTIVE_TFT, // 1025 |
| 1625 |
eQMI_CALL_END_REASON_INVALID_TRANSACTION_ID, // 1026 |
| 1626 |
eQMI_CALL_END_REASON_MESSAGE_SEMANTIC_ERROR, // 1027 |
| 1627 |
eQMI_CALL_END_REASON_INVALID_MANDATORY_INFO, // 1028 |
| 1628 |
eQMI_CALL_END_REASON_TYPE_UNSUPPORTED, // 1029 |
| 1629 |
eQMI_CALL_END_REASON_MSG_TYPE_WRONG_FOR_STATE, // 1030 |
| 1630 |
eQMI_CALL_END_REASON_UNKNOWN_INFO_ELEMENT, // 1031 |
| 1631 |
eQMI_CALL_END_REASON_CONDITIONAL_IE_ERROR, // 1032 |
| 1632 |
eQMI_CALL_END_REASON_MSG_WRONG_FOR_PROTOCOL, // 1033 |
| 1633 |
eQMI_CALL_END_REASON_APN_TYPE_CONFLICT, // 1034 |
| 1634 |
eQMI_CALL_END_REASON_NO_GPRS_CONTEXT, // 1035 |
| 1635 |
eQMI_CALL_END_REASON_FEATURE_NOT_SUPPORTED, // 1036 |
| 1636 |
|
| 1637 |
// CDMA 1xEV-DO (HDR) |
| 1638 |
eQMI_CALL_END_REASON_CD_GEN_OR_BUSY = 1500, // 1500 |
| 1639 |
eQMI_CALL_END_REASON_CD_BILL_OR_AUTH, // 1501 |
| 1640 |
eQMI_CALL_END_REASON_CHG_HDR, // 1502 |
| 1641 |
eQMI_CALL_END_REASON_EXIT_HDR, // 1503 |
| 1642 |
eQMI_CALL_END_REASON_HDR_NO_SESSION , // 1504 |
| 1643 |
eQMI_CALL_END_REASON_HDR_ORIG_DURING_GPS_FIX, // 1505 |
| 1644 |
eQMI_CALL_END_REASON_HDR_CS_TIMEOUT , // 1506 |
| 1645 |
eQMI_CALL_END_REASON_HDR_RELEASED_BY_CM, // 1507 |
| 1646 |
|
| 1647 |
eQMI_CALL_END_REASON_END |
| 1648 |
}; |
| 1649 |
|
| 1650 |
/*=========================================================================== |
| 1651 |
METHOD: |
| 1652 |
IsValid (Inline Method) |
| 1653 |
|
| 1654 |
DESCRIPTION: |
| 1655 |
eQMICallEndReason validity check |
| 1656 |
|
| 1657 |
PARAMETERS: |
| 1658 |
err [ I ] - Enum value being verified |
| 1659 |
|
| 1660 |
RETURN VALUE: |
| 1661 |
bool |
| 1662 |
===========================================================================*/ |
| 1663 |
inline bool IsValid( eQMICallEndReason err ) |
| 1664 |
{ |
| 1665 |
if ( (err >= eQMI_CALL_END_REASON_UNSPECIFIED) |
| 1666 |
&& (err <= eQMI_CALL_END_REASON_INTERNAL) ) |
| 1667 |
{ |
| 1668 |
return true; |
| 1669 |
} |
| 1670 |
|
| 1671 |
if ( (err >= eQMI_CALL_END_REASON_CDMA_LOCK) |
| 1672 |
&& (err <= eQMI_CALL_END_REASON_NO_CDMA_SRV) ) |
| 1673 |
{ |
| 1674 |
return true; |
| 1675 |
} |
| 1676 |
|
| 1677 |
if ( (err >= eQMI_CALL_END_REASON_CONF_FAILED) |
| 1678 |
&& (err <= eQMI_CALL_END_REASON_FEATURE_NOT_SUPPORTED) ) |
| 1679 |
{ |
| 1680 |
return true; |
| 1681 |
} |
| 1682 |
|
| 1683 |
if ( (err >= eQMI_CALL_END_REASON_CD_GEN_OR_BUSY) |
| 1684 |
&& (err <= eQMI_CALL_END_REASON_HDR_RELEASED_BY_CM) ) |
| 1685 |
{ |
| 1686 |
return true; |
| 1687 |
} |
| 1688 |
|
| 1689 |
return false; |
| 1690 |
}; |
| 1691 |
|