System; General - Metrologic Optimus S Programming Manual

"c" programming guide
Table of Contents

Advertisement

20
"C" Programming Guide For Optimus S/R

3.1 System

3.1.1 General

ChangeSpeed
CheckWakeUp
_KeepAlive__
Purpose
To change the CPU running speed.
Syntax
void ChangeSpeed (int speed);
Example
ChangeSpeed (4);
When high speed operation is not necessary, selecting slower CPU speed can
Description
save battery power. The parameter speed is set to one of the following values:
1
Sixteenth
2
Eighth
3
Quarter
4
Half
5
Full
Return
None
Purpose
To check the wakeup event.
Syntax
int CheckWakeUp (void);
Example
event = CheckWakeUp();
Description
This routine checks on the wakeup event.
Return
The return value can be one of the following:
POWER_KEY_PRESSED (1)
CHARGE_OK (2)
TIME_IS_UP (3)
Purpose
To let the user program keep on running and prevent it from being
automatically shut down by the system.
Syntax
void _KeepAlive__ (void);
The POWER key is pressed.
Charging is completed.
The alarm time is up.
Optimus S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents