A register in IO register space unrelated to any peripheral. "GPIORx" in datasheets. More...
#include <rwmem.h>
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 |
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.
GPIORegister::GPIORegister | ( | AvrDevice * | core, | |
TraceValueRegister * | registry, | |||
const std::string & | tracename | |||
) | [inline] |
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] |
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.
unsigned char GPIORegister::value [private] |