37 uint32_t (*
proc)(
int chan, uint32_t lvl);
206__swi_end(0x0AC,
DrawText, (text, x, y, font, w, h, align, pen, brush, inversion));
239void PlaySoundVibra(
int sound_n,
int vibra_freq,
int vibra_duration,
int vibra_force)
#define __swi_end(number, func, call)
#define __swi_begin(number)
CHAN_BAN_Q * ChanBannerQ
Channels list.
uint32_t(* proc)(int chan, uint32_t lvl)
Get RX level.
CHAN_BAN_Q * next
Pointer to the next channel.
char * OpenReadCloseFile(const char *path, void *ram)
Read file content.
void PlaySoundVibra(int sound_n, int vibra_freq, int vibra_duration, int vibra_force)
Play sound with vibration.
void * GetMaxAdrScan()
Unknown function.
void RunDispatcher()
Run MasterPatch dispatcher.
void CallLibFunByNumber(int func_id)
Unknown.
void ProcessFiles(const char *path, void(*callback)(const char *text))
Read all files in the specified folder and run a callback for each.
void * ShortcutsTableAddr()
Shortcuts table address.
void Vibration(uint32_t power, uint32_t duration)
Do vibration.
void SendMP_cmd(uint16_t cmd, int16_t substract)
Send cmd to the MediaPlayer.
void ws2gb(const WSHDR *source, char *destination, int size)
Convert WSHDR to the Chinese one-byte C-string.
AccessoryTypeID
Accessory types.
const WSHDR * CreatePath(const WSHDR *path)
Recursive mkdir.
void * GetConfig(uint32_t id)
Unknown function.
void PlayVibra(int freq, int duration, int force)
Play vibration.
void * GetMinAdrScan()
Unknown function.
long GetFileSize(const char *path)
Get file size.
uint32_t Additional_PIT_start()
First PIT number for additional table.
void * Additional_PIT_address()
Additional PIT address.
uint32_t Additional_PIT_end()
Last PIT number for additional table.
uint32_t NextPictureMagicValue()
Magic value for the next picture.
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 gb2ws(WSHDR *destination, const char *source, int size)
Convert Chinese one-byte C-string to WHSDR.
void * FreeRAM()
Pointer to the free memory for MasterPatch patches.
void DrawColorPicWithCanvas(int x, int y, int picture, const char *pen)
Draw image from the PIT table with "canvas" on background.
void DrawPicWithCanvas(int x, int y, int picture)
Draw image from the PIT table with "canvas" on background.
int GetLunarDate(const TDate *date, TDate *lunar_date)
Convert normal date to the Lunar date.
MissedEvent
Missed event types.
void GetAllPatchesByInject()
Unknown.
void * GetBuffer(int patch_id)
[MasterPatch] Get memory buffer for the patch by ID.
void SpellTime()
Spell current time.
void StrAnsi2Uni(const char *in, uint16_t *out)
Convert ANSI string to Unicode (1st word - len).
void RunScaner()
Run MasterPatch scaner.
int GetLunarAnimal(int year)
Get Lunar Year animal picture by year.
long Seconds2iTime(int timeval)
Unknown.
char GetAccessoryType(void)
Get the type of current accessory connected to the phone.
void * GetBuildCanvas(void)
Unknown.
void * PictureRelocationTableAddr()
Picture relocation table address.
void ScreenShoot()
Make screenshot.
uint32_t PictureRelocationBaseAddr()
Picture relocation base address.
SFN_DATA * DATA_N_SFB(void)
Get list of the GSM channels RX levels.
int ProgressCalculate(int current, int total)
Calculate current progress by current & total.
uint32_t MiniGPS()
Run MiniGPS patch.
int GetLunarYearID(int year)
Get Lunar Year ID by year.
char * GetLP(int lgp_id)
Get message from langpack.
void StrUni2Ansi(const uint16_t *in, char *out)
Convert Unicode string (1st word - len) to ANSI.
int GetMissedEventCount(uint32_t event)
Get missed events count.
@ ACC_TYPE_IMS_700
IMS-700.
@ ACC_TYPE_SERIAL_CABLE
DCA-510.