|
SWILIB API (SG)
|
Getting miscellaneous phone info.
Usage: #include <swilib.h> or #include <swilib/info.h>
Enumerations | |
| enum | PhoneInfoID { PI_BASE_INFO1 = 0 , PI_BASE_INFO2 = 1 , PI_BASE_INFO3 = 2 , PI_BASE_INFO4 = 3 , PI_BUILD = 4 , PI_DATETIME1 = 5 , PI_DATETIME2 = 6 , PI_SW_NUMBER = 7 , PI_VENDOR = 8 , PI_MODEL = 9 , PI_LG = 10 , PI_T9 = 11 } |
| Phone info indexes for the Get_Phone_Info. More... | |
| enum | BatChargingStateID { BAT_STATE_DISCHARGING = 0 , BAT_STATE_UNKNOWN = 1 , BAT_STATE_CHARGING = 2 , BAT_STATE_FULLY_CHARGED = 3 } |
| Battery charging state. More... | |
Functions | |
| int | GetFreeRamAvail () |
| Get free RAM. | |
| int * | RamTotalHeapSize (void) |
| Get total size of the HEAP. | |
| int * | RamTemporaryHeapSize (void) |
| Get total size of the non-perm HEAP. | |
| uint32_t | GetMMIMemUsed () |
| Get memory used by MMI. | |
| char * | Get_Phone_Info (int index) |
| Get basic phone info. | |
Language | |
| char * | GetCurrentLocale (void) |
| Get the phone's language. | |
| char * | RamDisplayLanguage () |
| Get the phone's language. | |
Charging and battery | |
| int | GetAkku (int param1, int param2) |
| Get ADC values. | |
| char | GetAkkuCapacity () |
| Get the current battery level. | |
| uint16_t * | RamCap () |
| Get pointer to the current battery level. | |
| uint16_t * | RamLS () |
| Get pointer to the charging state of the battery. | |
Acessories | |
| int | GetPeripheryState (int device, int check) |
| Get the state of the various peripheries. | |
Bluetooth | |
| int | BT_GetLocVisibility (void) |
| Get bluetooth visibility. | |
| const char * | RamBluetoothDeviceName (void) |
| Own bluetooth name. | |
| char * | RamIsBTConnected () |
| Check if bluetooth connected to the another device. | |
| char * | RamIsBTHeadsetConnected () |
| Check if bluetooth connected to the headset. | |
Events | |
| void * | GetMissedEventsPtr (void) |
| Get missed events ptr. | |
Other functions | |
| char | IsSliderClosed () |
| Get slider position. | |
| char * | RamIsSimPresent () |
| Check if SIM-card is present. | |
| char * | RamIsRunCamera () |
| Check if Camera is running. | |
| char * | RamIsShutdown () |
| Check if phone in shutdown process. | |
| char * | RamIsStandby () |
| Check if phone in standby mode. | |
| char * | RamExtendedCameraState () |
| Get a pointer to the camera state. | |
| char * | RamIsCameraLighterOn () |
| Check if camera lighter is ON. | |
| void * | RamActiveAppointment () |
| Pointer to the active appointment (organizer) | |
| char * | RamRingtoneStatus () |
| Pointer to the ringtone sound status. | |
| void * | RamIsFileCache (void) |
| Get the state of the file-operation indicator. | |
| enum PhoneInfoID |
Phone info indexes for the Get_Phone_Info.
| enum BatChargingStateID |
| int GetFreeRamAvail | ( | ) |
Get free RAM.
| int * RamTotalHeapSize | ( | void | ) |
Get total size of the HEAP.
| int * RamTemporaryHeapSize | ( | void | ) |
Get total size of the non-perm HEAP.
| uint32_t GetMMIMemUsed | ( | ) |
Get memory used by MMI.
| char * Get_Phone_Info | ( | int | index | ) |
| char * GetCurrentLocale | ( | void | ) |
Get the phone's language.
| char * RamDisplayLanguage | ( | ) |
Get the phone's language.
| int GetAkku | ( | int | param1, |
| int | param2 ) |
Get ADC values.
Examples:
(value - 0xAAA + 15) / 10.| param1,param2 | - unknown magic values |
| char GetAkkuCapacity | ( | ) |
Get the current battery level.
| uint16_t * RamCap | ( | ) |
| uint16_t * RamLS | ( | ) |
Get pointer to the charging state of the battery.
| int GetPeripheryState | ( | int | device, |
| int | check ) |
Get the state of the various peripheries.
| device | ID of the periphery: 4-gprs, 0-BT, 1-irda, 2-COM ? |
| check | which state to check: 4-IsActive, (1|2)-IsOn |
| int BT_GetLocVisibility | ( | void | ) |
Get bluetooth visibility.
| const char * RamBluetoothDeviceName | ( | void | ) |
Own bluetooth name.
| char * RamIsBTConnected | ( | ) |
Check if bluetooth connected to the another device.
| char * RamIsBTHeadsetConnected | ( | ) |
Check if bluetooth connected to the headset.
| void * GetMissedEventsPtr | ( | void | ) |
Get missed events ptr.
| char IsSliderClosed | ( | ) |
Get slider position.
| char * RamIsSimPresent | ( | ) |
Check if SIM-card is present.
| char * RamIsRunCamera | ( | ) |
Check if Camera is running.
| char * RamIsShutdown | ( | ) |
Check if phone in shutdown process.
| char * RamIsStandby | ( | ) |
Check if phone in standby mode.
| char * RamExtendedCameraState | ( | ) |
| char * RamIsCameraLighterOn | ( | ) |
Check if camera lighter is ON.
| void * RamActiveAppointment | ( | ) |
Pointer to the active appointment (organizer)
| char * RamRingtoneStatus | ( | ) |
| void * RamIsFileCache | ( | void | ) |
Get the state of the file-operation indicator.