simulavr
1.1.0
|
FIFO write memory. More...
#include <specialmem.h>
Public Member Functions | |
RWWriteToFile (TraceValueRegister *registry, const std::string &tracename, const std::string &filename) | |
![]() | |
RWMemoryMember (TraceValueRegister *registry, const std::string &tracename="", const int index=-1) | |
RWMemoryMember (void) | |
operator unsigned char () const | |
Read access on memory. More... | |
unsigned char | operator= (unsigned char val) |
Write access on memory. More... | |
unsigned char | operator= (const RWMemoryMember &mm) |
Write access on memory. More... | |
virtual | ~RWMemoryMember () |
virtual void | set_bit (unsigned int bitaddr) |
virtual void | clear_bit (unsigned int bitaddr) |
const std::string & | GetTraceName (void) |
bool | IsInvalid (void) const |
Protected Member Functions | |
unsigned char | get () const |
void | set (unsigned char) |
Protected Attributes | |
std::ostream & | os |
std::ofstream | ofs |
![]() | |
TraceValue * | tv |
TraceValueRegister * | registry |
const std::string | tracename |
const bool | isInvalid |
Private Attributes | |
unsigned char | value |
FIFO write memory.
Memory register which will redirect all write accesses to the given (FIFO) file. The output format in the file is binary.
Definition at line 39 of file specialmem.h.
RWWriteToFile::RWWriteToFile | ( | TraceValueRegister * | registry, |
const std::string & | tracename, | ||
const std::string & | filename | ||
) |
The output filename can be '-' which will make this object use cout then.
Definition at line 33 of file specialmem.cpp.
References ofs.
|
protectedvirtual |
This function as the oppposite to get() is expected to read the real byte.
Implements RWMemoryMember.
Definition at line 50 of file specialmem.cpp.
References avr_warning, global_suppress_memory_warnings, and value.
|
protectedvirtual |
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 44 of file specialmem.cpp.
|
protected |
Definition at line 53 of file specialmem.h.
Referenced by RWWriteToFile().
|
protected |
Definition at line 52 of file specialmem.h.
Referenced by set().
|
private |
Definition at line 56 of file specialmem.h.