1 #ifndef _FAST_GPIO_OMEGA_H_
2 #define _FAST_GPIO_OMEGA_H_
6 //Define Macros in derived class.
7 #define REGISTER_BLOCK_ADDR 0x18040000
8 #define REGISTER_BLOCK_SIZE 0x30
10 #define REGISTER_OE_OFFSET 0
11 #define REGISTER_IN_OFFSET 1
12 #define REGISTER_OUT_OFFSET 2
13 #define REGISTER_SET_OFFSET 3
14 #define REGISTER_CLEAR_OFFSET 4
17 class FastGpioOmega : public FastGpio {
22 int SetDirection (int pinNum, int bOutput);
23 int GetDirection (int pinNum, int &bOutput);
25 int Set (int pinNum, int value);
26 int Read (int pinNum, int &value);
27 unsigned long int ReadFull (int pinNum, int &value);
35 #endif // _FAST_GPIO_OMEGA_H_