PICComponentPin Class Reference

Controls a pin on the PIC component. More...

#include <piccomponentpin.h>

Inheritance diagram for PICComponentPin:

Inheritance graph
[legend]
Collaboration diagram for PICComponentPin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PICComponentPin (PICComponent *picComponent, PicPin picPin)
 ~PICComponentPin ()
void attach (IOPIN *iopin)
virtual void set_nodeVoltage (double v)
void logicCallback (bool state)
void resetOutput ()
virtual double get_Vth ()

Protected Attributes

double m_gOutHigh
double m_gOutLow
PicPin m_picPin
IOPIN * m_pIOPIN
LogicOutm_pLogicOut
LogicInm_pLogicIn
PICComponentm_pPICComponent
Stimulus_Node * m_pStimulusNode
const QString m_id

Detailed Description

Controls a pin on the PIC component.

Author:
David Saxton

Definition at line 26 of file piccomponentpin.h.


Member Function Documentation

void PICComponentPin::attach ( IOPIN *  iopin  ) 

Attach this to gpsim

Definition at line 76 of file piccomponentpin.cpp.

References LogicIn::isHigh(), logicCallback(), m_id, m_pIOPIN, m_pLogicIn, m_pLogicOut, and m_pStimulusNode.

void PICComponentPin::set_nodeVoltage ( double  v  )  [virtual]

Called when the IOPIN this class is associated with changes state. Updates the associated LogicOut / LogicIn / etc according to what type of pin this is.

Definition at line 119 of file piccomponentpin.cpp.

References m_gOutHigh, m_gOutLow, m_pIOPIN, m_pLogicOut, LogicOut::setHigh(), LogicOut::setOutputHighConductance(), and LogicOut::setOutputLowConductance().

void PICComponentPin::logicCallback ( bool  state  ) 

Called from our logic pin when the logic changes state.

Definition at line 139 of file piccomponentpin.cpp.

References m_pIOPIN, and m_pStimulusNode.

Referenced by attach(), and PICComponentPin().

void PICComponentPin::resetOutput (  ) 

Sets the output (if has one) to low. Called when the user stops the PIC.

Definition at line 160 of file piccomponentpin.cpp.

References m_pLogicOut, and LogicOut::setHigh().


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:51 2007 for KTechLab by  doxygen 1.5.1