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 RADIO_EVENT_H 17 #define RADIO_EVENT_H 18 enum RadioEvent { 19 // modem 20 RADIO_STATE_CHANGED = 0, 21 RADIO_GET_STATUS, 22 RADIO_SET_STATUS, 23 RADIO_GET_VOICE_TECH, 24 RADIO_VOICE_TECH_CHANGED, 25 26 RADIO_POWER, 27 RADIO_ON, 28 RADIO_AVAIL, 29 RADIO_OFF, 30 RADIO_NOT_AVAIL, 31 RADIO_DATA_CALL_LIST_CHANGED, 32 RADIO_IMS_NETWORK_STATE_CHANGED, 33 RADIO_ICC_STATUS_CHANGED, 34 RADIO_CONNECTED, 35 RADIO_ICC_REFRESH, 36 RADIO_PCODATA, 37 RADIO_GSM_SMS, 38 RADIO_CDMA_SMS, 39 RADIO_CALL_STATUS_INFO, 40 RADIO_CALL_USSD_NOTICE, 41 RADIO_CALL_SS_NOTICE, 42 RADIO_CALL_RINGBACK_VOICE, 43 RADIO_CALL_SRVCC_STATUS, 44 RADIO_CALL_EMERGENCY_NUMBER_REPORT, 45 RADIO_CALL_RSRVCC_STATUS, 46 47 RADIO_SMS_ON_SIM, 48 RADIO_SMS_STATUS, 49 RADIO_RESTRICTED_STATE, 50 RADIO_CELL_BROADCAST, 51 RADIO_CDMA_CELL_BROADCAST, 52 RADIO_RIL_SETUP_DATA_CALL, 53 RADIO_RIL_DEACTIVATE_DATA_CALL, 54 RADIO_LINK_CAPABILITY_CHANGED, 55 RADIO_DSDS_MODE_CHANGED, 56 57 // cellular call 58 RADIO_DIAL = 101, 59 RADIO_REJECT_CALL, 60 RADIO_HANGUP_CONNECT, 61 RADIO_ACCEPT_CALL, 62 RADIO_CURRENT_CALLS, 63 RADIO_HOLD_CALL, 64 RADIO_ACTIVE_CALL, 65 RADIO_SWAP_CALL, 66 RADIO_COMBINE_CALL, 67 RADIO_JOIN_CALL, 68 RADIO_SPLIT_CALL, 69 RADIO_CALL_SUPPLEMENT, 70 RADIO_GET_CALL_WAIT, 71 RADIO_SET_CALL_WAIT, 72 RADIO_GET_CALL_FORWARD, 73 RADIO_SET_CALL_FORWARD, 74 RADIO_GET_CALL_CLIP, 75 RADIO_SET_CALL_CLIP, 76 RADIO_GET_CALL_CLIR, 77 RADIO_SET_CALL_CLIR, 78 RADIO_GET_CALL_RESTRICTION, 79 RADIO_SET_CALL_RESTRICTION, 80 RADIO_SET_CALL_RESTRICTION_PWD, 81 RADIO_SEND_DTMF, 82 RADIO_START_DTMF, 83 RADIO_STOP_DTMF, 84 RADIO_SET_CALL_PREFERENCE_MODE, 85 RADIO_GET_CALL_PREFERENCE_MODE, 86 RADIO_SET_IMS_SWITCH_STATUS, 87 RADIO_GET_IMS_SWITCH_STATUS, 88 RADIO_SET_USSD, 89 RADIO_GET_USSD, 90 RADIO_SET_CMUT, 91 RADIO_GET_CMUT, 92 RADIO_GET_EMERGENCY_CALL_LIST, 93 RADIO_SET_EMERGENCY_CALL_LIST, 94 RADIO_GET_CALL_FAIL_REASON, 95 RADIO_CLOSE_UNFINISHED_USSD, 96 RADIO_SET_VONR_SWITCH_STATUS, 97 98 // Ims sms 99 RADIO_SEND_IMS_GSM_SMS = 201, 100 RADIO_SEND_SMS, 101 RADIO_SEND_CDMA_SMS, 102 RADIO_STORAGE_SMS, 103 RADIO_DELETE_SMS, 104 RADIO_SEND_SMS_EXPECT_MORE, 105 RADIO_ADD_CDMA_SMS, 106 RADIO_DEL_CDMA_SMS, 107 RADIO_UPDATE_CDMA_SMS, 108 RADIO_SET_IMS_SMS, 109 RADIO_GET_IMS_SMS, 110 111 // Network Search 112 RADIO_NETWORK_STATE = 301, 113 RADIO_VOICE_REG_STATE, 114 RADIO_DATA_REG_STATE, 115 RADIO_OPERATOR, 116 RADIO_GET_SIGNAL_STRENGTH, 117 RADIO_SIGNAL_STRENGTH_UPDATE, 118 RADIO_NETWORK_SEARCH_RESULT, 119 RADIO_GET_NETWORK_SELECTION_MODE, 120 RADIO_SET_NETWORK_SELECTION_MODE, 121 RADIO_GET_NEIGHBORING_CELL_INFO, 122 RADIO_GET_CURRENT_CELL_INFO, 123 RADIO_NETWORK_TIME_UPDATE, 124 RADIO_NETWORK_TIME_ZONE_UPDATE, 125 RADIO_SET_PREFERRED_NETWORK_MODE, 126 RADIO_GET_PREFERRED_NETWORK_MODE, 127 RADIO_NITZ_UPDATE, 128 RADIO_GET_IMS_REG_STATUS, 129 RADIO_GET_IMEI, 130 RADIO_SET_PS_ATTACH_STATUS, 131 RADIO_GET_MEID, 132 RADIO_CHANNEL_CONFIG_UPDATE, 133 RADIO_SET_LOCATION_UPDATE, 134 RADIO_CURRENT_CELL_UPDATE, 135 RADIO_SET_DATA_CONNECT_ACTIVE, 136 RADIO_SET_DEVICE_STATE, 137 RADIO_SET_NOTIFICATION_FILTER, 138 RADIO_GET_BASEBAND_VERSION, 139 RADIO_SET_NR_OPTION_MODE, 140 RADIO_GET_NR_OPTION_MODE, 141 RADIO_GET_RRC_CONNECTION_STATE, 142 RADIO_RRC_CONNECTION_STATE_UPDATE, 143 NOTIFY_STATE_CHANGE, 144 DELAY_NOTIFY_STATE_CHANGE, 145 146 // module internal events 147 RADIO_PS_CONNECTION_ATTACHED = 401, 148 RADIO_PS_CONNECTION_DETACHED, 149 RADIO_IMS_REG_STATUS_UPDATE, 150 RADIO_NR_STATE_CHANGED, 151 RADIO_NR_FREQUENCY_CHANGED, 152 RADIO_PS_RAT_CHANGED, 153 RADIO_PS_ROAMING_OPEN, 154 RADIO_PS_ROAMING_CLOSE, 155 RADIO_EMERGENCY_STATE_OPEN, 156 RADIO_EMERGENCY_STATE_CLOSE, 157 158 // SIM 159 RADIO_SIM_GET_STATUS = 501, 160 RADIO_SIM_IO, 161 RADIO_SIM_GET_IMSI, 162 RADIO_SIM_GET_ICCID, 163 RADIO_SIM_GET_LOCK_STATUS, 164 RADIO_SIM_SET_LOCK, 165 RADIO_SIM_CHANGE_PASSWD, 166 RADIO_SIM_ENTER_PIN, 167 RADIO_SIM_UNLOCK_PIN, 168 RADIO_SIM_PIN_INPUT_TIMES, 169 RADIO_SIM_ENTER_PIN2, 170 RADIO_SIM_UNLOCK_PIN2, 171 RADIO_SIM_PIN2_INPUT_TIMES, 172 RADIO_SIM_CARD_ENABLED, 173 RADIO_SIM_STATE_CHANGE, 174 RADIO_SIM_STATE_READY, 175 RADIO_SIM_STATE_LOCKED, 176 RADIO_SIM_STATE_SIMLOCK, 177 RADIO_IMSI_LOADED_READY, 178 RADIO_SIM_RECORDS_LOADED, 179 RADIO_SIM_ACCOUNT_LOADED, 180 RADIO_SIM_GET_RADIO_PROTOCOL, 181 RADIO_SIM_CHECK_RADIO_PROTOCOL, 182 RADIO_SIM_UPDATE_RADIO_PROTOCOL, 183 RADIO_SIM_RADIO_PROTOCOL_NOTIFY, 184 RADIO_SIM_SET_RADIO_PROTOCOL_COMPLETE, 185 RADIO_SIM_SET_RADIO_PROTOCOL_TIMEOUT, 186 187 // STK 188 RADIO_STK_SESSION_END, 189 RADIO_STK_PROACTIVE_COMMAND, 190 RADIO_STK_ALPHA_NOTIFY, 191 RADIO_STK_EVENT_NOTIFY, 192 RADIO_STK_CALL_SETUP, 193 RADIO_STK_SEND_TERMINAL_RESPONSE, 194 RADIO_STK_SEND_ENVELOPE, 195 RADIO_STK_SEND_CALL_SETUP_REQUEST_RESULT, 196 RADIO_STK_IS_READY, 197 198 RADIO_UPDATE_SMS, 199 RADIO_SET_SMS_CENTER_ADDRESS, 200 RADIO_GET_SMS_CENTER_ADDRESS, 201 RADIO_SET_CELL_BROADCAST, 202 RADIO_SET_CDMA_CELL_BROADCAST, 203 RADIO_GET_CELL_BROADCAST, 204 RADIO_GET_CDMA_CELL_BROADCAST, 205 RADIO_ACTIVE_CDMA_CELL_BROADCAST, 206 207 // Card 208 RADIO_CARD_TYPE_CHANGE, 209 210 // IMS core service 211 RADIO_IMS_SERVICE_STATUS_UPDATE = 1000, 212 RADIO_IMS_REGISTER_STATE_UPDATE, 213 214 // IMS call 215 RADIO_IMS_CALL_STATUS_INFO, 216 RADIO_IMS_GET_CALL_DATA, 217 218 // IMS supplement 219 RADIO_IMS_SET_CLIP, 220 RADIO_IMS_SET_COLR, 221 RADIO_IMS_GET_COLR, 222 RADIO_IMS_SET_COLP, 223 RADIO_IMS_GET_COLP, 224 }; 225 #endif // RADIO_EVENT_H 226