|
simulavr
1.1.0
|
Implement OSCCAL register. More...
#include <rwmem.h>
Public Types | |
| enum | { OSCCAL_V3 = 0, OSCCAL_V4 = 1, OSCCAL_V5 = 2 } |
Public Member Functions | |
| OSCCALRegister (AvrDevice *core, TraceValueRegister *registry, int cal) | |
| void | Reset (void) |
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 |
Public Member Functions inherited from Hardware | |
| Hardware (AvrDevice *core) | |
| virtual | ~Hardware () |
| virtual unsigned int | CpuCycle (void) |
| 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 | |
| unsigned char | value |
| int | cal_type |
Additional Inherited Members | |
Protected Attributes inherited from RWMemoryMember | |
| TraceValue * | tv |
| TraceValueRegister * | registry |
| const std::string | tracename |
| const bool | isInvalid |
| anonymous enum |
| OSCCALRegister::OSCCALRegister | ( | AvrDevice * | core, |
| TraceValueRegister * | registry, | ||
| int | cal | ||
| ) |
|
inlineprotectedvirtual |
This function as the oppposite to get() is expected to read the real byte.
Implements RWMemoryMember.
|
virtual |
|
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 182 of file rwmem.cpp.
References avr_warning, cal_type, OSCCAL_V4, and value.
|
private |
|
private |
Definition at line 196 of file rwmem.h.
Referenced by RAM::get(), RAM::RAM(), Reset(), set(), and RAM::set().