Intermec ck1 Reference Guide

Page of 390
Chapter 2 — Configuring the CK1 System 
44 
CK1 SDK Programmer’s Reference Manual 
 
int main(int argc,char *argv[]) 

 
char  chi ; 
 
int   i; 
 
 //functional 
test 
 PrintMenu(); 
 
while(((chi = getchar()) != 'q') && (chi != 'Q') ) 
 { 
 
 
if (chi == 10) continue ; 
  SelOpt(chi); 
  PrintMenu(); 
 } 
 return 
0; 
Reading Light Status 
 
Purpose:  Get the specified light state. 
 
Syntax: 
int devLEDReadStatus(int idxLED)
 
 On-CK1 Parameters:  idxLED 
Index number for the light that will have its status read 
 
On-CK1 Return: -1 
 Function 
failed 
0 Light 
is 
off 
1 Light 
is 
on 
 On-Host Parameters:  idxLED No 
action 
 
On-Host Return:  Always return 0 
Setting Light 
 
Purpose:  Turn a specified light on/off. All effects set by devLEDDelayOn() and 
devLEDDelayOff() before for the light that you are trying to set will be 
canceled. 
 
Syntax: 
int devLEDSetStatus(int idxLED, int iStatus)
 
 On-CK1 Parameters:  idxLED 
Index number of light that will be configured 
iStatus 
Status to set, 0 for off, 1 for on 
 
On-CK1 Return: -1 
 Function 
failed 
0 Function 
succeeded 
 On-Host Parameters:  idxLED No 
action 
iStatus No 
action 
 
On-Host Return:  Always return 0