⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ril.h

📁 RIL( Radio Interface Layer) is the middleware for GSM/GPRS/EDGE module, this version support the GS
💻 H
📖 第 1 页 / 共 5 页
字号:
 * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_GET_MUTE 54/** * RIL_REQUEST_QUERY_CLIP * * Queries the status of the CLIP supplementary service * * (for MMI code "*#30#") * * "data" is NULL * "response" is an int * * (int *)response)[0] is 1 for "CLIP provisioned"  *                           and 0 for "CLIP not provisioned" *                           and 2 for "unknown, e.g. no network etc"  * * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_QUERY_CLIP 55/** * RIL_REQUEST_LAST_PDP_FAIL_CAUSE *  * Requests the failure cause code for the most recently failed PDP  * context activate * * "data" is NULL * * "response" is a "int *" * ((int *)response)[0] is an integer cause code defined in TS 24.008 *   section 6.1.3.1.3 or close approximation * * If the implementation does not have access to the exact cause codes, * then it should return one of the values listed in  * RIL_LastPDPActivateFailCause, as the UI layer needs to distinguish these  * cases for error notification * and potential retries. * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * * See also: RIL_REQUEST_LAST_CALL_FAIL_CAUSE *   */ #define RIL_REQUEST_LAST_PDP_FAIL_CAUSE 56/** * RIL_REQUEST_PDP_CONTEXT_LIST * * Queries the status of PDP contexts, returning for each * its CID, whether or not it is active, and its PDP type, * APN, and PDP adddress. * * "data" is NULL * "response" is an array of RIL_PDP_Context_Response * * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_PDP_CONTEXT_LIST 57/** * RIL_REQUEST_RESET_RADIO * * Request a radio reset. The RIL implementation may postpone * the reset until after this request is responded to if the baseband * is presently busy. * * "data" is NULL * "response" is NULL * * The reset action could be delayed for a while * in case baseband modem is just busy. * * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_RESET_RADIO 58/** * RIL_REQUEST_OEM_HOOK_RAW * * This request reserved for OEM-specific uses. It passes raw byte arrays * back and forth. * * It can be invoked on the Java side from  * com.android.internal.telephony.Phone.invokeOemRilRequestRaw() * * "data" is a char * of bytes copied from the byte[] data argument in java * "response" is a char * of bytes that will returned via the * caller's "response" Message here:  * (byte[])(((AsyncResult)response.obj).result) * * An error response here will result in  * (((AsyncResult)response.obj).result) == null and  * (((AsyncResult)response.obj).exception) being an instance of * com.android.internal.telephony.gsm.CommandException * * Valid errors: *  All */#define RIL_REQUEST_OEM_HOOK_RAW 59/** * RIL_REQUEST_OEM_HOOK_STRINGS * * This request reserved for OEM-specific uses. It passes strings * back and forth. * * It can be invoked on the Java side from  * com.android.internal.telephony.Phone.invokeOemRilRequestStrings() * * "data" is a const char **, representing an array of null-terminated UTF-8 * strings copied from the "String[] strings" argument to * invokeOemRilRequestStrings() * * "response" is a const char **, representing an array of null-terminated UTF-8 * stings that will be returned via the caller's response message here: * * (String[])(((AsyncResult)response.obj).result) * * An error response here will result in  * (((AsyncResult)response.obj).result) == null and  * (((AsyncResult)response.obj).exception) being an instance of * com.android.internal.telephony.gsm.CommandException * * Valid errors: *  All */#define RIL_REQUEST_OEM_HOOK_STRINGS 60/** * RIL_REQUEST_SCREEN_STATE * * Indicates the current state of the screen.  When the screen is off, the * RIL should notify the baseband to suppress certain notifications (eg, * signal strength and changes in LAC or CID) in an effort to conserve power. * These notifications should resume when the screen is on. * * "data" is int * * ((int *)data)[0] is == 1 for "Screen On" * ((int *)data)[0] is == 0 for "Screen Off" * * "response" is NULL * * Valid errors: *  SUCCESS *  GENERIC_FAILURE */#define RIL_REQUEST_SCREEN_STATE 61/** * RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION * * Enables/disables supplementary service related notifications * from the network. * * Notifications are reported via RIL_UNSOL_SUPP_SVC_NOTIFICATION. * * "data" is int * * ((int *)data)[0] is == 1 for notifications enabled * ((int *)data)[0] is == 0 for notifications disabled * * "response" is NULL * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * * See also: RIL_UNSOL_SUPP_SVC_NOTIFICATION. */#define RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION 62/** * RIL_REQUEST_WRITE_SMS_TO_SIM * * Stores a SMS message to SIM memory. * * "data" is RIL_SMS_WriteArgs * * * "response" is int * * ((const int *)response)[0] is the record index where the message is stored. * * Valid errors: *  SUCCESS *  GENERIC_FAILURE * */#define RIL_REQUEST_WRITE_SMS_TO_SIM 63/** * RIL_REQUEST_DELETE_SMS_ON_SIM * * Deletes a SMS message from SIM memory. * * "data" is int  * * ((int *)data)[0] is the record index of the message to delete. * * "response" is NULL * * Valid errors: *  SUCCESS *  GENERIC_FAILURE * */#define RIL_REQUEST_DELETE_SMS_ON_SIM 64/** * RIL_REQUEST_SET_BAND_MODE * * Assign a specified band for RF configuration. * * "data" is int * * ((int *)data)[0] is == 0 for "unspecified" (selected by baseband automatically) * ((int *)data)[0] is == 1 for "EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000) * ((int *)data)[0] is == 2 for "US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900) * ((int *)data)[0] is == 3 for "JPN band" (WCDMA-800 / WCDMA-IMT-2000) * ((int *)data)[0] is == 4 for "AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000) * ((int *)data)[0] is == 5 for "AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850) * * "response" is NULL * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE */#define RIL_REQUEST_SET_BAND_MODE 65/** * RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE * * Query the list of band mode supported by RF. * * "data" is NULL * * "response" is int * * "response" points to an array of int's, the int[0] is the size of array, reset is one for * each available band mode. * *  0 for "unspecified" (selected by baseband automatically) *  1 for "EURO band" (GSM-900 / DCS-1800 / WCDMA-IMT-2000) *  2 for "US band" (GSM-850 / PCS-1900 / WCDMA-850 / WCDMA-PCS-1900) *  3 for "JPN band" (WCDMA-800 / WCDMA-IMT-2000) *  4 for "AUS band" (GSM-900 / DCS-1800 / WCDMA-850 / WCDMA-IMT-2000) *  5 for "AUS band 2" (GSM-900 / DCS-1800 / WCDMA-850) * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * * See also: RIL_REQUEST_SET_BAND_MODE */#define RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE 66/** * RIL_REQUEST_STK_GET_PROFILE * * Requests the profile of SIM tool kit. * The profile indicates the SAT/USAT features supported by ME. * The SAT/USAT features refer to 3GPP TS 11.14 and 3GPP TS 31.111 * * "data" is NULL * * "response" is a const char * containing SAT/USAT profile * in hexadecimal format string starting with first byte of terminal profile * * Valid errors: *  RIL_E_SUCCESS *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting) *  RIL_E_GENERIC_FAILURE */#define RIL_REQUEST_STK_GET_PROFILE 67/** * RIL_REQUEST_STK_SET_PROFILE * * Download the STK terminal profile as part of SIM initialization * procedure * * "data" is a const char * containing SAT/USAT profile * in hexadecimal format string starting with first byte of terminal profile * * "response" is NULL * * Valid errors: *  RIL_E_SUCCESS *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting) *  RIL_E_GENERIC_FAILURE */#define RIL_REQUEST_STK_SET_PROFILE 68/** * RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND * * Requests to send a SAT/USAT envelope command to SIM. * The SAT/USAT envelope command refers to 3GPP TS 11.14 and 3GPP TS 31.111 * * "data" is a const char * containing SAT/USAT command * in hexadecimal format string starting with command tag * * "response" is a const char * containing SAT/USAT response * in hexadecimal format string starting with first byte of response * (May be NULL) * * Valid errors: *  RIL_E_SUCCESS *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting) *  RIL_E_GENERIC_FAILURE */#define RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND 69/** * RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE * * Requests to send a terminal response to SIM for a received * proactive command * * "data" is a const char * containing SAT/USAT response * in hexadecimal format string starting with first byte of response data * * "response" is NULL * * Valid errors: *  RIL_E_SUCCESS *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting) *  RIL_E_GENERIC_FAILURE */#define RIL_REQUEST_STK_SEND_TERMINAL_RESPONSE 70/** * RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM * * When STK application gets RIL_UNSOL_STK_CALL_SETUP, the call actually has * been initialized by ME already. (We could see the call has been in the 'call * list') So, STK application needs to accept/reject the call according as user * operations. * * "data" is int * * ((int *)data)[0] is > 0 for "accept" the call setup * ((int *)data)[0] is == 0 for "reject" the call setup * * "response" is NULL * * Valid errors: *  RIL_E_SUCCESS *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting) *  RIL_E_GENERIC_FAILURE */#define RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM 71/** * RIL_REQUEST_EXPLICIT_CALL_TRANSFER * * Connects the two calls and disconnects the subscriber from both calls. *  * "data" is NULL * "response" is NULL * * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_EXPLICIT_CALL_TRANSFER 72/** * RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE * * Requests to set the preferred network type for searching and registering * (CS/PS domain, RAT, and operation mode) * * "data" is int * * ((int *)data)[0] is == 0 for WCDMA preferred (auto mode) * ((int *)data)[0] is == 1 for GSM only * ((int *)data)[0] is == 2 for WCDMA only * * "response" is NULL * * Valid errors: *  RIL_E_SUCCESS *  RIL_E_RADIO_NOT_AVAILABLE (radio resetting) *  RIL_E_GENERIC_FAILURE */#define RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE 73/** * RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE * * Query the preferred network type (CS/PS domain, RAT, and operation mode) * for searching and registering * * "data" is NULL * * "response" is int * * ((int *)response)[0] is == 0 for WCDMA preferred (auto mode) * ((int *)response)[0] is == 1 for GSM only * ((int *)response)[0] is == 2 for WCDMA only * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * * See also: RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE */#define RIL_REQUEST_GET_PREFERRED_NETWORK_TYPE 74/** * RIL_REQUEST_NEIGHBORING_CELL_IDS * * Request neighboring cell id in GSM network * * "data" is NULL * "response" is a char ** * ((char *)response)[0] is the number of available cell ids, range from 0 to 6 * ((char *)response)[1] is CID[0] if available or NULL if not * ((char *)response)[2] is CID[1] if available or NULL if not * ((char *)response)[3] is CID[2] if available or NULL if not * ((char *)response)[4] is CID[3] if available or NULL if not * ((char *)response)[5] is CID[4] if available or NULL if not * ((char *)response)[6] is CID[5] if available or NULL if not * * CIDs are in hexadecimal format.  Valid values are 0x00000000 - 0xffffffff. * * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE */#define RIL_REQUEST_GET_NEIGHBORING_CELL_IDS 75/** * RIL_REQUEST_SET_LOCATION_UPDATES * * Enables/disables network state change notifications due to changes in * LAC and/or CID (basically, +CREG=2 vs. +CREG=1).   * * Note:  The RIL implementation should default to "updates enabled" * when the screen is on and "updates disabled" when the screen is off. *

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -