00001 #ifndef __J2K__QNX__Board_HPP__
00002 #define __J2K__QNX__Board_HPP__
00003
00004 #include <j2k/Fred/QNX/System.hpp>
00005 #include <j2k/Fred/QNX/BoardDef.hpp>
00006
00007 class Board {
00008
00009 public:
00010 Board();
00011 virtual ~Board();
00012 void Write( int port, int val);
00013 void Write( int val );
00014 int Read( int port );
00015 int Read();
00016 void Switch( int switch_id = SWITCH_1, int direction = TRACK_OUTSIDE );
00017 void SwitchNormal();
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 private:
00029
00030 static const int input_base_addr;
00031 static const int output_base_addr;
00032 static const int enable_addr;
00033 static const int SwitchTable[8];
00034 };
00035
00036 #endif