RAM Class Reference

One byte in any AVR RAM. More...

#include <rwmem.h>

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

List of all members.

Public Member Functions

 RAM (TraceValueCoreRegister *registry, const std::string &tracename, const size_t number, const size_t maxsize)

Protected Member Functions

unsigned char get () const
void set (unsigned char)

Private Attributes

unsigned char value
TraceValueCoreRegistercorereg

Detailed Description

One byte in any AVR RAM.

Allows clean read and write accesses and simply has one stored byte.

Definition at line 110 of file rwmem.h.


Constructor & Destructor Documentation

RAM::RAM ( TraceValueCoreRegister registry,
const std::string &  tracename,
const size_t  number,
const size_t  maxsize 
)

Definition at line 89 of file rwmem.cpp.

References avr_error, corereg, TraceValueRegister::GetTraceValuePrefix(), TraceValueCoreRegister::RegisterTraceSetValue(), and RWMemoryMember::tv.

Here is the call graph for this function:


Member Function Documentation

unsigned char RAM::get (  )  const [protected, virtual]

This function as the oppposite to get() is expected to read the real byte.

Implements RWMemoryMember.

Definition at line 102 of file rwmem.cpp.

References value.

void RAM::set ( unsigned  nv  )  [protected, virtual]

This function is the function which will be called by the above access operators and is expected to do the real work when writing a byte.

Implements RWMemoryMember.

Definition at line 104 of file rwmem.cpp.

References value.


Member Data Documentation

Definition at line 124 of file rwmem.h.

Referenced by RAM().

unsigned char RAM::value [private]

Definition at line 123 of file rwmem.h.

Referenced by get(), and set().


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