Scope Class Reference

#include <scope.h>

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

List of all members.

Public Member Functions

 Scope (UserInterface *ui, const std::string &name, unsigned int noOfChannels, const char *baseWindow)
virtual ~Scope ()
PinGetPin (unsigned int no)
virtual int Step (bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns)
 Return nonzero if a breakpoint was hit.
void SetInStateForChannel (unsigned int channel, const Pin &p)

Protected Attributes

UserInterfaceui
std::string name
unsigned char myPortValue
std::map< std::string, Pin * > allPins
std::vector< Pin * > vecPin
std::vector< int > lastVal
unsigned int noOfChannels

Detailed Description

Definition at line 40 of file scope.h.


Constructor & Destructor Documentation

Scope::Scope ( UserInterface ui,
const std::string &  name,
unsigned int  noOfChannels,
const char *  baseWindow 
)

Definition at line 44 of file scope.cpp.

References lastVal, name, noOfChannels, ui, vecPin, and UserInterface::Write().

Here is the call graph for this function:

Scope::~Scope (  )  [virtual]

Definition at line 58 of file scope.cpp.


Member Function Documentation

Pin * Scope::GetPin ( unsigned int  no  ) 

Definition at line 60 of file scope.cpp.

References vecPin.

void Scope::SetInStateForChannel ( unsigned int  channel,
const Pin p 
)

Definition at line 64 of file scope.cpp.

References Pin::GetAnalog(), SystemClock::GetCurrentTime(), SystemClock::Instance(), lastVal, name, ui, and UserInterface::Write().

Referenced by ScopePin::SetInState().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual int Scope::Step ( bool &  trueHwStep,
SystemClockOffset timeToNextStepIn_ns 
) [inline, virtual]

Return nonzero if a breakpoint was hit.

Implements SimulationMember.

Definition at line 56 of file scope.h.


Member Data Documentation

std::map<std::string, Pin*> Scope::allPins [protected]

Definition at line 45 of file scope.h.

std::vector<int> Scope::lastVal [protected]

Definition at line 48 of file scope.h.

Referenced by Scope(), and SetInStateForChannel().

unsigned char Scope::myPortValue [protected]

Definition at line 44 of file scope.h.

std::string Scope::name [protected]

Definition at line 43 of file scope.h.

Referenced by Scope(), and SetInStateForChannel().

unsigned int Scope::noOfChannels [protected]

Definition at line 49 of file scope.h.

Referenced by Scope().

UserInterface* Scope::ui [protected]

Definition at line 42 of file scope.h.

Referenced by Scope(), and SetInStateForChannel().

std::vector<Pin*> Scope::vecPin [protected]

Definition at line 47 of file scope.h.

Referenced by GetPin(), and Scope().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:53:03 2012 for Simulavr by  doxygen 1.6.3