NotSimulatedRegister Class Reference

An IO register which is not simulated because programmers are lazy. More...

#include <rwmem.h>

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

List of all members.

Public Member Functions

 NotSimulatedRegister (const char *message_on_access)

Protected Member Functions

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

Private Attributes

const char * message_on_access

Detailed Description

An IO register which is not simulated because programmers are lazy.

Reads and writes are ignored and produce warning.

Definition at line 144 of file rwmem.h.


Constructor & Destructor Documentation

NotSimulatedRegister::NotSimulatedRegister ( const char *  message_on_access  ) 

Definition at line 127 of file rwmem.cpp.


Member Function Documentation

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

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

Implements RWMemoryMember.

Definition at line 130 of file rwmem.cpp.

References avr_warning, and message_on_access.

void NotSimulatedRegister::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 135 of file rwmem.cpp.

References avr_warning, and message_on_access.


Member Data Documentation

Definition at line 146 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:52:53 2012 for Simulavr by  doxygen 1.6.3