Intermec ck1 Reference Guide

Page of 390
Chapter 2 — Configuring the CK1 System 
40 
CK1 SDK Programmer’s Reference Manual 
Setting Buzzer System-Prompt Status 
 
Purpose:  Set the system-prompt status with the specified value. 
 
Syntax: 
int envBuzzerSetSystemPrompt (int iSwitch)
 
 On-CK1 Parameters:  iSwitch 
the value to use as the new system-prompt status 
BuzzerSystemPromptOn 
System-prompt status is on 
BuzzerSystemPromptOff 
System-prompt status is off 
 
On-CK1 Return: -1 
 Function 
failed 
0 Function 
succeeded 
 On-Host Parameters:  iSwitch No 
action 
 
On-Host Return:  Always return 0 
Light APIs 
To use the light APIs, you need to include the header file. 
To include the header file 
•  Add this line to your source file: 
 #include 
<eslib_led.h> 
There are three light colors with corresponding index numbers. 
Current Light Index Numbers  
Light Color 
Index Number 
Red 0 
Green 
Blue 2 
 
 
Since these APIs function both on CK1-execution (when the application 
that calls the APIs runs on the CK1) and on host-simulation (when the 
application that calls the APIs run on the host as a simulation), you can see 
the difference between the two environments. 
Changing the Light Status by /proc 
There is a /proc/ledctl. You can change the light status by sending the 
following command: 
# echo “X Y Z” > /proc/ledctl 
where:  X 
Indicates which light color (red, green, or blue) 
 
Y 
Indicates the function you want to use: 
 
 
Turn off the light