simulavr
1.1.0
|
Implement CLKPR register. More...
#include <rwmem.h>
Public Member Functions | |
CLKPRRegister (AvrDevice *core, TraceValueRegister *registry) | |
void | Reset (void) |
unsigned int | CpuCycle (void) |
![]() | |
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 |
![]() | |
Hardware (AvrDevice *core) | |
virtual | ~Hardware () |
virtual void | ClearIrqFlag (unsigned int vector) |
virtual bool | IsLevelInterrupt (unsigned int vector) |
virtual bool | LevelInterruptPending (unsigned int vector) |
Protected Member Functions | |
unsigned char | get () const |
void | set (unsigned char v) |
Private Attributes | |
AvrDevice * | _core |
unsigned char | value |
unsigned char | activate |
Additional Inherited Members | |
![]() | |
TraceValue * | tv |
TraceValueRegister * | registry |
const std::string | tracename |
const bool | isInvalid |
CLKPRRegister::CLKPRRegister | ( | AvrDevice * | core, |
TraceValueRegister * | registry | ||
) |
Definition at line 89 of file rwmem.cpp.
References _core, activate, AvrDevice::AddToCycleList(), AvrFuses::FB_CKDIV8, AvrDevice::fuses, AvrFuses::GetFuseBit(), and value.
|
virtual |
|
inlineprotectedvirtual |
This function as the oppposite to get() is expected to read the real byte.
Implements RWMemoryMember.
|
virtual |
Implement the hardware's reset functionality here. The default is no action on reset.
Reimplemented from Hardware.
Definition at line 104 of file rwmem.cpp.
References _core, activate, AvrFuses::FB_CKDIV8, AvrDevice::fuses, AvrFuses::GetFuseBit(), 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 121 of file rwmem.cpp.
References activate, avr_warning, int2str(), and value.
|
private |
Definition at line 150 of file rwmem.h.
Referenced by CLKPRRegister(), and Reset().
|
private |
Definition at line 152 of file rwmem.h.
Referenced by CLKPRRegister(), CpuCycle(), Reset(), and set().
|
private |
Definition at line 151 of file rwmem.h.
Referenced by CLKPRRegister(), CpuCycle(), Reset(), and set().