|
Gammu API
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. |
| GSM_Feature GSM_FeatureFromString | ( | const char * | feature | ) |
Converts feature string to value.
| feature | GSM_Feature string to convert. |
| const char* GSM_FeatureToString | ( | GSM_Feature | feature | ) |
Converts feature value to string.
| feature | GSM_Feature to convert. |
| GSM_Error GSM_GetBatteryCharge | ( | GSM_StateMachine * | s, |
| GSM_BatteryCharge * | bat | ||
| ) |
Gets information about batery charge and phone charging state.
| const unsigned char* GSM_GetCountryName | ( | const char * | CountryCode | ) |
Find country name from given country code.
| GSM_Error GSM_GetDisplayStatus | ( | GSM_StateMachine * | s, |
| GSM_DisplayFeatures * | features | ||
| ) |
Acquired display status.
| 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 |
| GSM_Error GSM_GetHardware | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Gets hardware information about device.
| 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. |
| GSM_Error GSM_GetManufactureMonth | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Gets month when device was manufactured.
| GSM_Error GSM_GetManufacturer | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Reads manufacturer from phone.
| s | State machine pointer. |
| value | Pointer where to store manufacturer name |
| GSM_Error GSM_GetModel | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Reads model from phone.
| s | State machine pointer. |
| value | Pointer where to store model name |
| GSM_PhoneModel* GSM_GetModelInfo | ( | GSM_StateMachine * | s | ) |
Reads model info from state machine.
| s | State machine pointer. |
| GSM_Error GSM_GetNetworkInfo | ( | GSM_StateMachine * | s, |
| GSM_NetworkInfo * | netinfo | ||
| ) |
Gets network information.
| const unsigned char* GSM_GetNetworkName | ( | const char * | NetworkCode | ) |
Find network name from given network code.
| GSM_Error GSM_GetOriginalIMEI | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Gets date and time from phone.
| 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)
| GSM_Error GSM_GetProductCode | ( | GSM_StateMachine * | s, |
| char * | value | ||
| ) |
Gets product code of device.
| GSM_Error GSM_GetSignalQuality | ( | GSM_StateMachine * | s, |
| GSM_SignalQuality * | sig | ||
| ) |
Reads signal quality (strength and error rate).
| GSM_Error GSM_GetSIMIMSI | ( | GSM_StateMachine * | s, |
| char * | IMSI | ||
| ) |
Gets SIM IMSI from phone.
| 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. |
| const GSM_CodeName GSM_Countries[] |
List of country codes, terminated by empty name/code.
| const GSM_CodeName GSM_Networks[] |
List of network codes, terminated by empty name/code.