Making Sure Apm Is Working; Getting Backlight Timeout - Intermec CK1 Programmer's Reference Manual

Intermec ck1: reference guide
Hide thumbs Also See for CK1:
Table of Contents

Advertisement

Syntax:
On-CK1 Parameters: Value
On-CK1 Return: -1
On-Host Parameters: No action
On-Host Return: Always return 0
Purpose: Check whether the APM is working or not. The return value is 1 after you
Syntax:
On-CK1 Parameters: None
On-CK1 Return: 1
On-Host Parameters: None
On-Host Return: Always return 0
Purpose: Get the time for the APM automatically to turn off the backlight if the
Syntax:
On-CK1 Parameters: None
On-CK1 Return: -1
On-Host Parameters: None
On-Host Return: Always return 0
CK1 SDK Programmer's Reference Manual
critical limit must be between 5% of the very low limit and must be lower
or equal to 50%. This value is the default value at the next cold boot.
int devApmSetBackupBatteryCritical( int Value )
Percentage of battery power for power critical limit (limit: 5-50)
Function failed
-2
Value failed to save
0
Function succeeded

Making Sure APM Is Working

call the devApmAuto(). The return value is 0 after you call the
devApmManual().
int devApmIsAuto( void )
APM is working
0
APM is not working
-1
Function failed

Getting Backlight Timeout

CK1 is not in use. The application can use this function to know the value
in the system.
int devApmGetBacklightOffTime( void )
Function failed
Otherwise return the time for backlight auto off
Chapter 2 — Configuring the CK1 System
69

Advertisement

Table of Contents
loading

Table of Contents