Intermec ck1 Reference Guide

Page of 390
Chapter 2 — Configuring the CK1 System 
CK1 SDK Programmer’s Reference Manual 
75 
 
On-Host Return:  Always return 0 
Getting ADC Value From the Main Battery Only Once 
 
Purpose:  Get the ADC value from the main battery and do not use the battery 
calculating algorithm. 
 
Syntax: 
int devApmGetOnceMBatteryADC ( void )
 
 On-CK1 Parameters: None 
 
On-CK1 Return: -1 
  Function 
failed 
value  ADC value from main battery 
 
Unit resolution 5 mV, 800 units is 4 volts. 
 On-Host Parameters: No 
action 
 
On-Host Return:  Always return 0 
Getting the Main Battery Power Level 
 
Purpose:  Report the battery power status by number (1 to 5). 
 
Syntax: 
int devApmGetMainBatteryLevel( void )
 
 On-CK1 Parameters: None 
 
On-CK1 Return: 1 
 Critical 
2 Very 
low 
3 Low 
4 Good 
5 Very 
good 
 On-Host Parameters: No 
action 
 
On-Host Return: Not 
defined 
Restoring APM Factory Default Values 
 
Purpose:  Restore all the default values for the APM, including the backlight time, 
idle time, standby time, the value for the battery level for both the main 
battery and the backup battery (good, low, very low, critical), the voltage 
for the BIOS to resume to Normal mode. 
 
Syntax: 
int devApmSetFactoryDefault ( void )
 
 On-CK1 Parameters: None 
 
On-CK1 Return: None 
 On-Host Parameters: No 
action 
 
On-Host Return:  Always return 0