|
Gammu internals
1.38.0
|
Data Structures | |
| struct | GSM_CodeName |
| struct | GSM_NetworkInfo |
| struct | GSM_SignalQuality |
| struct | GSM_BatteryCharge |
| struct | GSM_DisplayFeatures |
| struct | GSM_PhoneModel |
Variables | |
| const GSM_CodeName | GSM_Networks [] |
| const GSM_CodeName | GSM_Countries [] |
Phone information.
| enum GSM_BatteryType |
Power source
| Enumerator | |
|---|---|
| GSM_BatteryUnknown | Unknown battery |
| GSM_BatteryNiMH | NiMH battery |
| GSM_BatteryLiIon | Lithium Ion battery |
| GSM_BatteryLiPol | Lithium Polymer battery |
Definition at line 212 of file gammu-info.h.
| enum GSM_ChargeState |
Power source
Definition at line 180 of file gammu-info.h.
| enum GSM_DisplayFeature |
Display feature
| Enumerator | |
|---|---|
| GSM_CallActive | |
| GSM_SMSMemoryFull | blinking envelope |
| GSM_FaxCall | |
| GSM_UnreadSMS | |
| GSM_DataCall | |
| GSM_VoiceCall | |
| GSM_KeypadLocked | |
Definition at line 284 of file gammu-info.h.
| enum GSM_Feature |
Phone features definition. This is usually used for things, which can not be determined on run time.
Definition at line 313 of file gammu-info.h.
| enum GSM_GPRS_State |
Status of GPRS connection.
| Enumerator | |
|---|---|
| GSM_GPRS_Detached | GRPS is detached. |
| GSM_GPRS_Attached | GRPS is attached. |
Definition at line 98 of file gammu-info.h.
Status of network logging
Definition at line 66 of file gammu-info.h.
| gboolean GSM_AddPhoneFeature | ( | GSM_PhoneModel * | model, |
| GSM_Feature | feature | ||
| ) |
Adds feature to phone configuration.
| model | Model information (you can get it using GSM_GetModelInfo). |
| feature | GSM_Feature to check for. |
Definition at line 1039 of file gsmphones.c.
References FALSE, GSM_PhoneModel::features, GSM_MAX_PHONE_FEATURES, and TRUE.
Referenced by GSM_RegisterAllPhoneModules().
| GSM_Feature GSM_FeatureFromString | ( | const char * | feature | ) |
Converts feature string to value.
| feature | GSM_Feature string to convert. |
Definition at line 145 of file gsmphones.c.
References GSM_FeatureName::feature, and GSM_FeatureName::name.
Referenced by GSM_SetFeatureString().
| const char* GSM_FeatureToString | ( | GSM_Feature | feature | ) |
Converts feature value to string.
| feature | GSM_Feature to convert. |
Definition at line 135 of file gsmphones.c.
References GSM_FeatureName::feature, and GSM_FeatureName::name.
| GSM_Error GSM_GetBatteryCharge | ( | GSM_StateMachine * | s, |
| GSM_BatteryCharge * | bat | ||
| ) |
Gets information about batery charge and phone charging state.
Definition at line 411 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetBatteryCharge, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| const unsigned char* GSM_GetCountryName | ( | const char * | CountryCode | ) |
Find country name from given country code.
Definition at line 2452 of file gsmnet.c.
References GSM_CodeName::Code, and EncodeUnicode().
| GSM_Error GSM_GetDisplayStatus | ( | GSM_StateMachine * | s, |
| GSM_DisplayFeatures * | features | ||
| ) |
Acquired display status.
Definition at line 385 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetDisplayStatus, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetFirmware | ( | GSM_StateMachine * | s, |
| char * | value, | ||
| char * | date, | ||
| double * | num | ||
| ) |
Reads firmware information from phone.
| s | State machine pointer. |
| value | Pointer where to store revision text |
| date | Pointer where to store revision date |
| num | Pointer where to store revision number |
Reads firmware information from phone.
Definition at line 108 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Data, GSM_Phone::Functions, GSM_Phone_Functions::GetFirmware, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, GSM_Phone_Data::VerDate, GSM_Phone_Data::VerNum, and GSM_Phone_Data::Version.
| GSM_Error GSM_GetHardware | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Gets hardware information about device.
Definition at line 189 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetHardware, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetIMEI | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Reads IMEI/serial number from phone.
| s | State machine pointer. |
| value | Pointer where to store IMEI, NULL to ignore. |
Reads IMEI/serial number from phone.
Definition at line 132 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Data, GSM_Phone::Functions, GSM_Phone_Functions::GetIMEI, GSM_Phone_Data::IMEI, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetManufactureMonth | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Gets month when device was manufactured.
Definition at line 163 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetManufactureMonth, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetManufacturer | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Reads manufacturer from phone.
| s | State machine pointer. |
| value | Pointer where to store manufacturer name |
Reads manufacturer from phone.
Definition at line 72 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Data, GSM_Phone::Functions, GSM_Phone_Functions::GetManufacturer, GSM_Phone_Data::Manufacturer, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetModel | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Reads model from phone.
| s | State machine pointer. |
| value | Pointer where to store model name |
Reads model from phone.
Definition at line 90 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Data, GSM_Phone::Functions, GSM_Phone_Functions::GetModel, GSM_Phone_Data::Model, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_PhoneModel* GSM_GetModelInfo | ( | GSM_StateMachine * | s | ) |
Reads model info from state machine.
| s | State machine pointer. |
Definition at line 1714 of file gsmstate.c.
References GSM_Phone::Data, GSM_Phone_Data::ModelInfo, and _GSM_StateMachine::Phone.
| GSM_Error GSM_GetNetworkInfo | ( | GSM_StateMachine * | s, |
| GSM_NetworkInfo * | netinfo | ||
| ) |
Gets network information.
Definition at line 439 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_NetworkInfo::CID, GSM_Phone::Functions, GSM_Phone_Functions::GetNetworkInfo, GSM_NetworkInfo::GPRS, GSM_NetworkStatusUnknown, GSM_NetworkInfo::LAC, GSM_NetworkInfo::NetworkCode, GSM_NetworkInfo::NetworkName, GSM_NetworkInfo::PacketCID, GSM_NetworkInfo::PacketLAC, GSM_NetworkInfo::PacketState, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_NetworkInfo::State.
| const unsigned char* GSM_GetNetworkName | ( | const char * | NetworkCode | ) |
Find network name from given network code.
Definition at line 2420 of file gsmnet.c.
References GSM_CodeName::Code, and EncodeUnicode().
| GSM_Error GSM_GetOriginalIMEI | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Gets date and time from phone.
Definition at line 150 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetOriginalIMEI, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetPPM | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Gets PPM (Post Programmable Memory) info from phone (in other words for Nokia get, which language pack is in phone)
Definition at line 203 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetPPM, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetProductCode | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Gets product code of device.
Definition at line 176 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetProductCode, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetSignalQuality | ( | GSM_StateMachine * | s, |
| GSM_SignalQuality * | sig | ||
| ) |
Reads signal quality (strength and error rate).
Definition at line 426 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetSignalQuality, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| GSM_Error GSM_GetSIMIMSI | ( | GSM_StateMachine * | s, |
| char * | IMSI | ||
| ) |
Gets SIM IMSI from phone.
Definition at line 216 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, GSM_Phone_Functions::GetSIMIMSI, _GSM_StateMachine::Phone, and PRINT_LOG_ERROR.
| gboolean GSM_IsPhoneFeatureAvailable | ( | GSM_PhoneModel * | model, |
| GSM_Feature | feature | ||
| ) |
Checks whether phone supports features.
| model | Model information (you can get it using GSM_GetModelInfo). |
| feature | GSM_Feature to check for. |
Definition at line 1026 of file gsmphones.c.
References FALSE, GSM_PhoneModel::features, and TRUE.
Referenced by DUMMY_GetNextCalendar(), DUMMY_GetNextMemory(), DUMMY_GetNextNote(), DUMMY_GetNextSMS(), DUMMY_GetNextToDo(), GSM_RegisterAllPhoneModules(), GSM_WaitFor(), N71_65_DecodePhonebook(), N71_65_EncodePhonebookFrame(), and NOKIA_EncodeDateTime().
| const GSM_CodeName GSM_Countries[] |
| const GSM_CodeName GSM_Networks[] |