Intermec ck1 Reference Guide

Page of 390
Chapter 2 — Configuring the CK1 System 
60 
CK1 SDK Programmer’s Reference Manual 
Enabling APM 
 
Purpose:  Enable the APM. If you use the devApmManual() to disable the APM 
control by kernel, you can use this function to resume the APM to Work. 
After enabling the APM, the CK1 automatically enters Idle/Standby 
mode. You can use devApmSetIdleTime() or devApmSetStandbyTime() to 
modify the time to enter these states. 
 
Syntax: 
int devApmAuto( void )
 
 On-CK1 Parameters: None 
 
On-CK1 Return: -1 
 Function 
failed 
0 Function 
succeeded 
 On-Host Parameters: None 
 
On-Host Return:  Always return 0 
Disabling APM 
 
Purpose:  Disable the APM. The APM stops, but you can still use 
devApmIdle()/devApmStandby() to force system into Idle/Standby mode. 
You can use the devApmAuto() function to re-enable the APM. When 
APM disabled, the Power key still works, so you can let the CK1 enter 
Standby mode and return to Normal mode by pressing the Power key. 
 
Syntax: 
int devApmManual( void )
 
 On-CK1 Parameters: None 
 
On-CK1 Return: -1 
 Function 
failed 
0 Function 
succeeded 
 On-Host Parameters: None 
 
On-Host Return:  Always return 0 
Entering Normal Mode 
 
Purpose:  Force the system into Normal mode when the system is in Idle mode, 
whether the APM enabled or not. 
 
Syntax: 
int devApmNormal( void )
 
 On-CK1 Parameters: None 
 
On-CK1 Return: -1 
 Function 
failed 
0 Function 
succeeded 
 On-Host Parameters: None 
 
On-Host Return:  Always return 0