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
Содержание 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: ......