diff options
author | Jaime Lopez <jaimel@codeaurora.org> | 2010-07-21 18:03:58 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-10-08 15:41:44 -0700 |
commit | 1a000857bb7eef298efa787699050884f92311fe (patch) | |
tree | 5151062b946b7970eadfeae38e7a837ffa9021f8 /telephony/android_modem.h | |
parent | 7bf9d7ffaee95963a1f6535494eedfc09097271b (diff) | |
download | external_qemu-1a000857bb7eef298efa787699050884f92311fe.zip external_qemu-1a000857bb7eef298efa787699050884f92311fe.tar.gz external_qemu-1a000857bb7eef298efa787699050884f92311fe.tar.bz2 |
qemu: Multimode support
Preliminary implementation of a Multimode modem
- Added the +CTEC AT command which allows querying and setting the current technology
- Added preliminary NVRAM file support
Add cdma subscription source support
- Add support to save the subscription source preference to nv.
- Add command 'cdma ssource' to switch subscription source from the
emulator console
Implement AT+WRMP command
Implement the AT+WRMP command to set and get the roaming preference
Implement Emergency Callback Mode
Implement the +WSOS command and unsol to notify Emergency Callback Mode status
Implement +WPRL AT Command
Enable PRL update notification by implementing the AT+WPRL query command
Implement a console command to send +WPRL unsolicited response
Change-Id: I5c036c1b0832b94c0b7675931f6a18b5d9ca7436
Diffstat (limited to 'telephony/android_modem.h')
-rw-r--r-- | telephony/android_modem.h | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/telephony/android_modem.h b/telephony/android_modem.h index 828da42..4409a7d 100644 --- a/telephony/android_modem.h +++ b/telephony/android_modem.h @@ -60,20 +60,48 @@ typedef enum { } ARegistrationState; typedef enum { - A_GPRS_NETWORK_UNKNOWN = 0, - A_GPRS_NETWORK_GPRS, - A_GPRS_NETWORK_EDGE, - A_GPRS_NETWORK_UMTS -} AGprsNetworkType; + A_DATA_NETWORK_UNKNOWN = 0, + A_DATA_NETWORK_GPRS, + A_DATA_NETWORK_EDGE, + A_DATA_NETWORK_UMTS, + A_DATA_NETWORK_LTE, + A_DATA_NETWORK_CDMA1X, + A_DATA_NETWORK_EVDO, // TODO: Should REV0, REVA and REVB be added? +} ADataNetworkType; +// TODO: Merge the usage of these two structs and rename ADataNetworkType +typedef enum { + A_TECH_GSM = 0, + A_TECH_WCDMA, + A_TECH_CDMA, + A_TECH_EVDO, + A_TECH_LTE, + A_TECH_UNKNOWN // This must always be the last value in the enum +} AModemTech; + +typedef enum { + A_SUBSCRIPTION_NVRAM = 0, + A_SUBSCRIPTION_RUIM, + A_SUBSCRIPTION_UNKNOWN // This must always be the last value in the enum +} ACdmaSubscriptionSource; + +typedef enum { + A_ROAMING_PREF_HOME = 0, + A_ROAMING_PREF_AFFILIATED, + A_ROAMING_PREF_ANY, + A_ROAMING_PREF_UNKNOWN // This must always be the last value in the enum +} ACdmaRoamingPref; extern ARegistrationState amodem_get_voice_registration( AModem modem ); extern void amodem_set_voice_registration( AModem modem, ARegistrationState state ); extern ARegistrationState amodem_get_data_registration( AModem modem ); extern void amodem_set_data_registration( AModem modem, ARegistrationState state ); -extern void amodem_set_data_network_type( AModem modem, AGprsNetworkType type ); +extern void amodem_set_data_network_type( AModem modem, ADataNetworkType type ); -extern AGprsNetworkType android_parse_network_type( const char* speed ); +extern ADataNetworkType android_parse_network_type( const char* speed ); +extern AModemTech android_parse_modem_tech( const char* tech ); +extern void amodem_set_cdma_subscription_source( AModem modem, ACdmaSubscriptionSource ssource ); +extern void amodem_set_cdma_prl_version( AModem modem, int prlVersion); /** OPERATOR NAMES |