An IO register which is not simulated because programmers are lazy. More...
#include <rwmem.h>
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 |
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.
NotSimulatedRegister::NotSimulatedRegister | ( | const char * | message_on_access | ) |
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.
const char* NotSimulatedRegister::message_on_access [private] |