|
simulavr
1.1.0
|
An IO register which is not simulated in the moment. Reads and writes are ignored and produce warning. More...
#include <rwmem.h>
Public Types | |
| enum | { TWI_TWAMR = 0, TWI_TWCR, TWI_TWDR, TWI_TWAR, TWI_TWSR, TWI_TWBR, ADC_DIDR0, ADC_DIDR1, ADC_DIDR2, MCU_PRR, MCU_PRR0, MCU_PRR1, MCU_WDTCSR, MCU_MCUCR, MCU_MCUSR, MCU_SMCR, OCD_OCDR, XMC_XMCRA, XMC_XMCRB, NSR_size } |
Public Member Functions | |
| NotSimulatedRegister (const char *oname, const char *rname) | |
Public Member Functions inherited from RWMemoryMember | |
| 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 |
Static Public Member Functions | |
| static NotSimulatedRegister * | getRegister (int reg) |
Protected Member Functions | |
| unsigned char | get () const |
| void | set (unsigned char) |
Private Attributes | |
| const char * | obj_name |
| const char * | reg_name |
Additional Inherited Members | |
Protected Attributes inherited from RWMemoryMember | |
| TraceValue * | tv |
| TraceValueRegister * | registry |
| const std::string | tracename |
| const bool | isInvalid |
An IO register which is not simulated in the moment. Reads and writes are ignored and produce warning.
| anonymous enum |
| NotSimulatedRegister::NotSimulatedRegister | ( | const char * | oname, |
| const char * | rname | ||
| ) |
|
protectedvirtual |
This function as the oppposite to get() is expected to read the real byte.
Implements RWMemoryMember.
Definition at line 244 of file rwmem.cpp.
References avr_warning, global_suppress_memory_warnings, obj_name, and reg_name.
|
static |
Definition at line 297 of file rwmem.cpp.
References avr_error, and NSR_size.
Referenced by AvrDevice_at90canbase::AvrDevice_at90canbase(), AvrDevice_atmega1284Abase::AvrDevice_atmega1284Abase(), AvrDevice_atmega2560base::AvrDevice_atmega2560base(), and AvrDevice_atmega668base::AvrDevice_atmega668base().
|
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 250 of file rwmem.cpp.
References avr_warning, global_suppress_memory_warnings, obj_name, and reg_name.
|
private |
|
private |