#include <ioregs.h>
Public Member Functions | |
AddressExtensionRegister (AvrDevice *core, const std::string ®name, unsigned bitsize) | |
void | Reset () |
unsigned char | GetRegVal () |
void | SetRegVal (unsigned char val) |
Public Attributes | |
IOReg< AddressExtensionRegister > | ext_reg |
Private Attributes | |
unsigned char | reg_val |
unsigned char | reg_mask |
Used for RAMPZ and MCUCR registers.
Definition at line 33 of file ioregs.h.
AddressExtensionRegister::AddressExtensionRegister | ( | AvrDevice * | core, | |
const std::string & | regname, | |||
unsigned | bitsize | |||
) |
Definition at line 28 of file ioregs.cpp.
References Reset().
unsigned char AddressExtensionRegister::GetRegVal | ( | ) | [inline] |
Definition at line 42 of file ioregs.h.
References reg_val.
Referenced by avr_op_SPM::operator()(), avr_op_ESPM::operator()(), avr_op_ELPM::operator()(), avr_op_ELPM_Z_incr::operator()(), avr_op_ELPM_Z::operator()(), avr_op_EIJMP::operator()(), avr_op_EICALL::operator()(), avr_op_ELPM::Trace(), avr_op_ELPM_Z_incr::Trace(), and avr_op_ELPM_Z::Trace().
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().
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()().
Definition at line 45 of file ioregs.h.
Referenced by AvrDevice_at90canbase::AvrDevice_at90canbase(), and AvrDevice_atmega128::AvrDevice_atmega128().
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().