ppio.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef INCLUDED_PPIO_H
00024 #define INCLUDED_PPIO_H
00025
00026 #include <boost/shared_ptr.hpp>
00027
00028 class ppio;
00029 typedef boost::shared_ptr<ppio> ppio_sptr;
00030
00031
00037 class ppio {
00038 public:
00039 ppio () {}
00040 virtual ~ppio ();
00041
00042 virtual void write_data (unsigned char v) = 0;
00043 virtual unsigned char read_data () = 0;
00044 virtual void write_control (unsigned char v) = 0;
00045 virtual unsigned char read_control () = 0;
00046 virtual unsigned char read_status () = 0;
00047
00048 virtual void lock () = 0;
00049 virtual void unlock () = 0;
00050 };
00051
00058 ppio_sptr make_ppio (int which_pp);
00059
00060
00061 #endif
00062