7 //Define Macros in derived class.
8 // #define REGISTER_BLOCK_ADDR 0x18040000
9 // #define REGISTER_BLOCK_SIZE 0x30
11 // #define REGISTER_OE_OFFSET 0
12 // #define REGISTER_IN_OFFSET 1
13 // #define REGISTER_OUT_OFFSET 2
14 // #define REGISTER_SET_OFFSET 3
15 // #define REGISTER_CLEAR_OFFSET 4
17 //Define DEVICE_TYPE Here for now.
19 // #define DEVICE_TYPE "omega2"
21 class FastGpio : public Module {
23 virtual int SetDirection (int pinNum, int bOutput)=0;
24 virtual int GetDirection (int pinNum, int &bOutput)=0;
26 virtual int Set (int pinNum, int value)=0;
27 virtual int Read (int pinNum, int &value)=0;
28 virtual unsigned long int ReadFull (int pinNum, int &value)=0;
36 #endif // _FAST_GPIO_H_