| Availability | All terminals | ||||
| Description | This function checks whether the buzzer is currently busy or not. | ||||
| Syntax | int IsBuzzerOn( void ); | ||||
| Arguments | None | ||||
| Returns |
|
||||
| Remarks | This function can be used to check whether the beep sequence of the Sound() function is finished or not. | ||||
| Example |
#include <stdio.h> #include "lib.h" void main( void ) { for(;;) { Sound(TSTANDARD, VHIGH, SLOW, SPAUSE, SMEDIUM, SPAUSE, SHIGH, SPAUSE, 0); while( IsBuzzerOn() ) Idle(); Sound(TSTANDARD, VHIGH, SHIGH, SPAUSE, SMEDIUM, SPAUSE, SLOW, SPAUSE,0); while( IsBuzzerOn() ) Idle(); } } |