
Chapter 3 Terminal Specific Function Library
67
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
Purpose
To check if a beeper sequence is undergoing.
Syntax
int beeper_status (void);
Example
while (beeper_status()); /* wait till a beeper sequence is completed */
Description
This routine checks if there is a beeper sequence in progress.
Return
If beeper sequence is undergoing, it returns 1.
Otherwise, it returns 0.
See Also
off_beeper, on_beeper, play
off_beeper
Purpose
To terminate the beeper sequence.
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
on_beeper
Purpose
To specify a beeper sequence of how a beeper is activated.
Syntax
void on_beeper (int *sequence);
int *sequence; /* pointer to a buffer where a beeper sequence resides */
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.
Summary of Contents for Optimus R
Page 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Page 6: ......
Page 8: ...2 C Programming Guide For Optimus S R...
Page 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Page 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Page 24: ...18 C Programming Guide For Optimus S R...
Page 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...