|
SWILIB API (ELKA)
|
Go to the source code of this file.
Data Structures | |
| struct | CHAN_BAN_Q |
| GSM Channel item. More... | |
| struct | SFN_DATA |
| Channels list container. More... | |
Typedefs | |
| typedef struct CHAN_BAN_Q | CHAN_BAN_Q |
| typedef struct SFN_DATA | SFN_DATA |
Enumerations | |
| enum | AccessoryTypeID { ACC_TYPE_SERIAL_CABLE = 15 , ACC_TYPE_IMS_700 = 29 } |
| Accessory types. More... | |
| enum | MissedEvent { MISSED_EVENT_ALL = 0 , MISSED_EVENT_CALLS = 1 , MISSED_EVENT_SMS = 2 , MISSED_EVENT_OTHER = 3 } |
| Missed event types. More... | |
Functions | |
MasterPatch | |
| void | RunDispatcher () |
| Run MasterPatch dispatcher. | |
| void | GetAllPatchesByInject () |
| Unknown. | |
| void * | GetBuffer (int patch_id) |
| [MasterPatch] Get memory buffer for the patch by ID. | |
| void | RunScaner () |
| Run MasterPatch scaner. | |
| void * | FreeRAM () |
| Pointer to the free memory for MasterPatch patches. | |
API | |
| char * | OpenReadCloseFile (const char *path, void *ram) |
| Read file content. | |
| char * | GetLP (int lgp_id) |
| Get message from langpack. | |
| void | SendMP_cmd (uint16_t cmd, int16_t substract) |
| Send cmd to the MediaPlayer. | |
| void | StrAnsi2Uni (const char *in, uint16_t *out) |
| Convert ANSI string to Unicode (1st word - len). | |
| void | StrUni2Ansi (const uint16_t *in, char *out) |
| Convert Unicode string (1st word - len) to ANSI. | |
| void | DrawPicWithCanvas (int x, int y, int picture) |
| Draw image from the PIT table with "canvas" on background. | |
| void | DrawColorPicWithCanvas (int x, int y, int picture, const char *pen) |
| Draw image from the PIT table with "canvas" on background. | |
| void | DrawText (const WSHDR *text, int x, int y, int font, int w, int h, int align, const char *pen, const char *brush, int inversion) |
| Draw a multi-line string. | |
| void | ProcessFiles (const char *path, void(*callback)(const char *text)) |
| Read all files in the specified folder and run a callback for each. | |
| void | PlayVibra (int freq, int duration, int force) |
| Play vibration. | |
| void | PlaySoundVibra (int sound_n, int vibra_freq, int vibra_duration, int vibra_force) |
| Play sound with vibration. | |
| const WSHDR * | CreatePath (const WSHDR *path) |
| Recursive mkdir. | |
| long | Seconds2iTime (int timeval) |
| Unknown. | |
| long | GetFileSize (const char *path) |
| Get file size. | |
| char | GetAccessoryType (void) |
| Get the type of current accessory connected to the phone. | |
| int | GetMissedEventCount (uint32_t event) |
| Get missed events count. | |
| void | gb2ws (WSHDR *destination, const char *source, int size) |
| Convert Chinese one-byte C-string to WHSDR. | |
| void | ws2gb (const WSHDR *source, char *destination, int size) |
| Convert WSHDR to the Chinese one-byte C-string. | |
Screen Shooter | |
| void | ScreenShoot () |
| Make screenshot. | |
Talking phone | |
| void | SpellTime () |
| Spell current time. | |
Channel Banner | |
| SFN_DATA * | DATA_N_SFB (void) |
| Get list of the GSM channels RX levels. | |
BoBaPack | |
| void * | GetConfig (uint32_t id) |
| Unknown function. | |
| void | Vibration (uint32_t power, uint32_t duration) |
| Do vibration. | |
| void * | GetMinAdrScan () |
| Unknown function. | |
| void * | GetMaxAdrScan () |
| Unknown function. | |
Extending PIT and Shortcuts. | |
| void * | ShortcutsTableAddr () |
| Shortcuts table address. | |
| void * | PictureRelocationTableAddr () |
| Picture relocation table address. | |
| uint32_t | PictureRelocationBaseAddr () |
| Picture relocation base address. | |
| uint32_t | NextPictureMagicValue () |
| Magic value for the next picture. | |
| void * | Additional_PIT_address () |
| Additional PIT address. | |
| uint32_t | Additional_PIT_start () |
| First PIT number for additional table. | |
| uint32_t | Additional_PIT_end () |
| Last PIT number for additional table. | |
MiniGPS. | |
| uint32_t | MiniGPS () |
| Run MiniGPS patch. | |
Extra Info on ProgressBars. | |
| int | ProgressCalculate (int current, int total) |
| Calculate current progress by current & total. | |
Chinese patches. | |
| void * | GetBuildCanvas (void) |
| Unknown. | |
| int | GetLunarDate (const TDate *date, TDate *lunar_date) |
| Convert normal date to the Lunar date. | |
| int | GetLunarYearID (int year) |
| Get Lunar Year ID by year. | |
| int | GetLunarAnimal (int year) |
| Get Lunar Year animal picture by year. | |
Unknown functions from unknown patches. | |
| void | CallLibFunByNumber (int func_id) |
| Unknown. | |