parport
/build/rock-master-18.09-drivers-parport-0.20111104/parport.hh
Go to the documentation of this file.
1 #ifndef __PARPORT_DRIVER_HH__
2 #define __PARPORT_DRIVER_HH__
3 
4 #include <stdint.h>
5 #include <string>
6 
7 class ParportDriver {
8 private:
9  int fd;
10  uint8_t pins;
11 
12  bool writePins();
13 public:
14  ParportDriver();
15 
16  bool open(std::string const& filename, uint8_t default_state = 0);
17  void close();
18 
19  bool setDataPin(unsigned pin);
20  bool resetDataPin(unsigned pin);
21 };
22 
23 #endif /*__PARPORT_DRIVER_HH__*/
24 
bool open(std::string const &filename, uint8_t default_state=0)
Definition: parport.cc:12
bool resetDataPin(unsigned pin)
Definition: parport.cc:67
void close()
Definition: parport.cc:44
Definition: parport.hh:7
ParportDriver()
Definition: parport.cc:9
bool setDataPin(unsigned pin)
Definition: parport.cc:62