23typedef struct SEXIT_RECORD SEXIT_RECORD;
24typedef struct SEXIT_HOOKS SEXIT_HOOKS;
25typedef struct SEXIT_STATE SEXIT_STATE;
26typedef struct SEXIT_RECORDS SEXIT_RECORDS;
103 ACC_USB_RS232_CABLE = 0xF,
104 ACC_USB_CABLE = 0x10,
105 ACC_USB_CABLE_DOWN = 0x11,
106 ACC_USB_CABLE_NC = 0x12,
107 ACC_HEADSET_MONO = 0x14,
108 ACC_HEADSET_STEREO = 0x15,
109 ACC_CLIP_ON_FLASH = 0x16,
112 ACC_JAVA_DEVICE = 0x19,
113 ACC_EMO_DEVICE = 0x1A,
114 ACC_CLIP_IT_LED = 0x1B,
116 ACC_MP3_PLAYER = 0x1D,
117 ACC_MOBILE_MUSIC_SET = 0x1F,
118 ACC_MUSIC_CABLE = 0x20,
120 ACC_UNSUPPORTED_DEVICE = 0x2F,
121 ACC_UNKNOWN_DEVICE = 0x30
123 ACC_USB_DATA_CABLE = 0xF,
124 ACC_DATA_CABLE_USB_USB = 0x10,
125 ACC_HEADSET_MONO = 0x12,
126 ACC_HEADSET_STEREO = 0x13,
127 ACC_CLIP_ON_FLASH = 0x14,
130 ACC_JAVA_DEVICE = 0x17,
131 ACC_EMO_DEVICE = 0x18,
132 ACC_CLIP_IT_LED = 0x19,
134 ACC_MP3_PLAYER = 0x1B,
135 ACC_MOBILE_MUSIC_SET = 0x1D,
136 ACC_MUSIC_CABLE = 0x1E,
138 ACC_UNSUPPORTED_ACCESSORY = 0x2D,
139 ACC_UNKNOWN_ACCESSORY = 0x2E
160 uint32_t r[13], sp, lr, pc, cpsr, spsr;
168typedef void (*SEXIT_HANDLER)(SEXIT_RECORD *record);
176 SEXIT_HANDLER *fatal;
177 SEXIT_HANDLER *warning;
190 uint8_t warning_depth;
201struct SEXIT_RECORDS {
203 SEXIT_RECORD *warning;
204 SEXIT_RECORD fatal_slot[2];
205 SEXIT_RECORD warning_slot[2];
368long SetIllumination(uint8_t dev,
unsigned long unk, uint16_t level,
unsigned long delay)
655SEXIT_HOOKS *RamSExitHooks(
void)
666SEXIT_STATE *RamSExitState(
void)
675SEXIT_RECORDS *RamSExitRecords(
void)
690void SExit(
int code,
const uint8_t *module,
int type,
int param)
691__swi_end(0x45E, SExit, (code, module, type, param));
#define __swi_end(number, func, call)
#define __swi_begin(number)
char timeout
Lightness off timeout.
char unk0
Something mysterious, sometimes 0 or 5.
char max_illum
Lightness level.
shortcut_func pointer
Function which is called by shortcut.
char perm_illum
It’s not entirely clear, it seems that the level that will be held when calling IllumTimeRequest is o...
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.
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).
int IsAnyOfAccessoriesConnected(const enum Accessory *accessory_ids, uint8_t count)
Checks if any accessory from the list is connected.
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.
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