GPIORegister Class Reference

A register in IO register space unrelated to any peripheral. "GPIORx" in datasheets. More...

#include <rwmem.h>

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

List of all members.

Public Member Functions

 GPIORegister (AvrDevice *core, TraceValueRegister *registry, const std::string &tracename)
void Reset (void)

Protected Member Functions

unsigned char get () const
void set (unsigned char v)

Private Attributes

unsigned char value

Detailed Description

A register in IO register space unrelated to any peripheral. "GPIORx" in datasheets.

Allows clean read and write accesses and simply has one stored byte.

Definition at line 88 of file rwmem.h.


Constructor & Destructor Documentation

GPIORegister::GPIORegister ( AvrDevice core,
TraceValueRegister registry,
const std::string &  tracename 
) [inline]

Definition at line 91 of file rwmem.h.

References value.


Member Function Documentation

unsigned char GPIORegister::get (  )  const [inline, protected, virtual]

This function as the oppposite to get() is expected to read the real byte.

Implements RWMemoryMember.

Definition at line 101 of file rwmem.h.

References value.

void GPIORegister::Reset ( void   )  [inline, virtual]

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

Reimplemented from Hardware.

Definition at line 98 of file rwmem.h.

References value.

void GPIORegister::set ( unsigned char  nv  )  [inline, protected, virtual]

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 102 of file rwmem.h.

References value.


Member Data Documentation

unsigned char GPIORegister::value [private]

Definition at line 105 of file rwmem.h.

Referenced by get(), GPIORegister(), Reset(), and set().


The documentation for this class was generated from the following file:
Generated on Sun Feb 12 16:51:23 2012 for Simulavr by  doxygen 1.6.3