simulavr  1.1.0
TwiceTV Class Reference
Inheritance diagram for TwiceTV:

Public Member Functions

 TwiceTV (const std::string &_name, TraceValue *_ref)
 
virtual void cycle ()
 Called at least once for each cycle if this trace value is activated. More...
 
- Public Member Functions inherited from TraceValue
 TraceValue (size_t bits, const std::string &_name, const int __index=-1, const void *shadow=NULL)
 Generate a new unitialized trace value of width bits. More...
 
virtual ~TraceValue ()
 
size_t bits () const
 Give number of bits for this value. Max 32. More...
 
unsigned value () const
 Gives the saved shadow value for this trace value. More...
 
std::string name () const
 Give name (fully qualified), including the index appended if it is >=0. More...
 
std::string barename () const
 Gives the name without the index. More...
 
int index () const
 Gives the index of this member in a memory field (or -1) More...
 
bool enabled () const
 
void enable ()
 Enable tracing. More...
 
void change (unsigned val)
 Log a change on this value. More...
 
void change (unsigned val, unsigned mask)
 
void write (unsigned val)
 Log a write access on this value. More...
 
void read ()
 Log a read access. More...
 
bool written () const
 
void set_written ()
 
void set_written (unsigned val)
 
Atype flags () const
 Gives the current set of flag readings. More...
 
virtual void dump (Dumper &d)
 
virtual char VcdBit (int bitNo) const
 

Private Attributes

TraceValueref
 

Additional Inherited Members

- Public Types inherited from TraceValue
enum  Atype { READ =1, WRITE =2, CHANGE =4 }
 Possible access types for a trace value. More...
 
- Protected Member Functions inherited from TraceValue
void clear_flags ()
 Clear all access flags. More...
 

Detailed Description

To ease debugging, also supply the option to have the PC*2 in the trace output file. This is also the format the other normal tracing will output addresses and the format avr-objdump produces disassemblies in.

Definition at line 115 of file avrdevice.cpp.

Constructor & Destructor Documentation

◆ TwiceTV()

TwiceTV::TwiceTV ( const std::string &  _name,
TraceValue _ref 
)
inline

Definition at line 117 of file avrdevice.cpp.

Member Function Documentation

◆ cycle()

virtual void TwiceTV::cycle ( )
inlinevirtual

Called at least once for each cycle if this trace value is activated.

This may check for updates to an underlying referenced value etc. and update the flags accordingly.

Reimplemented from TraceValue.

Definition at line 120 of file avrdevice.cpp.

Member Data Documentation

◆ ref

TraceValue* TwiceTV::ref
private

Definition at line 125 of file avrdevice.cpp.


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