Chapter 4: Software
Omnii HDK API Constants
Psion Teklogix Omnii HDK User Manual
59
4.7.6.3 Hdk7545_PinDirection
The Hdk7545_PinDirection enumeration is defined as follows:
4.7.6.4 Hdk7545_PinFunction
The Hdk7545_PinFunction enumeration is defined as follows:
4.7.6.5 Hdk7545_PinState
The Hdk7545_PinState enumeration is defined as follows:
4.7.6.6 Hdk7545_PullUpDown
The Hdk7545_PullUpDown enumeration is defined as follows:
4.7.6.7 Hdk7545_PinMode
The Hdk7545_PinMode enumeration is defined as follows:
4.7.7
Omnii HDK API Constants
The following constants are defined in the file Hdk7545Consts.h:
typedef enum {
Hdk7545_PinDirection_Output = 0,
Hdk7545_PinDirection_Input
} Hdk7545_PinDirection;
typedef enum {
Hdk7545_PinFunction_GPIO = 0,
Hdk7545_PinFunction_Alternate
} Hdk7545_PinFunction;
typedef enum {
Hdk7545_PinState_Clr = 0,
Hdk7545_PinState_Set = 1,
Hdk7545_PinState_Unknown = 0xffffffff
} Hdk7545_PinState;
typedef enum {
Hdk7545_PullUpDown_Pullup = 1,
Hdk7545_PullUpDown_Pulldown
} Hdk7545_PullUpDown;
typedef enum {
Hdk7545_PinMode_NoInterrupt = 0x00,
Hdk7545_PinMode_InterruptLowHigh = 0x02,
// edge-triggered*
Hdk7545_PinMode_InterruptHighLow = 0x04,
// edge-triggered*
Hdk7545_PinMode_InterruptLow = 0x08,
// level-triggered
Hdk7545_PinMode_InterruptHigh = 0x10,
// level-triggered
} Hdk7545_PinMode;
// *Edge-triggered modes are not supported on Omnii XT10.
// transmit
#define HDK7545_GPIO_PIN_EXPANSION_GPIO0_TXD
0
// receive
#define HDK7545_GPIO_PIN_EXPANSION_GPIO1_RXD
1
// clear-to-send (active low)
#define HDK7545_GPIO_PIN_EXPANSION_GPIO2_CTSN
2
// ready-to-send (active low)
#define HDK7545_GPIO_PIN_EXPANSION_GPIO3_RTSN
3
// Master Output, Slave Input (output from master)
#define HDK7545_GPIO_PIN_EXPANSION_GPIO4_MOSI
4
// Master Input, Slave Output (output from slave)
#define HDK7545_GPIO_PIN_EXPANSION_GPIO5_MISO
5
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: ......