Logo Search packages:      
Sourcecode: odyssey version File versions

ParallelPort Class Reference

#include <ParallelPort.h>

Inheritance diagram for ParallelPort:

IO DirectPPIO LinuxPPDevIO

List of all members.


Detailed Description

This class contains methods and data elements that are common to all IO implementations attached to a parallel port.

Definition at line 31 of file ParallelPort.h.


Public Member Functions

virtual bool get_clk (void)
virtual bool get_data (void)
virtual bool get_pwr (void)
virtual bool get_vpp (void)
 ParallelPort (int port)
virtual bool read_data (void)
virtual void set_clk (bool state)
virtual void set_data (bool state)
virtual void set_pwr (bool state)
virtual void set_vpp (bool state)
virtual uint32_t shift_bits_in (int numbits, int tdly=0)
virtual void shift_bits_out (uint32_t bits, int numbits, int tset=0, int thold=0)
virtual void usleep (unsigned long us)
virtual ~ParallelPort ()

Static Public Member Functions

static IOacquire (char *name, int port=0)

Protected Member Functions

virtual bool get_pin_state (const char *name, int reg, int bit, bool invert)=0
virtual void set_pin_state (const char *name, int reg, int bit, bool invert, bool state)=0

Protected Attributes

short clkbit
short clkinvert
short clkreg
unsigned long gen_stretch
int port
short pwrbit
short pwrinvert
short pwrreg
short rdata2bit
short rdata2invert
short rdata2reg
short rdatabit
short rdatainvert
short rdatareg
unsigned long tdly_stretch
unsigned long thld_stretch
unsigned long tset_stretch
short vppbit
short vppinvert
short vppreg
short wdatabit
short wdatainvert
short wdatareg

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index