Beep Duration - Metrologic Optimus S Programming Manual

"c" programming guide
Table of Contents

Advertisement

3.4.3 Beep Duration

Beep duration is an integer that is used to specify how long a beeper is activated with a
specified beep frequency; it is specified in units of 0.01 second. To set the beeper in
activation for one second, the beep duration should be set to 100.
Note: When the value of beep duration is set to 0, it will terminate the beeper sequence.
beeper_status
off_beeper
on_beeper
Purpose
To check if a beeper sequence is undergoing.
Syntax
int beeper_status (void);
Example
while (beeper_status());
This routine checks if there is a beeper sequence in progress.
Description
Return
If beeper sequence is undergoing, it returns 1.
Otherwise, it returns 0.
off_beeper, on_beeper, play
See Also
To terminate the beeper sequence.
Purpose
Syntax
void off_beeper (void);
Example
off_beeper();
Description
This routine terminates the beeper sequence immediately if there is a beeper
sequence in progress.
Return
None
See Also
beeper_status, on_beeper, play
Purpose
To specify a beeper sequence of how a beeper is activated.
Syntax
void on_beeper (int *sequence);
int *sequence;
Example
int two_beeps[ ] = {19, 10, 0, 10, 19, 10, 0, 0};
on_beeper(two_beeps);
Description
This routine specifies a beeper sequence to instruct how a beeper is activated.
Chapter 3 Terminal Specific Function Library
/* wait till a beeper sequence is completed */
/* pointer to a buffer where a beeper sequence resides */
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents