simulavr
1.1.0
|
Helper class to simulate transfer of register values from bus area to timer async area. More...
#include <hwtimer.h>
Public Member Functions | |
HWTimerTinyX5_SyncReg () | |
void | Reset (unsigned char v) |
perform a reset to set valid reset values without clock More... | |
unsigned char | operator= (unsigned char v) |
assign new register value More... | |
operator unsigned char () | |
read register value inside sync area More... | |
unsigned char | GetBusValue (void) |
read register value on input area More... | |
bool | ClockAndChanged (void) |
check after one clock, if register value has changed More... | |
void | MaskOutSync (unsigned char mask) |
Mask out a value inside sync area and do not force a change event. More... | |
Private Attributes | |
unsigned char | inValue |
input register value More... | |
unsigned char | regValue |
valid register value inside sync area More... | |
Helper class to simulate transfer of register values from bus area to timer async area.
This isn't a exact simulation, because it delays the register settings only for one clock cycle. As shown on datasheet it's 1 1/2 clock in sync mode and 1 to 2 clocks in async mode!
|
inline |
check after one clock, if register value has changed
Definition at line 769 of file hwtimer.h.
Referenced by HWTimerTinyX5::TransferInputValues().
|
inline |
read register value on input area
Definition at line 766 of file hwtimer.h.
Referenced by HWTimerTinyX5::Get_DT1A(), HWTimerTinyX5::Get_DT1B(), HWTimerTinyX5::Get_OCRA(), HWTimerTinyX5::Get_OCRB(), HWTimerTinyX5::Get_OCRC(), and HWTimerTinyX5::Get_TCCR().
|
inline |
Mask out a value inside sync area and do not force a change event.
Definition at line 772 of file hwtimer.h.
Referenced by HWTimerTinyX5::TransferInputValues().
|
inline |
|
inline |
|
inline |
perform a reset to set valid reset values without clock
Definition at line 755 of file hwtimer.h.
Referenced by HWTimerTinyX5::Reset().
|
private |
|
private |