|
SWILIB API (NSG)
|
Go to the source code of this file.
Data Structures | |
| struct | shortcut |
| Shortcuts. More... | |
| struct | LIGHT_PARAM |
| Lightness settings. More... | |
| struct | SEXIT_RECORD |
| SExit record: what the firmware saves on a fatal exit ("Exit Info") or a warning. More... | |
| struct | SEXIT_HOOKS |
| SExit handler table (pointers to the handler words, 0xFFFFFFFF in a word = no handler). More... | |
| struct | SEXIT_STATE |
| SExit state. More... | |
| struct | SEXIT_RECORDS |
| Current SExit records (internal RAM). More... | |
| struct | SEXIT_RECORD.regs |
Typedefs | |
| typedef int(* | shortcut_func) (void) |
| typedef struct shortcut | shortcut |
| typedef struct LIGHT_PARAM | LIGHT_PARAM |
| typedef struct SEXIT_RECORD | SEXIT_RECORD |
| typedef struct SEXIT_HOOKS | SEXIT_HOOKS |
| typedef struct SEXIT_STATE | SEXIT_STATE |
| typedef struct SEXIT_RECORDS | SEXIT_RECORDS |
| typedef void(* | SEXIT_HANDLER) (SEXIT_RECORD *record) |
| SExit record handler. | |
Functions | |
Control | |
| void | SwitchPhoneOff () |
| Switchoff phone. | |
| void | RebootPhone () |
| Reboot phone. | |
| void | SLI_SetState (uint8_t state) |
| Set state for SLI indicator. | |
IDLE | |
| void | DisableIDLETMR (void) |
| Disable the IDLE timer - the phone never goes to the IDLE screen. | |
| void | SetIDLETMR (int timeout, int msg) |
| Set custom IDLE timer. | |
| void | RestartIDLETMR (void) |
| Restart the default idle timer. | |
Keyboard | |
| void | KeypressOn (int keycode) |
| Press key (simulation). | |
| void | KeypressOff (int keycode) |
| Release key (simulation). | |
| int | IsUnlocked (void) |
| Get keyboard lock status. | |
| int * | RamIsLocked (void) |
| Get keyboard lock status. | |
| void | KbdLock (void) |
| Lock keyboard. | |
| void | KbdUnlock (void) |
| Unlock keyboard. | |
| void | RestartLockTimers () |
| Restart screensaver and keyboard lock timers. | |
Backlight | |
| char * | GetIlluminationDataTable () |
| Pointer to the illumination table. | |
| LIGHT_PARAM * | RamScreenBrightness (void) |
| Pointer to the brightness settings. | |
| long | SetIllumination (uint8_t dev, unsigned long unk, uint16_t level, unsigned long delay) |
| Change illumination level for keyboard or LCD. | |
| void | IllumTimeRequest (int time_mode, int counter) |
| Keep the backlight on. | |
| void | IllumTimeRelease (int time_mode, int counter) |
| Allow backlight to turn off again. | |
| void | SetMaxIllumIntensity (int unk3, uint32_t level) |
| Sets the maximum backlight brightness. | |
| void | TempLightOn (int flags, int unk) |
| Trigger backlight (temporary set ON). | |
| void | IllumFilterSet (int flags, int unk) |
| Trigger backlight (temporary set OFF). | |
Vibration | |
| int | GetVibraStatus (void) |
| Check if vibration enabled. | |
| void | SetVibraStatus (int status) |
| Enable or disable vibration. | |
| uint32_t | SetVibration (uint32_t power) |
| Start vibration. | |
Clipboard | |
| WSHDR * | GetClipBoard (void) |
| Get clipboard content. | |
| void | CopyTextToClipboard (const WSHDR *text, int pos, int len) |
| Copy the text to the clipboard. | |
| void | ClearClipboard (char unk) |
| Clear clipboard content. | |
AlarmClock | |
| void | AlarmClockRing (void) |
| Run AlarmClock ringing. | |
| int | GetAlarmClockState (int state) |
| Get AlarmClock state. | |
| char * | RamAlarmClockState () |
| Pointer to the AlarmClock state. | |
| int | RefreshAlarmClock () |
| Re-read changed alarmclock.pd. | |
| char * | RamIsAlarmClockAutorepeatOn () |
| Check if auto-repeat is enabled in AlarmClock. | |
| char * | RamAlarmClockHours () |
| AlarmClock scheduled time (hours). | |
| char * | RamAlarmClockMinutes () |
| AlarmClock scheduled time (minutes). | |
Countdown | |
| void | Countdown_Start () |
| Read countdown.pd and start the countdown. | |
| void | Countdown_Stop () |
| Stop the countdown. | |
| int | Countdown_IsEnabled () |
| Check if the countdown is enabled. | |
| int | Countdown_GetRemainingTime () |
| Get the remaining time of the countdown. | |
| void | Countdown_PlaySound (long tone_type) |
| Play sound for the countdown. | |
| int * | RamIsCountdownRingUIActive () |
| Check if Ring UI for the countdown is active. | |
Accesories | |
| void * | RamAccPoint (void) |
| Get a pointer to the current accessory connected to the phone. | |
| int | IsAnyOfAccessoriesConnected (const enum Accessory *accessory_ids, uint8_t count) |
| Checks if any accessory from the list is connected. | |
Other functions | |
| SEXIT_HOOKS * | RamSExitHooks (void) |
| SExit handler table (see SEXIT_HOOKS). | |
| SEXIT_STATE * | RamSExitState (void) |
| SExit state (see SEXIT_STATE). | |
| SEXIT_RECORDS * | RamSExitRecords (void) |
| Current SExit records (see SEXIT_RECORDS) in internal RAM. | |
| 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 handler, which by default saves Exit Info and restarts the phone. | |
| void | ShowMainMenu () |
| Open FlexMenu. | |
| void | ShowNativeMenu () |
| Open NativeMenu. | |
| int | Devmenu_Config_IsCheckboxOff (int checkbox_id) |
| Get checkbox state from the devmenu. | |
| const shortcut * | GetShortcutRecordByName (char *shortcut_name) |
| Get shortcut by shortcut name. | |
| const shortcut * | GetFunctionPointer (char *shortcut_name) |
| Get shortcut by shortcut name. | |
| void | StartNativeBrowserCore () |
| initialize Openwave browser. | |