Intermec ck1 Reference Guide

Page of 390
Chapter 2 — Configuring the CK1 System 
CK1 SDK Programmer’s Reference Manual 
33 
volume No 
action 
 
On-Host Return:  Always return 0 
Buzzer Application APIs 
The Buzzer APIs provide the basic low level driver access application 
interfaces. The Buzzer Application APIs add more features to use the 
buzzer on target device. 
You should include the header file if you want to use the Buzzer 
Application APIs. 
To include the header file 
•  Add this line to your source file: 
 #include 
<eslib_buzzer_app.h> 
Example Code 
///////////////////////////////////////////////////////////////// 
/***************************************************************** 
 * ------- 
 * Purpose 
 * ------- 
 * Buzzer APP sample code mixed library functions to test hardware is stable 
or not.  
 * 
 * ------------------------------------ 
 * Requirement to run this sample code 
 * ------------------------------------ 
 *  For testing, we use some buzzer driver lib in this sample code. 
 *  devBuzzerAdjustSystemVolume(int NewVolume); 
 *  devBuzzerPlaySound(int freq, int length, int volume); 
 *  Please include buzzer driver header file first. 
 * 
 * ---------------------------- 
 * Behavior of this sample code 
 * ---------------------------- 
 * There are three testing mode as following: 
 * (1)MonDump Message Reliability Test: just print out "Error" message   
 * (2)Dump Message Reliability Test: print out all message for tracing code  
 * (3)Single Item Reliability Test: choose single item for testing 
 * 
 * When we get value is '1' form envBuzzerGetKeyClick(), 
envBuzzerGetWarning() and envBuzzerGetSystemPrompt()  
 * we will play buzzer sound. 
 *    
 * ----------------------- 
 * How to Use this Program 
 * ----------------------- 
 * According to "Buzzer APP Testing Mode Menu"  
 * According to "Buzzer APP Test Menu "  
 * 
 * 
***************************************************************************/ 
/////////////////////////////////////////////////////////////////