AddressExtensionRegister Class Reference

#include <ioregs.h>

Inheritance diagram for AddressExtensionRegister:
Inheritance graph
[legend]
Collaboration diagram for AddressExtensionRegister:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AddressExtensionRegister (AvrDevice *core, const std::string &regname, unsigned bitsize)
void Reset ()
unsigned char GetRegVal ()
void SetRegVal (unsigned char val)

Public Attributes

IOReg< AddressExtensionRegisterext_reg

Private Attributes

unsigned char reg_val
unsigned char reg_mask

Detailed Description

Used for RAMPZ and MCUCR registers.

Definition at line 33 of file ioregs.h.


Constructor & Destructor Documentation

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

Definition at line 28 of file ioregs.cpp.

References Reset().

Here is the call graph for this function:


Member Function Documentation

unsigned char AddressExtensionRegister::GetRegVal (  )  [inline]
void AddressExtensionRegister::Reset ( void   )  [inline, virtual]

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.

References reg_val.

Referenced by AddressExtensionRegister().

Here is the caller graph for this function:

void AddressExtensionRegister::SetRegVal ( unsigned char  val  )  [inline]

Definition at line 43 of file ioregs.h.

References reg_mask, and reg_val.

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

Here is the caller graph for this function:


Member Data Documentation

unsigned char AddressExtensionRegister::reg_mask [private]

Definition at line 37 of file ioregs.h.

Referenced by SetRegVal().

unsigned char AddressExtensionRegister::reg_val [private]

Definition at line 36 of file ioregs.h.

Referenced by GetRegVal(), Reset(), and SetRegVal().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:45:05 2012 for Simulavr by  doxygen 1.6.3