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

📄 ril.h

📁 RIL( Radio Interface Layer) is the middleware for GSM/GPRS/EDGE module, this version support the GS
💻 H
📖 第 1 页 / 共 5 页
字号:
 *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE */#define RIL_REQUEST_SET_CLIR 32/** * RIL_REQUEST_QUERY_CALL_FORWARD_STATUS * * "data" is const RIL_CallForwardInfo * * * "response" is const RIL_CallForwardInfo ** * "response" points to an array of RIL_CallForwardInfo *'s, one for * each distinct registered phone number. * * For example, if data is forwarded to +18005551212 and voice is forwarded * to +18005559999, then two separate RIL_CallForwardInfo's should be returned *  * If, however, both data and voice are forwarded to +18005551212, then * a single RIL_CallForwardInfo can be returned with the service class * set to "data + voice = 3") * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE */#define RIL_REQUEST_QUERY_CALL_FORWARD_STATUS 33/** * RIL_REQUEST_SET_CALL_FORWARD * * Configure call forward rule * * "data" is const RIL_CallForwardInfo * * "response" is NULL *   * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE */#define RIL_REQUEST_SET_CALL_FORWARD 34/** * RIL_REQUEST_QUERY_CALL_WAITING * * Query current call waiting state * * "data" is const int * * ((const int *)data)[0] is the TS 27.007 service class to query. * "response" is a const int * * ((const int *)response)[0] is 0 for "disabled" and 1 for "enabled" * * If ((const int *)response)[0] is = 1, then ((const int *)response)[1] * must follow, with the TS 27.007 service class bit vector of services * for which call waiting is enabled. * * For example, if ((const int *)response)[0]  is 1 and  * ((const int *)response)[1] is 3, then call waiting is enabled for data * and voice and disabled for everything else * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE */#define RIL_REQUEST_QUERY_CALL_WAITING 35/** * RIL_REQUEST_SET_CALL_WAITING * * Configure current call waiting state * * "data" is const int * * ((const int *)data)[0] is 0 for "disabled" and 1 for "enabled" * ((const int *)data)[1] is the TS 27.007 service class bit vector of *                           services to modify * "response" is NULL * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE */#define RIL_REQUEST_SET_CALL_WAITING 36/** * RIL_REQUEST_SMS_ACKNOWLEDGE * * Acknowledge successful or failed receipt of SMS previously indicated * via RIL_UNSOL_RESPONSE_NEW_SMS  * * "data" is int * * ((int *)data)[0] is "1" on successful receipt  *                  (basically, AT+CNMA=1 from TS 27.005 * ((int *)data)[0] is "0" on failed receipt  *                  (basically, AT+CNMA=2 from TS 27.005) * * "response" is NULL * * FIXME would like request that specified RP-ACK/RP-ERROR PDU * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE */#define RIL_REQUEST_SMS_ACKNOWLEDGE  37/** * RIL_REQUEST_GET_IMEI * * Get the device IMEI, including check digit * * Valid when RadioState is not RADIO_STATE_UNAVAILABLE * * "data" is NULL * "response" is a const char * containing the IMEI * * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_GET_IMEI 38/** * RIL_REQUEST_GET_IMEISV * * Get the device IMEISV, which should be two decimal digits * * Valid when RadioState is not RADIO_STATE_UNAVAILABLE * * "data" is NULL * "response" is a const char * containing the IMEISV * * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_GET_IMEISV 39/** * RIL_REQUEST_ANSWER * * Answer incoming call * * Will not be called for WAITING calls. * RIL_REQUEST_SWITCH_WAITING_OR_HOLDING_AND_ACTIVE will be used in this case * instead * * "data" is NULL * "response" is NULL * * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_ANSWER 40/** * RIL_REQUEST_DEACTIVATE_DEFAULT_PDP * * Deactivate PDP context created by RIL_REQUEST_SETUP_DEFAULT_PDP * * "data" is const char ** * ((char**)data)[0] indicating PDP CID * "response" is NULL * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * * See also: RIL_REQUEST_SETUP_DEFAULT_PDP */#define RIL_REQUEST_DEACTIVATE_DEFAULT_PDP 41/** * RIL_REQUEST_QUERY_FACILITY_LOCK * * Query the status of a facility lock state * * "data" is const char ** * ((const char **)data)[0] is the facility string code from TS 27.007 7.4   *                      (eg "AO" for BAOC, "SC" for SIM lock) * ((const char **)data)[1] is the password, or "" if not required * ((const char **)data)[2] is the TS 27.007 service class bit vector of *                           services to query * * "response" is an int * * ((const int *)response) 0 is the TS 27.007 service class bit vector of *                           services for which the specified barring facility  *                           is active. "0" means "disabled for all" *  * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * */#define RIL_REQUEST_QUERY_FACILITY_LOCK 42/** * RIL_REQUEST_SET_FACILITY_LOCK * * Enable/disable one facility lock * * "data" is const char ** * * ((const char **)data)[0] = facility string code from TS 27.007 7.4 * (eg "AO" for BAOC) * ((const char **)data)[1] = "0" for "unlock" and "1" for "lock" * ((const char **)data)[2] = password * ((const char **)data)[3] = string representation of decimal TS 27.007 *                            service class bit vector. Eg, the string *                            "1" means "set this facility for voice services" * * "response" is NULL  * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * */#define RIL_REQUEST_SET_FACILITY_LOCK 43/** * RIL_REQUEST_CHANGE_BARRING_PASSWORD * * Change call barring facility password * * "data" is const char ** * * ((const char **)data)[0] = facility string code from TS 27.007 7.4 * (eg "AO" for BAOC) * ((const char **)data)[1] = old password * ((const char **)data)[2] = new password * * "response" is NULL  * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * */#define RIL_REQUEST_CHANGE_BARRING_PASSWORD 44/** * RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE * * Query current network selectin mode * * "data" is NULL * * "response" is int * * ((const int *)response)[0] is *     0 for automatic selection *     1 for manual selection * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * */#define RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE 45/** * RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC * * Specify that the network should be selected automatically * * "data" is NULL * "response" is NULL * * This request must not respond until the new operator is selected  * and registered * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * */#define RIL_REQUEST_SET_NETWORK_SELECTION_AUTOMATIC 46/** * RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL * * Manually select a specified network. * * The radio baseband/RIL implementation is expected to fall back to  * automatic selection mode if the manually selected network should go * out of range in the future. * * "data" is const char * specifying MCCMNC of network to select (eg "310170") * "response" is NULL * * This request must not respond until the new operator is selected  * and registered * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * */#define RIL_REQUEST_SET_NETWORK_SELECTION_MANUAL 47/** * RIL_REQUEST_QUERY_AVAILABLE_NETWORKS * * Scans for available networks * * "data" is NULL * "response" is const char ** that should be an array of n*4 strings, where *    n is the number of available networks * For each available network: * * ((const char **)response)[n+0] is long alpha ONS or EONS  * ((const char **)response)[n+1] is short alpha ONS or EONS  * ((const char **)response)[n+2] is 5 or 6 digit numeric code (MCC + MNC) * ((const char **)response)[n+3] is a string value of the status: *           "unknown" *           "available" *           "current" *           "forbidden" * * This request must not respond until the new operator is selected  * and registered * * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * */#define RIL_REQUEST_QUERY_AVAILABLE_NETWORKS 48/** * RIL_REQUEST_DTMF_START * * Start playing a DTMF tone. Continue playing DTMF tone until  * RIL_REQUEST_DTMF_STOP is received  * * If a RIL_REQUEST_DTMF_START is received while a tone is currently playing, * it should cancel the previous tone and play the new one. *  * "data" is a char * * ((char *)data)[0] is a single character with one of 12 values: 0-9,*,# * "response" is NULL *  * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_STOP */#define RIL_REQUEST_DTMF_START 49/** * RIL_REQUEST_DTMF_STOP * * Stop playing a currently playing DTMF tone. *  * "data" is NULL * "response" is NULL *  * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * * See also: RIL_REQUEST_DTMF, RIL_REQUEST_DTMF_START */#define RIL_REQUEST_DTMF_STOP 50/** * RIL_REQUEST_BASEBAND_VERSION * * Return string value indicating baseband version, eg * response from AT+CGMR *  * "data" is NULL * "response" is const char * containing version string for log reporting *  * Valid errors: *  SUCCESS *  RADIO_NOT_AVAILABLE *  GENERIC_FAILURE * */#define RIL_REQUEST_BASEBAND_VERSION 51/** * RIL_REQUEST_SEPARATE_CONNECTION * * Separate a party from a multiparty call placing the multiparty call * (less the specified party) on hold and leaving the specified party  * as the only other member of the current (active) call * * Like AT+CHLD=2x * * See TS 22.084 1.3.8.2 (iii) * TS 22.030 6.5.5 "Entering "2X followed by send" * TS 27.007 "AT+CHLD=2x" *  * "data" is an int *  * (int *)data)[0] contains GSM call index (value of 'x' in CHLD above) * "response" is NULL * * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_SEPARATE_CONNECTION 52/** * RIL_REQUEST_SET_MUTE * * Turn on or off uplink (microphone) mute. * * Will only be sent while voice call is active. * Will always be reset to "disable mute" when a new voice call is initiated * * "data" is an int * * (int *)data)[0] is 1 for "enable mute" and 0 for "disable mute" * * "response" is NULL * * Valid errors: *  SUCCESS  *  RADIO_NOT_AVAILABLE (radio resetting) *  GENERIC_FAILURE */#define RIL_REQUEST_SET_MUTE 53/** * RIL_REQUEST_GET_MUTE * * Queries the current state of the uplink mute setting * * "data" is NULL * "response" is an int * * (int *)response)[0] is 1 for "mute enabled" and 0 for "mute disabled" *

⌨️ 快捷键说明

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