
This is a minimalistic interface to a PC parallel port under Linux. More...
#include <Devices/ParPort.H>


Public Member Functions | |
| ParPort (OptionManager &mgr, const std::string &descrName="Parallel Port", const std::string &tagName="ParPort") | |
| Constructor. | |
| virtual | ~ParPort () |
| Destructor. | |
| void | WriteData (const byte mask, const byte newdata) |
| Write some data to the port. | |
| byte | ReadStatus () |
| Read status of the port. | |
| bool | ReadStatusPaperout () |
| Read the PARPORT_STATUS_PAPEROUT bit of the port status. | |
Protected Member Functions | |
| virtual void | start1 () |
| get started | |
| virtual void | stop2 () |
| get stopped | |
Protected Attributes | |
| NModelParam< std::string > | itsDevName |
| Name of device to use. | |
This is a minimalistic interface to a PC parallel port under Linux.
Definition at line 63 of file ParPort.H.
| ParPort::ParPort | ( | OptionManager & | mgr, | |
| const std::string & | descrName = "Parallel Port", |
|||
| const std::string & | tagName = "ParPort" | |||
| ) |
| byte ParPort::ReadStatus | ( | ) |
Read status of the port.
Definition at line 159 of file ParPort.C.
Referenced by ReadStatusPaperout().
| bool ParPort::ReadStatusPaperout | ( | ) |
Read the PARPORT_STATUS_PAPEROUT bit of the port status.
Definition at line 176 of file ParPort.C.
References ReadStatus().
| void ParPort::start1 | ( | ) | [protected, virtual] |
get started
Reimplemented from ModelComponent.
Definition at line 59 of file ParPort.C.
References NModelParam< T >::getVal(), and itsDevName.
| void ParPort::stop2 | ( | ) | [protected, virtual] |
get stopped
Reimplemented from ModelComponent.
Definition at line 112 of file ParPort.C.
References NModelParam< T >::getVal(), and itsDevName.
NModelParam<std::string> ParPort::itsDevName [protected] |
1.6.3