Psion Teklogix NEO HDK User Manual page 32

Table of Contents

Advertisement

Chapter 3: Software Information
NEO Expansion Port Power Control
The method of power control is set through the following registry key:
Registry Key: [HKEY_LOCAL_MACHINE\Services\TekDTSvc\ExpansionPort\1\]
Registry Value: "Power"=dword
Managing Power Through DTS
To have DTS manage the power, set the Power registry value to one of the non-zero
TekDTSioctl_PortPowerState enumeration values:
Table 3.1 TekDTSioctl_PortPowerState Enumerations
Value
0
1
4
Note: Power states 2 and 3 are not supported by DTS in conjunction with this port.
DTS will read the registry value and update the expansion power state on computer reboot
or resume.
Managing Power Through API Functions
To manage the power directly, set the Power registry value to DtsPortPowerState_Off (0),
then use the following HDK API function calls:
ExpansionPortResult GetConnectState(bool &connected)
Determines if a peripheral is attached to the expansion port. The value of the connected
boolean parameter reflects the presence or absence of a connected peripheral.
ExpansionPortResult SetPowerState(PortPowerState powerState)
Sets the power state of the expansion port. The powerState variable that is passed must be
one of the values in the PortPowerState enumeration, as defined in the table below.
ExpansionPortResult GetPowerState(PortPowerState &powerState)
Determines the current power state of the expansion port. The powerState parameter will
reflect the current state of the expansion port power, as defined in the PortPowerState
enumeration table.
24
Psion Teklogix
NEO
Enumeration Name
DtsPortPowerState_Off
DtsPortPowerState_On
DtsPortPowerState_AutoOnOff
HDK User Manual
Description
Power disabled (Default).
Always powered.
Powered on when hand-held is
running, powered off during suspend.

Advertisement

Table of Contents
loading

Table of Contents