ParPort Class Reference

This is a minimalistic interface to a PC parallel port under Linux. More...

#include <Devices/ParPort.H>

Inheritance diagram for ParPort:
Inheritance graph
[legend]
Collaboration diagram for ParPort:
Collaboration graph
[legend]

List of all members.

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::stringitsDevName
 Name of device to use.

Detailed Description

This is a minimalistic interface to a PC parallel port under Linux.

Definition at line 63 of file ParPort.H.


Constructor & Destructor Documentation

ParPort::ParPort ( OptionManager mgr,
const std::string descrName = "Parallel Port",
const std::string tagName = "ParPort" 
)

Constructor.

Definition at line 47 of file ParPort.C.

ParPort::~ParPort (  )  [virtual]

Destructor.

Definition at line 55 of file ParPort.C.


Member Function Documentation

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.

void ParPort::WriteData ( const byte  mask,
const byte  newdata 
)

Write some data to the port.

For all the bits which are set in mask, their values will be replaced by the values of the corresponding bits in newdata.

Definition at line 130 of file ParPort.C.


Member Data Documentation

Name of device to use.

Definition at line 86 of file ParPort.H.

Referenced by start1(), and stop2().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:38 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3