1 /* 2 * Copyright (C) 2021-2022 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_RIL_REQUEST_H 17 #define OHOS_RIL_REQUEST_H 18 19 #define HRIL_RESPONSE_ACKNOWLEDGEMENT 800 20 typedef enum { 21 HREQ_CALL_BASE = 0, 22 23 /** Get call list. */ 24 HREQ_CALL_GET_CALL_LIST, 25 26 /** Initiate voice call. */ 27 HREQ_CALL_DIAL, 28 29 /** Hang up a call. */ 30 HREQ_CALL_HANGUP, 31 32 /** Reject a specific call. */ 33 HREQ_CALL_REJECT, 34 35 /** Answer incoming call. */ 36 HREQ_CALL_ANSWER, 37 38 /** call hold value 6 */ 39 HREQ_CALL_HOLD_CALL, 40 41 /** call active value 7 */ 42 HREQ_CALL_UNHOLD_CALL, 43 44 /** Switch waiting or holding call and active call. */ 45 HREQ_CALL_SWITCH_CALL, 46 47 /** Combine holding and active call. */ 48 HREQ_CALL_COMBINE_CONFERENCE, 49 50 /** Keep all other calls except the xth call */ 51 HREQ_CALL_SEPARATE_CONFERENCE, 52 53 /** Holds and resumes a call. */ 54 HREQ_CALL_CALL_SUPPLEMENT, 55 56 /** Send a DTMF tone. */ 57 HREQ_CALL_SEND_DTMF, 58 59 /** Start playing a DTMF tone. */ 60 HREQ_CALL_START_DTMF, 61 62 /** Stop playing a currently playing DTMF tone. */ 63 HREQ_CALL_STOP_DTMF, 64 65 /** 66 * Called when set Calling line Identification Presentation Supplementary 67 * Service(CLIP). 68 */ 69 HREQ_CALL_SET_CLIP, 70 71 /** 72 * Called when get Calling line Identification Presentation Supplementary 73 * Service(CLIP). 74 */ 75 HREQ_CALL_GET_CLIP, 76 77 /** Called when get call waiting. */ 78 HREQ_CALL_GET_CALL_WAITING, 79 80 /** Called when set call waiting. */ 81 HREQ_CALL_SET_CALL_WAITING, 82 83 /** Called when get call restriction. */ 84 HREQ_CALL_GET_CALL_RESTRICTION, 85 86 /** Called when set call restriction. */ 87 HREQ_CALL_SET_CALL_RESTRICTION, 88 89 /** Called when get call transfer info. */ 90 HREQ_CALL_GET_CALL_TRANSFER_INFO, 91 92 /** Called when set call transfer info. */ 93 HREQ_CALL_SET_CALL_TRANSFER_INFO, 94 95 /** Called when get Calling line identification restriction(CLIR). */ 96 HREQ_CALL_GET_CLIR, 97 98 /** Called when set Calling line identification restriction(CLIR). */ 99 HREQ_CALL_SET_CLIR, 100 101 /** Called when get call preference. */ 102 HREQ_CALL_GET_CALL_PREFERENCE, 103 104 /** Called when set call preference. */ 105 HREQ_CALL_SET_CALL_PREFERENCE, 106 107 /** 108 * Called when set unstructured supplementary service data (USSD) 109 * information. 110 */ 111 HREQ_CALL_SET_USSD, 112 113 /** 114 * Called when get unstructured supplementary service data (USSD) 115 * information. 116 */ 117 HREQ_CALL_GET_USSD, 118 119 /** Called when set mute mode. */ 120 HREQ_CALL_SET_MUTE, 121 122 /** Called when get mute mode. */ 123 HREQ_CALL_GET_MUTE, 124 125 /** Get emergency list. */ 126 HREQ_CALL_GET_EMERGENCY_LIST, 127 128 /** Set emergency list. */ 129 HREQ_CALL_SET_EMERGENCY_LIST, 130 131 /** Get the call failure cause. */ 132 HREQ_CALL_GET_FAIL_REASON, 133 134 /** Set the call barring password. */ 135 HREQ_CALL_SET_BARRING_PASSWORD, 136 137 /** Close unfinished unstructured supplementary service data (USSD). */ 138 HREQ_CALL_CLOSE_UNFINISHED_USSD, 139 HREQ_EXPLICIT_CALL_TRANSFER_CONNECTION, 140 HREQ_SET_VONR_SWITCH, 141 142 HREQ_SMS_BASE = 100, 143 144 /** Send GSM SMS. */ 145 HREQ_SMS_SEND_GSM_SMS, 146 147 /** Send CDMA SMS. */ 148 HREQ_SMS_SEND_CDMA_SMS, 149 150 /** Add SIM message. */ 151 HREQ_SMS_ADD_SIM_MESSAGE, 152 153 /** Delete SIM message. */ 154 HREQ_SMS_DEL_SIM_MESSAGE, 155 156 /** Update SIM message. */ 157 HREQ_SMS_UPDATE_SIM_MESSAGE, 158 159 /** 160 * Send amd SMS message, and that more messages are expected to be sent 161 * soon. 162 */ 163 HREQ_SMS_SEND_SMS_MORE_MODE, 164 165 /** Acknowledge successful or failed receipt of SMS. */ 166 HREQ_SMS_SEND_SMS_ACK, 167 168 /** Sets the default Short Message Service Center address on the device. */ 169 HREQ_SMS_SET_SMSC_ADDR, 170 171 /** Get the default Short Message Service Center address on the device. */ 172 HREQ_SMS_GET_SMSC_ADDR, 173 174 /** Activates GSM cell broadcast. */ 175 HREQ_SMS_SET_CB_CONFIG, 176 177 /** Get the GSM cell broadcast configuration. */ 178 HREQ_SMS_GET_CB_CONFIG, 179 180 /** Get the CDMA cell broadcast configuration. */ 181 HREQ_SMS_GET_CDMA_CB_CONFIG, 182 183 /** Set the CDMA cell broadcast configuration. */ 184 HREQ_SMS_SET_CDMA_CB_CONFIG, 185 186 /** Writes CDMA SMS messages to the SIM card. */ 187 HREQ_SMS_ADD_CDMA_SIM_MESSAGE, 188 189 /** Deletes CDMA SMS messages from the SIM card. */ 190 HREQ_SMS_DEL_CDMA_SIM_MESSAGE, 191 192 /** Updates CDMA SMS messages from SIM card. */ 193 HREQ_SMS_UPDATE_CDMA_SIM_MESSAGE, 194 195 HREQ_SIM_BASE = 200, 196 197 /** Gets the SIM card status. */ 198 HREQ_SIM_GET_SIM_STATUS, 199 200 /** 201 * Gets the international mobile subscriber identity (IMSI) of the SIM 202 * card. 203 */ 204 HREQ_SIM_GET_IMSI, 205 206 /** Gets SIM card data. */ 207 HREQ_SIM_GET_SIM_IO, 208 209 /** Gets SIM card lock status. */ 210 HREQ_SIM_GET_SIM_LOCK_STATUS, 211 212 /** Sets the SIM card lock. */ 213 HREQ_SIM_SET_SIM_LOCK, 214 215 /** Changes the SIM card password. */ 216 HREQ_SIM_CHANGE_SIM_PASSWORD, 217 218 /** Sets the PIN for unlocking. */ 219 HREQ_SIM_UNLOCK_PIN, 220 221 /** Sets the PUK for unlocking. */ 222 HREQ_SIM_UNLOCK_PUK, 223 224 /** Gets SIM PIN input times from sim card. */ 225 HREQ_SIM_GET_SIM_PIN_INPUT_TIMES, 226 227 /** Sets the PIN2 for unlocking. */ 228 HREQ_SIM_UNLOCK_PIN2, 229 230 /** Sets the PUK2 for unlocking. */ 231 HREQ_SIM_UNLOCK_PUK2, 232 233 /** Gets SIM PIN2 input times from sim card. */ 234 HREQ_SIM_GET_SIM_PIN2_INPUT_TIMES, 235 236 /** Specifies whether to activate a SIM card. */ 237 HREQ_SIM_SET_ACTIVE_SIM, 238 239 /** Gets the protocol stack of the primary and secondary SIM cards. */ 240 HREQ_SIM_GET_RADIO_PROTOCOL, 241 242 /** Sets the protocol stack for the primary and secondary SIM cards. */ 243 HREQ_SIM_SET_RADIO_PROTOCOL, 244 245 /** 246 * Sends the TerminalResponse instruction of the SIM application toolkit 247 * (STK). 248 */ 249 HREQ_SIM_STK_SEND_TERMINAL_RESPONSE, 250 251 /** Sends the Envelope instruction of the STK. */ 252 HREQ_SIM_STK_SEND_ENVELOPE, 253 254 /** Sned envelope response contain status of STK. */ 255 HREQ_SIM_STK_SEND_ENVELOPE_RESPONSE_CONTAIN_STATUS, 256 257 /** Sends the CallSetup instruction of the STK. */ 258 HREQ_SIM_STK_SEND_CALL_SETUP_REQUEST_RESULT, 259 260 /** Checks whether the STK is in the Ready state. */ 261 HREQ_SIM_STK_IS_READY, 262 263 /** 264 * Opens the logical channel of the application protocol data unit (APDU). 265 */ 266 HREQ_SIM_OPEN_LOGICAL_CHANNEL, 267 268 /** Closes the logical channel of the APDU. */ 269 HREQ_SIM_CLOSE_LOGICAL_CHANNEL, 270 271 /** 272 * Transmits APDU data over the logical channel. The logical channel is 273 * opened and closed by the application. 274 */ 275 HREQ_SIM_TRANSMIT_APDU_LOGICAL_CHANNEL, 276 277 /** 278 * Transmits APDU data over the basic channel. The basic channel is the 279 * channel opened by default. 280 */ 281 HREQ_SIM_TRANSMIT_APDU_BASIC_CHANNEL, 282 283 /** Performs SIM card authentication. */ 284 HREQ_SIM_AUTHENTICATION, 285 286 /** Unlocks a SIM card. */ 287 HREQ_SIM_UNLOCK_SIM_LOCK, 288 289 HREQ_DATA_BASE = 300, 290 291 /** Sets an apn to initial attach network. */ 292 HREQ_DATA_SET_INIT_APN_INFO, 293 294 /** Deactivates PDP context. */ 295 HREQ_DATA_DEACTIVATE_PDP_CONTEXT, 296 297 /** Activates PDP context. */ 298 HREQ_DATA_ACTIVATE_PDP_CONTEXT, 299 300 /** Gets PDP context list. */ 301 HREQ_DATA_GET_PDP_CONTEXT_LIST, 302 303 /** Gets current link information. */ 304 HREQ_DATA_GET_LINK_BANDWIDTH_INFO, 305 306 /** Sets the rule for reporting the data link bandwidth information. */ 307 HREQ_DATA_SET_LINK_BANDWIDTH_REPORTING_RULE, 308 309 /** Sets the PDP context information for the data service. */ 310 HREQ_DATA_SET_DATA_PROFILE_INFO, 311 312 /** Sends the data service performance mode. */ 313 HREQ_DATA_SEND_DATA_PERFORMANCE_MODE, 314 315 /** Sends the data service sleep mode. */ 316 HREQ_DATA_SEND_DATA_SLEEP_MODE, 317 318 /** Enables the data service of a SIM card slot. */ 319 HREQ_DATA_SET_DATA_PERMITTED, 320 321 /** Get link capability. */ 322 HREQ_DATA_GET_LINK_CAPABILITY, 323 324 HREQ_NETWORK_BASE = 400, 325 326 /** Gets the signal strength. */ 327 HREQ_NETWORK_GET_SIGNAL_STRENGTH, 328 329 /** Gets the registration status of the CS domain. */ 330 HREQ_NETWORK_GET_CS_REG_STATUS, 331 332 /** Gets the registration status of the PS domain. */ 333 HREQ_NETWORK_GET_PS_REG_STATUS, 334 335 /** Gets the opreator info. */ 336 HREQ_NETWORK_GET_OPERATOR_INFO, 337 338 /** Gets information about available networks. */ 339 HREQ_NETWORK_GET_NETWORK_SEARCH_INFORMATION, 340 341 /** Gets the network selection mode. */ 342 HREQ_NETWORK_GET_NETWORK_SELECTION_MODE, 343 344 /** Sets the network selection mode. */ 345 HREQ_NETWORK_SET_NETWORK_SELECTION_MODE, 346 347 /** Gets information about neighboring cells. */ 348 HREQ_NETWORK_GET_NEIGHBORING_CELLINFO_LIST, 349 350 /** Gets current cell info. */ 351 HREQ_NETWORK_GET_CURRENT_CELL_INFO, 352 353 /** Sets the preferred network type. */ 354 HREQ_NETWORK_SET_PREFERRED_NETWORK, 355 356 /** Gets the preferred network type. */ 357 HREQ_NETWORK_GET_PREFERRED_NETWORK, 358 359 /** Get radio capability. */ 360 HREQ_NETWORK_GET_RADIO_CAPABILITY, 361 362 /** Gets the physical channel configuration. */ 363 HREQ_NETWORK_GET_PHYSICAL_CHANNEL_CONFIG, 364 365 /** Sets the cell location update notification mode. */ 366 HREQ_NETWORK_SET_LOCATE_UPDATES, 367 368 /** Sets the filter of notifications reported by the modem. */ 369 HREQ_NETWORK_SET_NOTIFICATION_FILTER, 370 371 /** Sets the device status. */ 372 HREQ_NETWORK_SET_DEVICE_STATE, 373 374 /** Get rrc connection state. */ 375 HREQ_NETWORK_GET_RRC_CONNECTION_STATE, 376 377 /** Set nr option mode. */ 378 HREQ_NETWORK_SET_NR_OPTION_MODE, 379 380 /** Get nr option mode. */ 381 HREQ_NETWORK_GET_NR_OPTION_MODE, 382 383 /** Get nr ssbid info. */ 384 HREQ_NETWORK_GET_NR_SSBID_INFO, 385 386 HREQ_COMMON_BASE = 500, 387 388 /** Sends a mobile phone power-off message to the modem. */ 389 HREQ_MODEM_SHUT_DOWN, 390 391 /** Sets the modem status. */ 392 HREQ_MODEM_SET_RADIO_STATUS, 393 394 /** Gets the modem status. */ 395 HREQ_MODEM_GET_RADIO_STATUS, 396 397 /** Gets the international mobile equipment identity (IMEI). */ 398 HREQ_MODEM_GET_IMEI, 399 400 /** Gets the mobile equipment identifier (MEID). */ 401 HREQ_MODEM_GET_MEID, 402 403 /** Gets the baseband version. */ 404 HREQ_MODEM_GET_BASEBAND_VERSION, 405 406 /** Gets the radio access technology of the CS domain. */ 407 HREQ_MODEM_GET_VOICE_RADIO, 408 409 HREQ_MODEM_EXIT = 1000 410 } HRilRequest; 411 #endif // OHOS_RIL_REQUEST_H 412