Chapter 3 Terminal Specific Function Library
21
Example
_KeepAlive__();
Description
Whenever this routine is called, it will reset the counter governed by the global
variable AUTO_OFF, so that the user's application program will keep on
running without suffering from being automatically shut down by the system.
Return
None
SetPwrKey
Optimus S
Purpose
To set the POWER key as the wakeup event.
Syntax
void SetPwrKey (int mode);
int mode; /* enable or disable the POWER key */
Example
SetPwrKey (1); /* enable the POWER key for waking up the terminal*/
Description
The parameter
mode
is set to one of the following values:
POWER_KEY_DISABLE (0)
The POWER key is disabled.
POWER_KEY_ENABLE (1)
The POWER key is enabled.
Return
None
shut_down
Purpose
To shut down the system.
Syntax
void shut_down (void);
Example
shut_down();
Description
This routine shuts down the system. Upon powering on, the system will always
restart.
Return
None
SysSuspend
Purpose
To shut down the system.
Syntax
void SysSuspend (void);
Example
SysSuspend();
Description
This routine shuts down the system. Upon powering on, the system may
resume or restart itself, depending on the system setting.
Return
None
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...