1 /* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_HRIL_ENUM_H 17 #define OHOS_HRIL_ENUM_H 18 19 #define HRIL_VERSION 1 20 #define HRIL_VERSION_MIN 1 21 #define HRIL_MAX_CDMA_MESSAGE_LEN 255 22 #define HRIL_MAX_CDMA_ADDRESS_LEN 36 23 24 #ifndef TRUE 25 #define TRUE 1 26 #define FALSE 0 27 #endif 28 29 #define PARAMETER_SIZE 128 30 31 typedef enum { 32 HRIL_SIM_SLOT_0, 33 HRIL_SIM_SLOT_1, 34 HRIL_SIM_SLOT_2, 35 HRIL_SIM_SLOT_3, 36 } HRilSimSlotId; 37 38 typedef enum { 39 HRIL_ERR_NULL_POINT = -1, 40 HRIL_ERR_SUCCESS = 0, 41 HRIL_ERR_GENERIC_FAILURE, 42 HRIL_ERR_INVALID_PARAMETER, 43 HRIL_ERR_MEMORY_FULL, 44 HRIL_ERR_CMD_SEND_FAILURE, 45 HRIL_ERR_CMD_NO_CARRIER, 46 HRIL_ERR_INVALID_RESPONSE, 47 HRIL_ERR_REPEAT_STATUS, 48 HRIL_ERR_NETWORK_SEARCHING, 49 HRIL_ERR_NETWORK_SEARCHING_INTERRUPTED, 50 HRIL_ERR_MODEM_DEVICE_CLOSE, 51 52 // network error 53 HRIL_ERR_NO_SIMCARD_INSERTED, 54 HRIL_ERR_NEED_PIN_CODE, 55 HRIL_ERR_NEED_PUK_CODE, 56 HRIL_ERR_NETWORK_SEARCH_TIMEOUT, 57 HRIL_ERR_PINPUK_PASSWORD_NOCORRECT, 58 HRIL_ERR_INVALID_MODEM_PARAMETER = 50, 59 HRIL_ERR_HDF_IPC_FAILURE = 65535, 60 } HRilErrNumber; 61 62 /* From 3GPP TS 27.007 V4.3.0 (2001-12) ATD%s%s */ 63 typedef enum { 64 HRIL_CALL_ACTIVATE = 0, 65 HRIL_CALL_HOLDING = 1, 66 HRIL_CALL_DIALING = 2, /* MO call */ 67 HRIL_CALL_ALERTING = 3, /* MO call */ 68 HRIL_CALL_INCOMING = 4, /* MT call */ 69 HRIL_CALL_WAITING = 5 /* MT call */ 70 } HRilCallState; 71 72 typedef enum { 73 HRIL_CALL_FAIL_NO_VALID_NUMBER = 1, 74 HRIL_CALL_FAIL_NO_LINE_TO_TARGET_ADDRESS = 3, 75 HRIL_ERR_CALL_CAUSE = 5 76 } HRilLastCallErrorCode; 77 78 typedef enum { 79 HRIL_CALL_MODE_CS_ONLY = 1, 80 HRIL_CALL_MODE_CS_1ST_PS_2ND, 81 HRIL_CALL_MODE_PS_1ST_CS_2ND, 82 HRIL_CALL_MODE_PS_ONLY, 83 } HRilVoiceCallMode; 84 85 typedef enum { 86 HRIL_RADIO_POWER_STATE_UNAVAILABLE = -1, 87 HRIL_RADIO_POWER_STATE_OFF = 0, 88 HRIL_RADIO_POWER_STATE_ON = 1, 89 } HRilRadioState; 90 91 typedef enum { 92 HRIL_DSDS_MODE_V2 = 0, 93 HRIL_DSDS_MODE_V3 = 1, 94 } HRilDsdsMode; 95 96 typedef enum { HRIL_CALL_VOICE, HRIL_CALL_DATA, HRIL_CALL_FAX } HRilCallMode; 97 98 typedef enum { 99 NO_REG_MT_NO_SEARCH = 0, 100 REG_MT_HOME = 1, 101 NO_REG_MT_SEARCHING = 2, 102 REG_MT_REJECTED = 3, 103 REG_MT_UNKNOWN = 4, 104 REG_MT_ROAMING = 5, 105 REG_MT_EMERGENCY = 6, 106 } HRilRegStatus; 107 108 typedef enum { 109 REG_NOT_NOTIFY = 0, /* AT command: +CREG,+CGREG,+CEREG,+C5GREG,n=0,Turn off notify function */ 110 REG_NOTIFY_STAT_ONLY, /* AT command: +CREG,+CGREG,+CEREG,+C5GREG,n=1,notify data format type 1 */ 111 REG_NOTIFY_STAT_LAC_CELLID, /* AT command: +CREG,+CGREG,+CEREG,+C5GREG,n=2,notify data format type 2 */ 112 } HRilRegNotifyMode; 113 114 // 3GPP TS 27.007 V3.9.0 (2001-06) 7.11 Call forwarding number and conditions +CCFC 115 typedef enum { 116 CALL_FORWARD_REASON_UNCONDITIONAL, 117 CALL_FORWARD_REASON_MOBILE_BUSY, 118 CALL_FORWARD_REASON_NO_REPLY, 119 CALL_FORWARD_REASON_NO_REACHABLE, 120 CALL_FORWARD_REASON_ALL_CF, /* all call forwarding (refer 3GPP TS 22.030 [19]) */ 121 CALL_FORWARD_REASON_ALL_CCF, /* all conditional call forwarding */ 122 } CallForwardReasonType; 123 124 // 3GPP TS 27.007 V3.9.0 (2001-06) 7.11 Call forwarding number and conditions +CCFC 125 typedef enum { 126 CALL_FORWARD_CLASS_X_VOICE = 1, 127 CALL_FORWARD_CLASS_X_DATA = 2, 128 CALL_FORWARD_CLASS_X_FAX = 4, 129 CALL_FORWARD_CLASS_X_SMS = 8, /* short message service */ 130 CALL_FORWARD_CLASS_X_DCS = 16, /* data circuit sync */ 131 CALL_FORWARD_CLASS_X_DCAS = 32, /* dedicated packet access */ 132 CALL_FORWARD_CLASS_X_DPA = 64, /* all conditional call forwarding */ 133 CALL_FORWARD_CLASS_X_DPADA = 128, /* dedicated PAD access */ 134 } CallForwardClassX; 135 136 // 3GPP TS 27.007 V3.9.0 (2001-06) 7.11 Call forwarding number and conditions +CCFC 137 typedef enum { 138 CALL_FORWARD_MODE_DISABLE, 139 CALL_FORWARD_MODE_ENABLE, 140 CALL_FORWARD_MODE_QUERY_STATUS, 141 CALL_FORWARD_MODE_REGISTRATION, 142 CALL_FORWARD_MODE_ERASURE, 143 } CallForwardMode; 144 145 // 3GPP TS 27.007 V3.9.0 (2001-06) Call related supplementary services +CHLD 146 // 3GPP TS 27.007 V3.9.0 (2001-06) 7.22 Informative examples 147 typedef enum { 148 TYPE_HANG_UP_HOLD_WAIT = 1, 149 TYPE_HANG_UP_ACTIVE = 2, 150 } HRilCallSupplementType; 151 152 typedef enum { 153 HRIL_RESPONSE = 0, 154 HRIL_NOTIFICATION = 1, 155 } ReportType; 156 157 typedef enum { 158 HRIL_UNLOCK_SUCCESS = 0, 159 HRIL_UNLOCK_PASSWORD_ERR = 1, 160 HRIL_UNLOCK_OTHER_ERR = 2, 161 } PinPukResultType; 162 163 typedef enum { 164 HRIL_REPORT_ERR_TYPE_NONE = 0, 165 HRIL_REPORT_ERR_TYPE_GENERIC, 166 HRIL_REPORT_ERR_TYPE_CME, 167 HRIL_REPORT_ERR_TYPE_CMS, 168 } ReportErrorType; 169 170 typedef enum { 171 NETWORK_TYPE_UNKNOWN = 0, /* indicates no cell information */ 172 NETWORK_TYPE_GSM, 173 NETWORK_TYPE_CDMA, 174 NETWORK_TYPE_WCDMA, 175 NETWORK_TYPE_TDSCDMA, 176 NETWORK_TYPE_LTE, 177 NETWORK_TYPE_NR 178 } RatType; /* Radio Access Technology */ 179 180 typedef enum { 181 HRIL_SIM_NOT_READY = -1, 182 HRIL_SIM_NOT_INSERTED = 0, 183 HRIL_SIM_READY = 1, 184 HRIL_SIM_PIN, 185 HRIL_SIM_PUK, 186 HRIL_SIM_PIN2, 187 HRIL_SIM_PUK2, 188 HRIL_PH_NET_PIN, 189 HRIL_PH_NET_PUK, 190 HRIL_PH_NET_SUB_PIN, 191 HRIL_PH_NET_SUB_PUK, 192 HRIL_PH_SP_PIN, 193 HRIL_PH_SP_PUK 194 } HRilSimState; 195 196 typedef enum { 197 HRIL_PIN_STATE_UNKNOWN, 198 HRIL_PIN_NOT_VERIFIED, 199 HRIL_PIN_VERIFIED, 200 HRIL_PIN_DISABLED, 201 HRIL_PIN_BLOCKED_ENABLED, 202 HRIL_PIN_BLOCKED_PERM 203 } HRilSimPinState; 204 205 typedef enum { 206 HRIL_NETWORK_AUTO = 0, 207 HRIL_NETWORK_GSM = 1, 208 HRIL_NETWORK_WCDMA = 2, 209 HRIL_NETWORK_LTE = 3, 210 HRIL_NETWORK_LTE_WCDMA = 4, 211 HRIL_NETWORK_LTE_WCDMA_GSM = 5, 212 HRIL_NETWORK_WCDMA_GSM = 6, 213 HRIL_NETWORK_CDMA = 7, 214 HRIL_NETWORK_EVDO = 8, 215 HRIL_NETWORK_EVDO_CDMA = 9, 216 HRIL_NETWORK_WCDMA_GSM_EVDO_CDMA = 10, 217 HRIL_NETWORK_LTE_EVDO_CDMA = 11, 218 HRIL_NETWORK_LTE_WCDMA_GSM_EVDO_CDMA = 12, 219 HRIL_NETWORK_TDSCDMA = 13, 220 HRIL_NETWORK_TDSCDMA_GSM = 14, 221 HRIL_NETWORK_TDSCDMA_WCDMA = 15, 222 HRIL_NETWORK_TDSCDMA_WCDMA_GSM = 16, 223 HRIL_NETWORK_LTE_TDSCDMA = 17, 224 HRIL_NETWORK_LTE_TDSCDMA_GSM = 18, 225 HRIL_NETWORK_LTE_TDSCDMA_WCDMA = 19, 226 HRIL_NETWORK_LTE_TDSCDMA_WCDMA_GSM = 20, 227 HRIL_NETWORK_TDSCDMA_WCDMA_GSM_EVDO_CDMA = 21, 228 HRIL_NETWORK_LTE_TDSCDMA_WCDMA_GSM_EVDO_CDMA = 22, 229 HRIL_NETWORK_NR = 31, 230 HRIL_NETWORK_NR_LTE = 32, 231 HRIL_NETWORK_NR_LTE_WCDMA = 33, 232 HRIL_NETWORK_NR_LTE_WCDMA_GSM = 34, 233 HRIL_NETWORK_NR_LTE_EVDO_CDMA = 35, 234 HRIL_NETWORK_NR_LTE_WCDMA_GSM_EVDO_CDMA = 36, 235 HRIL_NETWORK_NR_LTE_TDSCDMA = 37, 236 HRIL_NETWORK_NR_LTE_TDSCDMA_GSM = 38, 237 HRIL_NETWORK_NR_LTE_TDSCDMA_WCDMA = 39, 238 HRIL_NETWORK_NR_LTE_TDSCDMA_WCDMA_GSM = 40, 239 HRIL_NETWORK_NR_LTE_TDSCDMA_WCDMA_GSM_EVDO_CDMA = 41, 240 } HRilPreferredNetworkType; 241 242 typedef enum { 243 HRIL_USIM_INVALID = 0, 244 HRIL_USIM_VALID = 1, 245 HRIL_USIM_CS_INVALID = 2, 246 HRIL_USIM_PS_INVALID = 3, 247 HRIL_USIM_CS_PS_INVALID = 4, 248 HRIL_ROM_SIM = 240, 249 HRIL_NO_USIM = 255, 250 } HRilSimStatus; 251 252 typedef enum { 253 HRIL_SIM_CARD_UNLOCK = 0, 254 HRIL_SIM_CARD_LOCK = 1, 255 } HRilSimLockStatus; 256 257 typedef enum { 258 HRIL_NO_ROAM = 0, 259 HRIL_ROAMING = 1, 260 HRIL_ROAM_UNKNOWN = 2, 261 } HRilRoamStatus; 262 263 typedef enum { 264 HRIL_NO_SRV_SERVICE = 0, 265 HRIL_RESTRICTED_SERVICE = 1, 266 HRIL_SERVICE_VALID = 2, 267 HRIL_REGIONAL_SERVICE = 3, 268 HRIL_ENERGY_SAVING_SERVICE = 4, 269 } HRilSrvStatus; 270 271 typedef enum { 272 HRIL_NO_DOMAIN_SERVICE = 0, 273 HRIL_CS_SERVICE = 1, 274 HRIL_PS_SERVICE = 2, 275 HRIL_CS_PS_SERVICE = 3, 276 HRIL_CS_PS_SEARCHING = 4, 277 HRIL_CDMA_NOT_SUPPORT = 255, 278 } HRilSrvDomain; 279 280 typedef enum { 281 HRIL_NO_SYSMODE_SERVICE = 0, 282 HRIL_GSM_MODE = 1, 283 HRIL_CDMA_MODE = 2, 284 HRIL_WCDMA_MODE = 3, 285 HRIL_TDSCDMA_MODE = 4, 286 HRIL_WIMAX_MODE = 5, 287 HRIL_LTE_MODE = 6, 288 HRIL_LTE_CA_MODE = 7, 289 HRIL_NR_MODE = 8, 290 } HRilSysMode; 291 292 typedef enum { 293 HRIL_ACT_NO_SERVICE = 0, 294 HRIL_ACT_GSM = 1, 295 HRIL_ACT_GPRS = 2, 296 HRIL_ACT_EDGE = 3, 297 HRIL_ACT_IS95A = 21, 298 HRIL_ACT_IS95B = 22, 299 HRIL_ACT_CDMA2000_1X = 23, 300 HRIL_ACT_EVDO_REL0 = 24, 301 HRIL_ACT_EVDO_RELA = 25, 302 HRIL_ACT_EVDO_RELB = 26, 303 HRIL_ACT_HYBRID_CDMA2000_1X = 27, 304 HRIL_ACT_HYBRID_EVDO_REL0 = 28, 305 HRIL_ACT_HYBRID_EVDO_RELA = 29, 306 HRIL_ACT_HYBRID_EVDO_RELB = 30, 307 HRIL_ACT_WCDMA = 41, 308 HRIL_ACT_HSDPA = 42, 309 HRIL_ACT_HSUPA = 43, 310 HRIL_ACT_HSPA = 44, 311 HRIL_ACT_HSPAP = 45, 312 HRIL_ACT_DC_HSPAP = 46, 313 HRIL_ACT_TDSCDMA = 61, 314 HRIL_ACT_802_16E = 81, 315 HRIL_ACT_LTE = 101, 316 HRIL_ACT_LTE_CA, 317 HRIL_ACT_NR, 318 } HRilVoiceSubMode; 319 320 typedef enum { 321 RADIO_TECHNOLOGY_UNKNOWN = 0, 322 RADIO_TECHNOLOGY_GSM = 1, 323 RADIO_TECHNOLOGY_1XRTT = 2, 324 RADIO_TECHNOLOGY_WCDMA = 3, 325 RADIO_TECHNOLOGY_HSPA = 4, 326 RADIO_TECHNOLOGY_HSPAP = 5, 327 RADIO_TECHNOLOGY_TD_SCDMA = 6, 328 RADIO_TECHNOLOGY_EVDO = 7, 329 RADIO_TECHNOLOGY_EHRPD = 8, 330 RADIO_TECHNOLOGY_LTE = 9, 331 RADIO_TECHNOLOGY_LTE_CA = 10, 332 RADIO_TECHNOLOGY_IWLAN = 11, 333 RADIO_TECHNOLOGY_NR = 12, 334 RADIO_TECHNOLOGY_INVALID = 65535, 335 } HRilRadioTech; 336 337 /* reference 3GPP TS 24.008 V17.4.0 (2021-09) 338 * Unsuccessful PDP context activation initiated by the MS */ 339 typedef enum { 340 HRIL_PDP_ERR_NONE = 0, 341 HRIL_PDP_ERR_RETRY, 342 HRIL_PDP_ERR_UNKNOWN = 65535, /* Unknown error */ 343 HRIL_PDP_ERR_OPERATOR_DETERMINED_BARRING = 8, /* Operator Determined Barring---No need to retry */ 344 HRIL_PDP_ERR_SHORTAGE_RESOURCES = 26, /* insufficient resources */ 345 HRIL_PDP_ERR_MISSING_OR_UNKNOWN_APN, /* missing or unknown APN---No need to retry */ 346 HRIL_PDP_ERR_UNKNOWN_PDP_ADDR_OR_TYPE, /* unknown PDP address or PDP type---No need to retry */ 347 HRIL_PDP_ERR_USER_VERIFICATION, /* user authentication failed---No need to retry */ 348 HRIL_PDP_ERR_ACTIVATION_REJECTED_GGSN, /* activation rejected by GGSN, Serving GW or PDN GW---No need to retry */ 349 HRIL_PDP_ERR_ACTIVATION_REJECTED_UNSPECIFIED, /* activation rejected, unspecified */ 350 HRIL_PDP_ERR_SERVICE_OPTION_NOT_SUPPORTED, /* service option not supported---No need to retry */ 351 HRIL_PDP_ERR_REQUESTED_SERVICE_OPTION_NOT_SUBSCRIBED, /* requested service option not subscribed 352 * ---No need to retry */ 353 HRIL_PDP_ERR_SERVICE_OPTION_TEMPORARILY_OUT_OF_ORDER, /* service option temporarily out of order */ 354 HRIL_PDP_ERR_NSAPI_ALREADY_USED, /* NSAPI already used---No need to retry */ 355 HRIL_PDP_ERR_IPV4_ONLY_ALLOWED = 50, /* PDP type IPv4 only allowed---No need to retry */ 356 HRIL_PDP_ERR_IPV6_ONLY_ALLOWED, /* PDP type IPv6 only allowed---No need to retry */ 357 HRIL_PDP_ERR_IPV4V6_ONLY_ALLOWED = 57, /* PDP type IPv4v6 only allowed---No need to retry */ 358 HRIL_PDP_ERR_NON_IP_ONLY_ALLOWED, /* PDP type non IP only allowed---No need to retry */ 359 HRIL_PDP_ERR_MAX_NUM_OF_PDP_CONTEXTS = 65, /* maximum number of PDP contexts reached---No need to retry */ 360 HRIL_PDP_ERR_APN_NOT_SUPPORTED_IN_CURRENT_RAT_PLMN, /* requested APN not supported in current RAT 361 * and PLMN combination */ 362 HRIL_PDP_ERR_PROTOCOL_ERRORS = 95, /* #95 - 111: protocol errors---No need to retry */ 363 HRIL_PDP_ERR_APN_RESTRICTION_VALUE_INCOMPATIBLE = 112, /* APN restriction value incompatible 364 * with active PDP context */ 365 HRIL_PDP_ERR_MULT_ACCESSES_PDN_NOT_ALLOWED = 113, /* Multiple accesses to a PDN connection not allowed */ 366 } HRilPdpErrorReason; 367 368 typedef enum { 369 HRIL_EVENT_COUNT_0 = 0, 370 HRIL_EVENT_COUNT_1, 371 HRIL_EVENT_COUNT_2, 372 HRIL_EVENT_COUNT_3, 373 HRIL_EVENT_COUNT_4 374 } HRilSendEventCount; 375 376 typedef enum { HRIL_SIM_TYPE_UNKNOWN = 0, HRIL_SIM_TYPE_SIM, HRIL_SIM_TYPE_USIM } HRilSimType; 377 378 typedef enum { HRIL_UNNEED_ACK = 0, HRIL_NEED_ACK } HRilAckTypes; 379 380 typedef enum { 381 NOTIFICATION_FILTER_ALL = -1, 382 NOTIFICATION_FILTER_NONE = 0, 383 NOTIFICATION_FILTER_SIGNAL_STRENGTH = 1, 384 NOTIFICATION_FILTER_NETWORK_STATE = 2, 385 NOTIFICATION_FILTER_DATA_CALL = 4, 386 NOTIFICATION_FILTER_LINK_CAPACITY = 8, 387 NOTIFICATION_FILTER_PHYSICAL_CHANNEL_CONFIG = 16 388 } HRilNotificationFilter; 389 390 typedef enum { 391 POWER_SAVE_MODE, 392 CHARGING_STATE, 393 LOW_DATA_STATE 394 } HRilDeviceStateType; 395 396 typedef enum { 397 HRIL_SERVING_CELL_UNKNOWN, 398 HRIL_SERVING_CELL_PRIMARY, 399 HRIL_SERVING_CELL_SECONDARY 400 } HRilCellConnectionStatus; 401 402 typedef enum { 403 HRIL_RADIO_PROTOCOL_PHASE_INITIAL, /* LM is configured is initial value and value after COMPLETE. */ 404 HRIL_RADIO_PROTOCOL_PHASE_CHECK, /* CHECK is sent before UPDATE and indicates that an UPDATE will be 405 * forthcoming with these same parameters. */ 406 HRIL_RADIO_PROTOCOL_PHASE_UPDATE, /* UPDATE is sent after all LM's receive CHECK and returned success, 407 * if any CHECK's fail no UPDATE will be sent. */ 408 HRIL_RADIO_PROTOCOL_PHASE_NOTIFY, /* NOTIFY is sent with HNOTI_SIM_RADIO_PROTOCOL_UPDATED. */ 409 HRIL_RADIO_PROTOCOL_PHASE_COMPLETE /* COMPLETE is sent after all previous phases have completed. 410 * If an error occurs in any previous commands the 411 * and fields will be the prior configuration thus 412 * restoring the configuration to the previous value. An error returned 413 * by this command will generally be ignored or may cause that logical 414 * modem to be removed from service */ 415 } HRilRadioProtocolPhase; 416 417 typedef enum { 418 HRIL_RADIO_PROTOCOL_TECH_UNKNOWN = 1 << RADIO_TECHNOLOGY_UNKNOWN, 419 HRIL_RADIO_PROTOCOL_TECH_GSM = 1 << RADIO_TECHNOLOGY_GSM, 420 HRIL_RADIO_PROTOCOL_TECH_1XRTT = 1 << RADIO_TECHNOLOGY_1XRTT, 421 HRIL_RADIO_PROTOCOL_TECH_WCDMA = 1 << RADIO_TECHNOLOGY_WCDMA, 422 HRIL_RADIO_PROTOCOL_TECH_HSPA = 1 << RADIO_TECHNOLOGY_HSPA, 423 HRIL_RADIO_PROTOCOL_TECH_HSPAP = 1 << RADIO_TECHNOLOGY_HSPAP, 424 HRIL_RADIO_PROTOCOL_TECH_TD_SCDMA = 1 << RADIO_TECHNOLOGY_TD_SCDMA, 425 HRIL_RADIO_PROTOCOL_TECH_EVDO = 1 << RADIO_TECHNOLOGY_EVDO, 426 HRIL_RADIO_PROTOCOL_TECH_EHRPD = 1 << RADIO_TECHNOLOGY_EHRPD, 427 HRIL_RADIO_PROTOCOL_TECH_LTE = 1 << RADIO_TECHNOLOGY_LTE, 428 HRIL_RADIO_PROTOCOL_TECH_LTE_CA = 1 << RADIO_TECHNOLOGY_LTE_CA, 429 HRIL_RADIO_PROTOCOL_TECH_IWLAN = 1 << RADIO_TECHNOLOGY_IWLAN, 430 HRIL_RADIO_PROTOCOL_TECH_NR = 1 << RADIO_TECHNOLOGY_NR 431 } HRilRadioProtocolTech; 432 433 typedef enum { 434 HRIL_RADIO_PROTOCOL_STATUS_NONE, 435 HRIL_RADIO_PROTOCOL_STATUS_SUCCESS, 436 HRIL_RADIO_PROTOCOL_STATUS_FAIL 437 } HRilRadioProtocolStatus; 438 439 typedef enum { 440 TTY_MODE_OFF = 0, 441 TTY_MODE_FULL, 442 TTY_MODE_HCO, 443 TTY_MODE_VCO 444 } TTYMode; 445 446 typedef enum { 447 CARD_POWER_DOWN = 0, 448 CARD_POWER_UP, 449 CARD_POWER_UP_PASS_THROUGH 450 } CardPowerState; 451 452 #endif // OHOS_HRIL_ENUM_H 453