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 55 // cellular call 56 RADIO_DIAL = 101, 57 RADIO_REJECT_CALL, 58 RADIO_HANGUP_CONNECT, 59 RADIO_ACCEPT_CALL, 60 RADIO_CURRENT_CALLS, 61 RADIO_HOLD_CALL, 62 RADIO_ACTIVE_CALL, 63 RADIO_SWAP_CALL, 64 RADIO_JOIN_CALL, 65 RADIO_SPLIT_CALL, 66 RADIO_CALL_SUPPLEMENT, 67 RADIO_GET_CALL_WAIT, 68 RADIO_SET_CALL_WAIT, 69 RADIO_GET_CALL_FORWARD, 70 RADIO_SET_CALL_FORWARD, 71 RADIO_GET_CALL_CLIP, 72 RADIO_SET_CALL_CLIP, 73 RADIO_GET_CALL_CLIR, 74 RADIO_SET_CALL_CLIR, 75 RADIO_GET_CALL_RESTRICTION, 76 RADIO_SET_CALL_RESTRICTION, 77 RADIO_SEND_DTMF, 78 RADIO_START_DTMF, 79 RADIO_STOP_DTMF, 80 RADIO_SET_CALL_PREFERENCE_MODE, 81 RADIO_GET_CALL_PREFERENCE_MODE, 82 RADIO_SET_IMS_SWITCH_STATUS, 83 RADIO_GET_IMS_SWITCH_STATUS, 84 RADIO_SET_USSD, 85 RADIO_GET_USSD, 86 RADIO_SET_CMUT, 87 RADIO_GET_CMUT, 88 RADIO_GET_EMERGENCY_CALL_LIST, 89 RADIO_SET_EMERGENCY_CALL_LIST, 90 RADIO_GET_CALL_FAIL_REASON, 91 92 // Ims sms 93 RADIO_SEND_IMS_GSM_SMS = 201, 94 RADIO_SEND_SMS, 95 RADIO_SEND_CDMA_SMS, 96 RADIO_STORAGE_SMS, 97 RADIO_DELETE_SMS, 98 RADIO_SEND_SMS_EXPECT_MORE, 99 RADIO_ADD_CDMA_SMS, 100 RADIO_DEL_CDMA_SMS, 101 RADIO_UPDATE_CDMA_SMS, 102 RADIO_SET_IMS_SMS, 103 RADIO_GET_IMS_SMS, 104 105 // Network Search 106 RADIO_NETWORK_STATE = 301, 107 RADIO_VOICE_REG_STATE, 108 RADIO_DATA_REG_STATE, 109 RADIO_OPERATOR, 110 RADIO_GET_SIGNAL_STRENGTH, 111 RADIO_SIGNAL_STRENGTH_UPDATE, 112 RADIO_NETWORK_SEARCH_RESULT, 113 RADIO_GET_NETWORK_SELECTION_MODE, 114 RADIO_SET_NETWORK_SELECTION_MODE, 115 RADIO_GET_NEIGHBORING_CELL_INFO, 116 RADIO_GET_CURRENT_CELL_INFO, 117 RADIO_NETWORK_TIME_UPDATE, 118 RADIO_NETWORK_TIME_ZONE_UPDATE, 119 RADIO_SET_PREFERRED_NETWORK_MODE, 120 RADIO_GET_PREFERRED_NETWORK_MODE, 121 RADIO_NITZ_UPDATE, 122 RADIO_GET_IMS_REG_STATUS, 123 RADIO_GET_IMEI, 124 RADIO_SET_PS_ATTACH_STATUS, 125 RADIO_GET_MEID, 126 RADIO_CHANNEL_CONFIG_UPDATE, 127 RADIO_SET_LOCATION_UPDATE, 128 RADIO_CURRENT_CELL_UPDATE, 129 RADIO_SET_DATA_CONNECT_ACTIVE, 130 RADIO_SET_DEVICE_STATE, 131 RADIO_SET_NOTIFICATION_FILTER, 132 133 // module internal events 134 RADIO_PS_CONNECTION_ATTACHED = 401, 135 RADIO_PS_CONNECTION_DETACHED, 136 RADIO_IMS_REG_STATUS_UPDATE, 137 RADIO_NR_STATE_CHANGED, 138 RADIO_NR_FREQUENCY_CHANGED, 139 RADIO_PS_RAT_CHANGED, 140 RADIO_PS_ROAMING_OPEN, 141 RADIO_PS_ROAMING_CLOSE, 142 RADIO_EMERGENCY_STATE_OPEN, 143 RADIO_EMERGENCY_STATE_CLOSE, 144 145 // SIM 146 RADIO_SIM_GET_STATUS = 501, 147 RADIO_SIM_IO, 148 RADIO_SIM_GET_IMSI, 149 RADIO_SIM_GET_ICCID, 150 RADIO_SIM_GET_LOCK_STATUS, 151 RADIO_SIM_SET_LOCK, 152 RADIO_SIM_CHANGE_PASSWD, 153 RADIO_SIM_ENTER_PIN, 154 RADIO_SIM_UNLOCK_PIN, 155 RADIO_SIM_PIN_INPUT_TIMES, 156 RADIO_SIM_ENTER_PIN2, 157 RADIO_SIM_UNLOCK_PIN2, 158 RADIO_SIM_PIN2_INPUT_TIMES, 159 RADIO_SIM_CARD_ENABLED, 160 RADIO_SIM_STATE_CHANGE, 161 RADIO_SIM_STATE_READY, 162 RADIO_SIM_STATE_LOCKED, 163 RADIO_SIM_STATE_SIMLOCK, 164 RADIO_IMSI_LOADED_READY, 165 RADIO_SIM_RECORDS_LOADED, 166 RADIO_SIM_ACCOUNT_LOADED, 167 RADIO_SIM_GET_RADIO_PROTOCOL, 168 RADIO_SIM_CHECK_RADIO_PROTOCOL, 169 RADIO_SIM_UPDATE_RADIO_PROTOCOL, 170 RADIO_SIM_RADIO_PROTOCOL_NOTIFY, 171 RADIO_SIM_SET_RADIO_PROTOCOL_COMPLETE, 172 RADIO_SIM_SET_RADIO_PROTOCOL_TIMEOUT, 173 174 // STK 175 RADIO_STK_SESSION_END, 176 RADIO_STK_PROACTIVE_COMMAND, 177 RADIO_STK_ALPHA_NOTIFY, 178 RADIO_STK_EVENT_NOTIFY, 179 RADIO_STK_CALL_SETUP, 180 RADIO_STK_SEND_TERMINAL_RESPONSE, 181 RADIO_STK_SEND_ENVELOPE, 182 RADIO_STK_SEND_CALL_SETUP_REQUEST_RESULT, 183 RADIO_STK_IS_READY, 184 185 RADIO_UPDATE_SMS, 186 RADIO_SET_SMS_CENTER_ADDRESS, 187 RADIO_GET_SMS_CENTER_ADDRESS, 188 RADIO_SET_CELL_BROADCAST, 189 RADIO_SET_CDMA_CELL_BROADCAST, 190 RADIO_GET_CELL_BROADCAST, 191 RADIO_GET_CDMA_CELL_BROADCAST, 192 RADIO_ACTIVE_CDMA_CELL_BROADCAST, 193 194 // Card 195 RADIO_CARD_TYPE_CHANGE, 196 197 // IMS core service 198 RADIO_IMS_SERVICE_STATUS_UPDATE = 1000, 199 RADIO_IMS_REGISTER_STATE_UPDATE, 200 201 // IMS call 202 RADIO_IMS_CALL_STATUS_INFO, 203 RADIO_IMS_GET_CALL_DATA, 204 205 // IMS supplement 206 RADIO_IMS_SET_CLIP, 207 RADIO_IMS_SET_COLR, 208 RADIO_IMS_GET_COLR, 209 RADIO_IMS_SET_COLP, 210 RADIO_IMS_GET_COLP, 211 }; 212 #endif // RADIO_EVENT_H 213