Chapter 4: Software
Registry Settings for Expansion Devices
Psion Teklogix Omnii HDK User Manual
27
Sample Device Registry Entries
Serial Device Registry Entry Sample
SPI Device Registry Entry Sample
(SPI not available on Omnii XT10):
; Registry entry for a serial device
;
[HKLM\Drivers\BuiltIn\Peripherals\devices\0\Psion Teklogix Exp1_UART]
“Name”=”Exp1_UART”
“ConnectorId”=dword:0 ;ConnectorId_Expansion1: 0
;ConnectorId_Expansion2: 1
;ConnectorId_Expansion3: 2
“PinFunctions”=dword:0F ;Pin GPIO0_TXD: bit 0 [1]
;Pin GPIO1_RXD: bit 1 [1]
;Pin GPIO2_CTS: bit 2 [1]
;Pin GPIO3_RTS: bit 3 [1]
;Pin GPIO4_MOSI: bit 4 [0]
;Pin GPIO5_MISO: bit 5 [0]
;Pin GPIO6_SCLK: bit 6 [0]
;Pin GPIO7_CS_N: bit 7 [0]
“PowerMode”=dword:1 ;PowerMode_Auto: 1
;PowerMode_Manual: 2
“Notifications”=dword:0
“LoadFlags”=dword:1 ;Flags_Uart: 0x01, load default UART driver
;Flags_UsbHost: 0x02, load default USB host driver
;Flags_UsbClient: 0x04, load default USB client driver
;Flags_Spi: 0x08, load default SPI driver
;Flags_UsbOtg: 0x10, load default USB OTG driver
;Flags_None: 0x00, load vendor supplied driver
; Registry entry for an SPI device
;
[HKLM\Drivers\BuiltIn\Peripherals\devices\0\Psion Teklogix Exp1_SPI]
“Name”=”Exp1_SPI”
“ConnectorId”=dword:0 ; ConnectorId_Expansion1: 0
; ConnectorId_Expansion2: 1
; ConnectorId_Expansion3: 2
“PinFunctions”=dword:F0 ; Pin GPIO0_TXD: bit 0 [0]
; Pin GPIO1_RXD: bit 1 [0]
; Pin GPIO2_CTS: bit 2 [0]
; Pin GPIO3_RTS: bit 3 [0]
; Pin GPIO4_MOSI: bit 4 [1]
; Pin GPIO5_MISO: bit 5 [1]
; Pin GPIO6_SCLK: bit 6 [1]
; Pin GPIO7_CS_N: bit 7 [1]
“PowerMode”=dword:1 ; PowerMode_Auto: 1
; PowerMode_Manual: 2
“Notifications”=dword:0
“LoadFlags”=dword:0 ; Flags_Uart: 0x01, load default UART driver
; Flags_UsbHost: 0x02, load default USB host driver
; Flags_UsbClient: 0x04, load default USB client driver
; Flags_Spi: 0x08, load default SPI driver
; Flags_UsbOtg: 0x10, load default USB OTG driver
; Flags_None: 0x00, load vendor supplied driver
Содержание OMNii HDK XT10
Страница 4: ......
Страница 10: ......
Страница 12: ......
Страница 18: ......
Страница 20: ......
Страница 24: ......
Страница 26: ......
Страница 32: ......
Страница 72: ......
Страница 90: ......
Страница 92: ......
Страница 116: ......
Страница 124: ......
Страница 126: ......
Страница 130: ......
Страница 132: ......
Страница 154: ......
Страница 168: ......
Страница 170: ......
Страница 182: ......
Страница 184: ......
Страница 188: ......