123 ACC_USB_DATA_CABLE = 0xF,
124 ACC_DATA_CABLE_USB_USB = 0x10,
138 ACC_UNSUPPORTED_ACCESSORY = 0x2D,
139 ACC_UNKNOWN_ACCESSORY = 0x2E
160 uint32_t r[13], sp, lr,
pc, cpsr, spsr;
368long SetIllumination(uint8_t dev,
unsigned long unk, uint16_t level,
unsigned long delay)
690void SExit(
int code,
const uint8_t *module,
int type,
int param)
#define __swi_end(number, func, call)
#define __swi_begin(number)
SEXIT_RECORD warning_slot[2]
uint8_t warning_depth
warning records in use
char name[16]
Name of the shortcut.
char timeout
Lightness off timeout.
struct SEXIT_RECORD::@0 regs
caller registers at the SWI 2/3 (CPU exception: at the fault)
SEXIT_HANDLER * warning
warning: saves the record and returns
void(** pre)(void)
called before both, no handler by default
uint16_t uint16_t param
< module id
uint8_t fatal_depth
fatal records in use (1-2), SEXIT_RECORDS fatal is slot 1 or 2
char unk0
Something mysterious, sometimes 0 or 5.
int lgp_short_name
LGP ID for short title.
int enabled
0 (default): checked exits are only warnings
int lgp_comment_msg
LGP ID for description or path to the ELF (in the patch)
uint32_t stack[16]
64 bytes from the caller's stack pointer
int blacklist
1: check the module blacklist
SEXIT_RECORD fatal_slot[2]
char max_illum
Lightness level.
int fatal
result of the last exit check: 1 fatal, 0 warning
int lgp_full_name
LGP ID for long title.
shortcut_func pointer
Function which is called by shortcut.
char text[32]
extra text set before the call (often a file name or an address)
void * get_status
Pointer to the function which check if this shortcut is enabled (optional)
uint16_t code
exit code; 0x2xx with module 0: CPU exception (0x205 data abort)
char perm_illum
It’s not entirely clear, it seems that the level that will be held when calling IllumTimeRequest is o...
SEXIT_HANDLER * fatal
fatal exit: saves Exit Info and restarts the phone (never returns)
uint8_t type
2 fatal exit, 3 warning, 7 CPU exception (code 0x203/0x205/0x206)
SEXIT_STATE * RamSExitState(void)
SExit state (see SEXIT_STATE).
int RefreshAlarmClock()
Re-read changed alarmclock.pd.
void SetIDLETMR(int timeout, int msg)
Set custom IDLE timer.
void IllumFilterSet(int flags, int unk)
Trigger backlight (temporary set OFF).
int(* shortcut_func)(void)
char * RamAlarmClockMinutes()
AlarmClock scheduled time (minutes).
char * GetIlluminationDataTable()
Pointer to the illumination table.
int * RamIsLocked(void)
Get keyboard lock status.
void Countdown_PlaySound(long tone_type)
Play sound for the countdown.
void Countdown_Stop()
Stop the countdown.
void SetVibraStatus(int status)
Enable or disable vibration.
void StartNativeBrowserCore()
initialize Openwave browser.
int IsUnlocked(void)
Get keyboard lock status.
void AlarmClockRing(void)
Run AlarmClock ringing.
void ShowMainMenu()
Open FlexMenu.
void RestartIDLETMR(void)
Restart the default idle timer.
const shortcut * GetShortcutRecordByName(char *shortcut_name)
Get shortcut by shortcut name.
SEXIT_HOOKS * RamSExitHooks(void)
SExit handler table (see SEXIT_HOOKS).
void SwitchPhoneOff()
Switchoff phone.
void KeypressOff(int keycode)
Release key (simulation).
void KeypressOn(int keycode)
Press key (simulation).
void TempLightOn(int flags, int unk)
Trigger backlight (temporary set ON).
void SExit(int code, const uint8_t *module, int type, int param)
Fatal SExit ("default" exit): fills the current fatal record and jumps to the SEXIT_HOOKS fatal handl...
int IsAnyOfAccessoriesConnected(const enum Accessory *accessory_ids, uint8_t count)
Checks if any accessory from the list is connected.
SEXIT_RECORDS * RamSExitRecords(void)
Current SExit records (see SEXIT_RECORDS) in internal RAM.
void IllumTimeRequest(int time_mode, int counter)
Keep the backlight on.
char * RamAlarmClockState()
Pointer to the AlarmClock state.
long SetIllumination(uint8_t dev, unsigned long unk, uint16_t level, unsigned long delay)
Change illumination level for keyboard or LCD.
uint32_t SetVibration(uint32_t power)
Start vibration.
char * RamIsAlarmClockAutorepeatOn()
Check if auto-repeat is enabled in AlarmClock.
void SLI_SetState(uint8_t state)
Set state for SLI indicator.
int Countdown_GetRemainingTime()
Get the remaining time of the countdown.
void ShowNativeMenu()
Open NativeMenu.
IlluminationDeviceID
Illumination device.
void * RamAccPoint(void)
Get a pointer to the current accessory connected to the phone.
void RestartLockTimers()
Restart screensaver and keyboard lock timers.
const shortcut * GetFunctionPointer(char *shortcut_name)
Get shortcut by shortcut name.
void Countdown_Start()
Read countdown.pd and start the countdown.
SetLightFlags
Set light flags.
void ClearClipboard(char unk)
Clear clipboard content.
void RebootPhone()
Reboot phone.
void DisableIDLETMR(void)
Disable the IDLE timer - the phone never goes to the IDLE screen.
WSHDR * GetClipBoard(void)
Get clipboard content.
void CopyTextToClipboard(const WSHDR *text, int pos, int len)
Copy the text to the clipboard.
int GetAlarmClockState(int state)
Get AlarmClock state.
void(* SEXIT_HANDLER)(SEXIT_RECORD *record)
SExit record handler.
int * RamIsCountdownRingUIActive()
Check if Ring UI for the countdown is active.
void SetMaxIllumIntensity(int unk3, uint32_t level)
Sets the maximum backlight brightness.
int Devmenu_Config_IsCheckboxOff(int checkbox_id)
Get checkbox state from the devmenu.
int GetVibraStatus(void)
Check if vibration enabled.
void KbdUnlock(void)
Unlock keyboard.
char * RamAlarmClockHours()
AlarmClock scheduled time (hours).
void KbdLock(void)
Lock keyboard.
int Countdown_IsEnabled()
Check if the countdown is enabled.
void IllumTimeRelease(int time_mode, int counter)
Allow backlight to turn off again.
LIGHT_PARAM * RamScreenBrightness(void)
Pointer to the brightness settings.
@ ILLUMINATION_DEV_DISPLAY
LCD.
@ ILLUMINATION_DEV_LIGHTER
Camera flashlight as lighter.
@ ILLUMINATION_DEV_DYNLIGHT
Dynamic Light.
@ ILLUMINATION_DEV_KEYBOARD
Keyboard.
@ SET_LIGHT_KEYBOARD
Trigger Keyboard backlight.
@ SET_LIGHT_DISPLAY
Trigger LCD backlight.
@ ACC_CARKIT_PROFESSIONAL
SExit handler table (pointers to the handler words, 0xFFFFFFFF in a word = no handler).
SExit record: what the firmware saves on a fatal exit ("Exit Info") or a warning.
Current SExit records (internal RAM).