simulavr  1.1.0
AddressExtensionRegister Class Reference

#include <ioregs.h>

Inheritance diagram for AddressExtensionRegister:

Public Member Functions

 AddressExtensionRegister (AvrDevice *core, const std::string &regname, unsigned bitsize)
 
void Reset ()
 
unsigned char GetRegVal ()
 
void SetRegVal (unsigned char val)
 
- 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)
 
- Public Member Functions inherited from TraceValueRegister
 TraceValueRegister (TraceValueRegister *parent, const std::string &name)
 Create a TraceValueRegister, with a scope prefix built on parent scope + name. More...
 
 TraceValueRegister ()
 Create a TraceValueRegister, with a empty scope name, single device application. More...
 
virtual ~TraceValueRegister ()
 
const std::string GetTraceValuePrefix (void)
 Returns the scope prefix. More...
 
const std::string GetScopeName (void)
 Returns the scope name. More...
 
void RegisterTraceValue (TraceValue *t)
 Registers a TraceValue for this register. More...
 
void UnregisterTraceValue (TraceValue *t)
 Unregisters a TraceValue, remove it from register. More...
 
TraceValueRegister * GetScopeGroupByName (const std::string &name)
 Get a here registered TraceValueRegister by it's name. More...
 
virtual TraceValue * GetTraceValueByName (const std::string &name)
 Get a here registered TraceValue by it's name. More...
 
TraceValueRegister * FindScopeGroupByName (const std::string &name)
 Seek for a TraceValueRegister by it's name. More...
 
TraceValue * FindTraceValueByName (const std::string &name)
 Seek for a TraceValue by it's name. More...
 
TraceSet * GetAllTraceValues (void)
 Get all here registered TraceValue's only (not with descending values) More...
 
TraceSet * GetAllTraceValuesRecursive (void)
 Get all here registered TraceValue's with descending values. More...
 

Public Attributes

IOReg< AddressExtensionRegister > ext_reg
 

Private Attributes

unsigned char reg_val
 
unsigned char reg_mask
 

Additional Inherited Members

- Protected Member Functions inherited from TraceValueRegister
virtual size_t _tvr_getValuesCount (void)
 Get the count of all TraceValues, that are registered here and descending. More...
 
virtual void _tvr_insertTraceValuesToSet (TraceSet &t)
 Insert all TraceValues into TraceSet, that registered here and descending. More...
 

Detailed Description

Used for RAMPZ and MCUCR registers.

Definition at line 33 of file ioregs.h.

Constructor & Destructor Documentation

◆ AddressExtensionRegister()

AddressExtensionRegister::AddressExtensionRegister ( AvrDevice *  core,
const std::string &  regname,
unsigned  bitsize 
)

Definition at line 28 of file ioregs.cpp.

References Reset().

Member Function Documentation

◆ GetRegVal()

unsigned char AddressExtensionRegister::GetRegVal ( )
inline

◆ Reset()

void AddressExtensionRegister::Reset ( void  )
inlinevirtual

Implement the hardware's reset functionality here. The default is no action on reset.

Reimplemented from Hardware.

Definition at line 41 of file ioregs.h.

Referenced by AddressExtensionRegister().

◆ SetRegVal()

void AddressExtensionRegister::SetRegVal ( unsigned char  val)
inline

Definition at line 43 of file ioregs.h.

References reg_mask.

Referenced by avr_op_ELPM_Z_incr::operator()(), and avr_op_ESPM::operator()().

Member Data Documentation

◆ ext_reg

◆ reg_mask

unsigned char AddressExtensionRegister::reg_mask
private

Definition at line 37 of file ioregs.h.

Referenced by SetRegVal().

◆ reg_val

unsigned char AddressExtensionRegister::reg_val
private

Definition at line 36 of file ioregs.h.

Referenced by GetRegVal().


The documentation for this class was generated from the following files: