Metrologic Optimus S Programming Manual page 27

"c" programming guide
Table of Contents

Advertisement

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
Purpose
To set the POWER key as the wakeup event.
Syntax
void SetPwrKey (int mode);
int mode;
Example
SetPwrKey (1);
Description
The parameter mode is set to one of the following values:
POWER_KEY_DISABLE (0)
POWER_KEY_ENABLE (1)
Return
None
shut_down
To shut down the system.
Purpose
void shut_down (void);
Syntax
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
Chapter 3 Terminal Specific Function Library
/* enable or disable the POWER key */
/* enable the POWER key for waking up the terminal*/
The POWER key is disabled.
The POWER key is enabled.
21
Optimus S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents