Chapter 4: Software
Registry Settings for Expansion Devices
30
Psion Teklogix Omnii HDK User Manual
•
LoadFlags
(REG_DWORD): The load flags specify the functionality required by the
attached device, and therefore the device driver (e.g. USB, UART, etc.) that needs to be
loaded to support the device. The LoadFlags value is treated as a bit field, as defined in the
following table:
If this flag is not specified, any custom device drivers required by the expansion device must be
specified in the driver registry subkey (see Section 4.4.1.2 on page 30).
•
Icon
(REG_DWORD): This is the Resource ID of the icon to be displayed for this device in
the status bar. Currently, icons can only be loaded from Psion Teklogix DLLs.
•
DeviceNameID
(REG_DWORD): This is the Resource ID of the name string to be displayed
in the “New Device” window. Currently, the name string can only be loaded from
Psion Teklogix DLLs.
4.4.1.2 Device Driver Registry Keys
If the expansion device requires an additional driver to be loaded, registry keys need to be
created to specify the information for the driver. As a rule, docking expansion devices do not
require additional drivers, nor do many USB expansion devices. For all expansion devices
that require an additional driver to be loaded, follow these steps:
Within the device registry key, add a “driver” subkey. For example:
Under the \driver subkey, add the following standard registry values for drivers:
•
Prefix
(REG_SZ)
•
Dll
(REG_SZ)
•
Index
(REG_DWORD)
•
Flags
(REG_DWORD)
•
IClass
(REG_MULTI_SZ)
For descriptions and details of these values, consult the Microsoft documentation on developing
device drivers. Note that the
Order
value is not used here.
Table 4.4 LoadFlags Registry Value Definitions
Bit
Functionality
Description
0 (LSB) UART
This flag indicates a serial device requiring a UART driver. The UART
driver is loaded only for the specific expansion connector to which the
device is attached. Multiple instances of the driver are loaded for
multiple serial devices.
1
USB Host
This flag indicates a device that requires USB Host functionality. When
this bit is set, the USB hub and ports are powered and enabled for
the expansion connector. This bit must be set for any docking device
with a USB Host connector, or for any USB device connected to an
expansion port.
2
Reserved
3
Reserved
4 (MSB) USB OTG
This flag is required for docking devices with USB On-The-Go function-
ality. It is not used by devices connecting to the expansion ports.
[HKLM\Drivers\BuiltIn\Peripherals\devices\2\Psion Teklogix GPS\driver]
Summary of Contents for OMNii HDK XT10
Page 4: ......
Page 10: ......
Page 12: ......
Page 18: ......
Page 20: ......
Page 24: ......
Page 26: ......
Page 32: ......
Page 72: ......
Page 90: ......
Page 92: ......
Page 116: ......
Page 124: ......
Page 126: ......
Page 130: ......
Page 132: ......
Page 154: ......
Page 168: ......
Page 170: ......
Page 182: ......
Page 184: ......
Page 188: ......